Page 1 of 1

SDK personal license

Posted: Wed Jul 18, 2018 7:20 am
by sderrick
We are using the SDK Editor with a floating license sever. Working like a champ.

Some of the users have a personal or work purchased license for their desktop oxygen editor and I allow them to set their preference to use their license key thus freeing one of the floating licenses for the workers that have to use one..

One of the users has set their prefs to use their personal license and they entered it when the editor asked them. But it looks like they are still consuming a floating license when they use the editor? Is this possible?

I know this works because I use my personal license and I do not consume a floating license when I use the sdk editor.

I was looking for a way to clear the stored licenses? I tried clearing the java cache but that didn't do anything. I would like her to re-enter her license key.

thanks,

Scott

Re: SDK personal license

Posted: Wed Jul 18, 2018 8:40 am
by Radu
Hi Scott,

So your colleague went to the main Help menu->"Register", switched the radio from "Use a license sever" to "Use a license key", pasted the license key there, closed the dialog and the floating license is still consumed, right? Can he restart Oxygen? Does that help?

Regards,
Radu

Re: SDK personal license

Posted: Wed Jul 18, 2018 6:21 pm
by sderrick
To be clear we are using the SDK author editor.

When I init the factory I check if the user is requesting to use a floating license or their personal license and pass in the appropriate parameters on that choice. Here's the code, license servlet stuff blanked out.

Code: Select all

[code]      if (license.equals("float")) {

// use floating server
factory.init(frameworkZips, optionsZipURL, codeBase, appletID,
// //The servlet URL
"************************************",
// //The HTTP credentials user name
"*****************",
// //The HTTP credentials password
"**************************");
} else {
// use personal license
factory.init(frameworkZips, optionsZipURL, codeBase, appletID, null);
}
[/code]

I've tried it myself and it works fine. Uses my license if I selct that, or the floating license if I select that.

Problem is we have a user that selected to use her personal license, pasted it in in when the editor asked for it, but a floating license is consumed when she uses the editor on subsequent visits.

The I guess the SDK stores the personal licenses somewhere? I wanted to try her license key to see what happened bu I can't figure out how to clear the stored key? Can you help me with that?

thanks, Scott

Re: SDK personal license

Posted: Wed Jul 18, 2018 8:16 pm
by sderrick
I tried using the users license and it worked fine for me. Editor opened no problem and did not consume a floating license. But yesterday she was on and it did use a floating license. I used the same jnlp file to open the editor as she had yesterday.

I also realized her maintenance pack had run out on that license. Could that be a factor, though it worked fine today?

Scott

Re: SDK personal license

Posted: Thu Jul 19, 2018 7:46 am
by Radu
Hi Scott,

Not sure what went wrong, the Author Component does have a local cache, on Windows it's in the "%APPDATA%/com.oxygenxml.author.component" folder.
In that cache it stores global settings (including from what I remember information about the pasted license key). It also stores an expanded frameworks folder.
Deleting that cache and re-starting the component should make it start absolutely clean, it will create that cache again.
By the way, in recent versions of our Floating License Servlet we added the possibility for an admin to revoke a given license from an admin HTML page:

https://www.oxygenxml.com/doc/versions/ ... eport_page

Regards,
Radu

Re: SDK personal license

Posted: Thu Jul 26, 2018 8:46 pm
by sderrick
Radu,

I need to have a user clear their author cache on a mac. I thought it would be in the same place as a linux machine, a hidden folder in their home folder, but it is not?

I also looked in the Library/Caches folder and it was not in there?

Where is it?

thanks,

Scott

Re: SDK personal license

Posted: Mon Jul 30, 2018 3:07 pm
by sorin_carbunaru
Hello Scott,

See [user-home-folder]/Library/Preferences/com.oxygenxml.author.component. That should be the location.

Regards,
Sorin Carbunaru
oXygen XML

P.S. - Radu is on vacation :)