Jump to content
Sumaleth

Trial license manager API changes or problems?

Recommended Posts

I work for Installatron (a web application auto-installer: http://installatron.com) and we've been installing Blesta since version 3.3.2.

But someone noticed recently that when installing Blesta via Installatron that it wasn't picking up a trial license like it used to. The code looked okay but it was a slightly old version of Blesta (4.2.0) so I added 4.2.2 to see if that solved the problem and it did.

But now a few weeks later I see that 4.2.2 isn't picking up a trial license any longer.

The code we use to retrieve a Blesta trial license from the Blesta website is pretty simple:

	// get trial key
	$lickey = $this->fetch("https://account.blesta.com/plugin/license_manager/trial/", array( "domain" => $this->url_domain ));
	if (empty($lickey))
	{
		$lickey = "";
	}

This will perform a POST http request with the domain property set to the user's domain. I tried it on two of our testing servers without success.

Can anyone see why this might not be working properly or consistently now?

Thanks,

Rowan@Installatron

Share this post


Link to post
Share on other sites
4 hours ago, Sumaleth said:

I work for Installatron (a web application auto-installer: http://installatron.com) and we've been installing Blesta since version 3.3.2.

But someone noticed recently that when installing Blesta via Installatron that it wasn't picking up a trial license like it used to. The code looked okay but it was a slightly old version of Blesta (4.2.0) so I added 4.2.2 to see if that solved the problem and it did.

But now a few weeks later I see that 4.2.2 isn't picking up a trial license any longer.

The code we use to retrieve a Blesta trial license from the Blesta website is pretty simple:


	// get trial key
	$lickey = $this->fetch("https://account.blesta.com/plugin/license_manager/trial/", array( "domain" => $this->url_domain ));
	if (empty($lickey))
	{
		$lickey = "";
	}

This will perform a POST http request with the domain property set to the user's domain. I tried it on two of our testing servers without success.

Can anyone see why this might not be working properly or consistently now?

Thanks,

Rowan@Installatron

seems to work fine for me, just tried it on a http api tester I use http://hurl.eu/

are you sure you are doing it as POST? 

as I tried it doing test.com and it returned a license key fine.

all I can tell you to do is talk with @Paul or one of the other blesta developers or just open a ticket here: https://account.blesta.com/client/plugin/support_manager/client_tickets/add/3/

Share this post


Link to post
Share on other sites
5 hours ago, timnboys said:

seems to work fine for me, just tried it on a http api tester I use http://hurl.eu/

are you sure you are doing it as POST? 

as I tried it doing test.com and it returned a license key fine.

all I can tell you to do is talk with @Paul or one of the other blesta developers or just open a ticket here: https://account.blesta.com/client/plugin/support_manager/client_tickets/add/3/

Thanks for the reply. Hearing that it works from that API tester gives me some things I can try but if I continue to have trouble with it I'll follow up with your suggestions.

EDIT: we are definitely sending it as a POST request so that's not the problem at least.

Share this post


Link to post
Share on other sites

Fetching a trial key will return the same key if one was issued to that hostname within a given (unpublished, subject to change) period of time. This is to prevent people from running trials indefinitely, and never purchasing a license. This means that an expired key could be returned from our system, which would then result in an error within Blesta.

@Sumaleth I have responded to your PM with some more details, that I hope will be helpful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×