Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019107Openbravo ERPA. Platformpublic2011-11-18 11:072011-11-22 03:50
alostale 
alostale 
immediatecriticalhave not tried
closedfixed 
5
 
3.0MP5.1 
Core
No
0019107: License expiration validation is not properly checked
License expiration validation is not properly checked.

When license expires, it is not checked till tomcat is restarted or license is refreshed.

Technically the problem is due license manager is a singleton class and these checks are performed on initialization.
-Activate your instance with a license
-Wait till expiration date without restarting tomcat nor refreshing the license
-After expiration date, check the instance is still active till next refresh
Keep license manager as singleton, but do date checking on getInstance
No tags attached.
depends on backport 00191083.0MP5.1 closed alostale License expiration validation is not properly checked 
png userShouldLoginAndLogout.png (71,083) 2011-11-18 13:09
https://issues.openbravo.com/file_download.php?file_id=4759&type=bug
png
Issue History
2011-11-18 11:07alostaleNew Issue
2011-11-18 11:07alostaleAssigned To => alostale
2011-11-18 11:07alostaleModules => Core
2011-11-18 11:14alostaleStatusnew => scheduled
2011-11-18 11:14alostalefix_in_branch => pi
2011-11-18 11:20alostaleStatusscheduled => resolved
2011-11-18 11:20alostaleFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a538c52f8e465825b387821fbfd274e70279e47f [^]
2011-11-18 11:20alostaleResolutionopen => fixed
2011-11-18 11:57hgbotCheckin
2011-11-18 11:57hgbotNote Added: 0042975
2011-11-18 12:03hgbotCheckin
2011-11-18 12:03hgbotNote Added: 0042976
2011-11-18 12:24marvintmNote Added: 0042979
2011-11-18 12:24marvintmStatusresolved => closed
2011-11-18 13:08hgbotCheckin
2011-11-18 13:08hgbotNote Added: 0042984
2011-11-18 13:09plujanNote Added: 0042985
2011-11-18 13:09plujanStatusclosed => new
2011-11-18 13:09plujanResolutionfixed => open
2011-11-18 13:09plujanFile Added: userShouldLoginAndLogout.png
2011-11-18 13:11alostaleStatusnew => scheduled
2011-11-18 13:11alostaleStatusscheduled => resolved
2011-11-18 13:11alostaleResolutionopen => fixed
2011-11-18 13:32marvintmNote Added: 0042986
2011-11-18 13:32marvintmStatusresolved => closed
2011-11-18 20:05shuehnerNote Added: 0042998
2011-11-22 03:50hudsonbotCheckin
2011-11-22 03:50hudsonbotNote Added: 0043054
2011-11-22 03:50hudsonbotCheckin
2011-11-22 03:50hudsonbotNote Added: 0043055
2011-11-22 03:50hudsonbotCheckin
2011-11-22 03:50hudsonbotNote Added: 0043056

Notes
(0042975)
hgbot   
2011-11-18 11:57   
Repository: erp/devel/pi
Changeset: 09ac1059cc80bcabf5ee7185b8e7f4382b0f1204
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 18 11:55:33 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/09ac1059cc80bcabf5ee7185b8e7f4382b0f1204 [^]

related to bug 19107: dates are now class fields, don't read them again

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0042976)
hgbot   
2011-11-18 12:03   
Repository: erp/devel/pi
Changeset: 1494f99f239e7d0aa03196fe332d290c4484d95b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 18 12:02:03 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1494f99f239e7d0aa03196fe332d290c4484d95b [^]

related to bug 19107: removed uneeded variable

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0042979)
marvintm   
2011-11-18 12:24   
I've reviewed the diff (suggested an small change which has been done), and tested that the system notices that the current date is greater than the expiration date of the current license, without the need to restart tomcat or refresh the license.
(0042984)
hgbot   
2011-11-18 13:08   
Repository: erp/devel/pi
Changeset: 2b9485ac8bddb429fd2cac9b40e04af94f547d90
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Nov 18 13:06:54 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2b9485ac8bddb429fd2cac9b40e04af94f547d90 [^]

related to bug 19107: fixed NPE

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0042985)
plujan   
2011-11-18 13:09   
When accessing a non activated instance you get a 500 error before login.

Check attached image.
(0042986)
marvintm   
2011-11-18 13:32   
Tested that the change works on non-activated instances, that the activation process still works, that when the license is still valid, login works as usual, and that when the date is expired, login raises an error as designed.
(0042998)
shuehner   
2011-11-18 20:05   
Quick recheck in MP5.1 appliance. Activate an instance with a license having expiration date i.e. of 19th November 2011, plus then deactivate ntp daemon + change system date of the appliance to 20th of November. After that trying to login again leads to error message mentioning expired license and redirects to system administrator role (fine).
(0043054)
hudsonbot   
2011-11-22 03:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ebd713dfe507 [^]

Maturity status: Test
(0043055)
hudsonbot   
2011-11-22 03:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ebd713dfe507 [^]

Maturity status: Test
(0043056)
hudsonbot   
2011-11-22 03:50   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ebd713dfe507 [^]

Maturity status: Test