Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016396Openbravo ERPA. Platformpublic2011-03-21 11:182011-06-06 14:02
alostale 
alostale 
urgentminorN/A
closedfixed 
5
pi 
 
Core
No
0016396: Autorefresh license when checking commercial modules
When a new commercial module is included within a license (because it has been bought or because it is free for this license type), it is required to refresh license before been able to install it.
1. Buy a commercial license without access to commercial module A
2. Activate your instance with that license
3. Buy module A for that license
4. Try to install module A in that instance: it is not allowed as it was not in the original license used to activate the instance
5. Refresh instance online
6. Try to install module A, now it is allowed
In this scenario step 4 should allow to do the installation, preventing the user to go through steps 5 and 6.

When installing/updating commercial modules. License manager will check the module locally as it is done currently, in case the module is not in the original license, it will try to online refresh it and will recheck whether the module is now in the license.

To avoid multiple refreshes, it will be cached when the license was automatically refreshed last time and next refresh won't happen in the following hour.
No tags attached.
blocks feature request 0016395 closed alostale Autorefresh license when checking commercial modules 
Issue History
2011-03-21 11:19alostaleTypefeature request => backport
2011-03-21 11:19alostalefix_in_branch => 2.50
2011-03-29 10:36hgbotCheckin
2011-03-29 10:36hgbotNote Added: 0035299
2011-03-29 10:36hgbotStatusscheduled => resolved
2011-03-29 10:36hgbotResolutionopen => fixed
2011-03-29 10:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/b1b1346f21410cb261377ea5a7b8f8e53f5be583 [^]
2011-06-06 14:02shuehnerNote Added: 0038033
2011-06-06 14:02shuehnerStatusresolved => closed

Notes
(0035299)
hgbot   
2011-03-29 10:36   
Repository: erp/stable/2.50
Changeset: b1b1346f21410cb261377ea5a7b8f8e53f5be583
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 21 12:06:20 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/b1b1346f21410cb261377ea5a7b8f8e53f5be583 [^]

fixed issue 16396: Autorefresh license when checking commercial modules

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
M src/org/openbravo/erpCommon/obps/ActiveInstanceProcess.java
---
(0038033)
shuehner   
2011-06-06 14:02   
Tested in pi/pgsql (rev: 5e50f384b771). Working fine system auto-refreshes the license if trying to install a commercial module not in the local license so far and the last refresh is not within the last 60min.

Note: tested in pi only, but cset for 2.50 is identical to the one in pi.