Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027560Openbravo ERPA. Platformpublic2014-09-09 08:552014-09-22 10:29
alostale 
alostale 
normaltrivialhave not tried
closedfixed 
5
 
3.0PR14Q43.0PR14Q4 
shankarb
Core
No
0027560: instance mismatch using trial license to refresh an expired instance with no sys identifier
When fresh professional instance with an expired license and no system identifier (ie. Retail virtual appliance) is activated with a Trial license, it becomes unusable after Tomcat is restarted.

"This professional license is issued for a different Openbravo instance. Therefore, this instance cannot be activated." alert is shown in login and only System Admin can enter the application.
-Download retail appliance: http://releaser1.openbravo.com/releases/3.0RR14Q3/appliances/openbravo-3.0RR14Q3-vmware-i386.zip [^]
-Log in as Openbravo (license is expired so it will log as System Admin)
-DO NOT activate Heartbeat
-Get a Trial License
-Open Instance Activation window and activate with that license
-Restart Tomcat
-Subsequent logins show "This professional license is issued for a different Openbravo instance. Therefore, this instance cannot be activated." message
No tags attached.
Issue History
2014-09-09 08:55alostaleNew Issue
2014-09-09 08:55alostaleAssigned To => alostale
2014-09-09 08:55alostaleModules => Core
2014-09-09 08:55alostaleTriggers an Emergency Pack => No
2014-09-09 08:57alostaleReview Assigned To => shankarb
2014-09-09 09:12hgbotCheckin
2014-09-09 09:12hgbotNote Added: 0070040
2014-09-09 09:12hgbotStatusnew => resolved
2014-09-09 09:12hgbotResolutionopen => fixed
2014-09-09 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ec2461a9b7529705c4149c809af19e05122ea2d7 [^]
2014-09-22 10:29shankarbNote Added: 0070226
2014-09-22 10:29shankarbStatusresolved => closed
2014-09-22 10:29shankarbFixed in Version => 3.0PR14Q4

Notes
(0070040)
hgbot   
2014-09-09 09:12   
Repository: erp/devel/pi
Changeset: ec2461a9b7529705c4149c809af19e05122ea2d7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Sep 09 09:10:32 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ec2461a9b7529705c4149c809af19e05122ea2d7 [^]

fixes 27560: can't use expired instance refresed with trial without sys id

  An instance without sys id that was previously activated with an expired license
  and is activated with a trial can't be used anymore. This was caused because:
    -Expired licenses a tried to be renewed behind the scenes to do so, sys id is
     required but as there is none a new one is created but not persisted in DB
    -When requesting trial activation that previously generated sys id is used and
     the licence is associated to it
    -Finally data is refreshed from db, and as the sys id was not persisted a new one
     is created and saved. Causing the mismatch with the id linked to the license

---
M src/org/openbravo/erpCommon/utility/SystemInfo.java
---
(0070226)
shankarb   
2014-09-22 10:29   
Code reviewed and verified in pi changeset 99b060690c1f.