Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019339Openbravo ERPA. Platformpublic2011-12-21 09:512011-12-28 04:38
alostale 
alostale 
urgentmajorhave not tried
closedfixed 
5
3.0MP5.3 
3.0MP7 
Core
No
0019339: Cloned trial instance shows NPE in Instance Activation window
After cloning an instance licensed with a trial license, a NPE is shown in Instance Activation window.
-Activate an instance with a trial license
-Clone this instance
-In the cloned instance go to Instance Activation window -> NPE is shown
No tags attached.
Issue History
2011-12-21 09:51alostaleNew Issue
2011-12-21 09:51alostaleAssigned To => alostale
2011-12-21 09:51alostaleModules => Core
2011-12-21 09:52alostaleSummaryCloned trial license shown NPE in Instance Activation window => Cloned trial instance shows NPE in Instance Activation window
2011-12-21 09:53hgbotCheckin
2011-12-21 09:53hgbotNote Added: 0043975
2011-12-21 09:53hgbotStatusnew => resolved
2011-12-21 09:53hgbotResolutionopen => fixed
2011-12-21 09:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9cd579c40b28f4d391f3129c578e96b3b3c12fb4 [^]
2011-12-21 09:59alostaleNote Added: 0043976
2011-12-27 11:31iperdomoNote Added: 0044031
2011-12-27 11:31iperdomoStatusresolved => closed
2011-12-28 04:38hudsonbotCheckin
2011-12-28 04:38hudsonbotNote Added: 0044039

Notes
(0043975)
hgbot   
2011-12-21 09:53   
Repository: erp/devel/pi
Changeset: 9cd579c40b28f4d391f3129c578e96b3b3c12fb4
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 21 09:52:54 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9cd579c40b28f4d391f3129c578e96b3b3c12fb4 [^]

fixed bug 19339: Cloned trial instance shows NPE in Instance Activation window

---
M src/org/openbravo/erpCommon/obps/ActivationKey.java
---
(0043976)
alostale   
2011-12-21 09:59   
*Bug introduction
 This issue was introduced in MP5 as with the new trial license development. It is not a regression as it only affects to new trial license flow. It was not tested because it is not part of the standard trial flow, after cloning a trial instance, it cannot be reactivated with another key nor refreshed.
*Test plan
 -Activate an instance with a trial license
 -Clone this instance
 -In the cloned instance go to Instance Activation window -> NPE is shown
*Risk assessment
  This fix is riskless, it just does a variable null check before using it.
(0044031)
iperdomo   
2011-12-27 11:31   
Tested using a MP6 virtual appliance, using the following patch of changeset: 9cd579c40b28.

- Activate the instance using a trial license
- Change the MAC address of virtual appliance to trigger a clone
- The system detects the clone and you can only login with System Administrator
- When you get redirected the NPE is fixed
(0044039)
hudsonbot   
2011-12-28 04:38   
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/05d50af83cc8 [^]

Maturity status: Test