Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013414Openbravo ERPA. Platformpublic2010-05-22 20:462010-05-25 16:29
psarobe 
shuehner 
immediatemajoralways
closedfixed 
5
main 
pi 
Core
No
0013414: In a community instance. Null pointer when trying to update a module
In community appliance or in deactivate instance in MP18, probablyu in MP17 is also present, if you try to update a module a NPE appears
1. Being in a community or deactivate instance MP18
2. Install a non-comercial module (Openbravo Multi business partner selector)
3. Once is installed. change the minor version for example from 1.0.6 to 1.0.5
4. Scan for updates. Click "Install updates now". You will see the NPE

See attach

Regression QA
related to defect 0013315 closed alostale Confusing error message on CE when installing free module depending on newer (commercial) core 
Issue History
2010-05-22 20:46psarobeNew Issue
2010-05-22 20:46psarobeAssigned To => shuehner
2010-05-22 20:47psarobeTag Attached: Regression
2010-05-22 20:47psarobeStatusnew => scheduled
2010-05-22 20:56psarobeTag Detached: Regression
2010-05-22 20:58psarobeTag Attached: Regression QA
2010-05-23 21:26psarobeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=427#r427
2010-05-23 21:28psarobeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=428#r428
2010-05-24 12:48shuehnerRelationship addedrelated to 0013315
2010-05-24 12:49shuehnerNote Added: 0027671
2010-05-24 12:49shuehnerStatusscheduled => resolved
2010-05-24 12:49shuehnerFixed in Version => pi
2010-05-24 12:49shuehnerFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/0d4d27716b2a [^]
2010-05-24 12:49shuehnerResolutionopen => fixed
2010-05-24 17:44shuehnerNote Added: 0027683
2010-05-24 17:44shuehnerStatusresolved => closed
2010-05-25 00:01anonymoussf_bug_id0 => 3006658
2010-05-25 16:29psarobeNote Added: 0027725

Notes
(0027671)
shuehner   
2010-05-24 12:49   
Commit for the fix went into 13315 by accident.

Repository: erp/devel/pi
Changeset: 0d4d27716b2af89f7ebe09e207ff37c85609ad14
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon May 24 12:35:09 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0d4d27716b2af89f7ebe09e207ff37c85609ad14 [^] [^]

fixed bug 13315: prevent NPE

---
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
(0027683)
shuehner   
2010-05-24 17:44   
Tested in pi/pgsql:
Tests done:

using production butler
in community instance:
- install community module: 3 digits iso country code
- update the module (decrease version locally to get an update)
- uninstall the module
- install commercial module not depending on other commercial modules
- install commercial module depending on other commercial module
- install commercial module depending on other commercial module needed to be upgraded (i.e. core)
- install community module depending on commercial module needed to be upgraded (core): original defect here
- install from obx: 3 digits iso country code (1.0.2)
- update same from obx: (before reduce version locally)
- try to update core via commercial obx file
- try to install commercial module (Easy extensible attributes) from obx file


in activated instance:
- install community module: 3 digits iso country code
- update the module (decrease version locally to get an update)
- uninstall the module
- install commercial module not depending on other commercial modules (Easy Extensible attributes)
- install commercial module depending on other commercial module (org.openbravo.module.grossamountinvoicelines.es_ES depends on English version)
- install commercial module depending on other commercial module needed to be upgraded (i.e. core) (grossamountinvoicelines after having decreased version of Core)
- install community module depending on commercial module needed to be upgraded (core) (installed selector module after having decreased version of Core)
- install/update community module via obx-file (test done with 3 digits iso country)
- install/update commercial module via obx-file (install done with Easy Extensible Attributes, upgrade done with Core)
(0027725)
psarobe   
2010-05-25 16:29   
Regression introduce by issue 13315