Openbravo Issue Tracking System - Modules
View Issue Details
0016635ModulesCentral Repositorypublic2011-04-04 17:302014-04-01 21:46
adrianromero 
alostale 
normalmajorhave not tried
closedfixed 
5
 
 
No
0016635: If a module that contains a module script is uninstalled, this module script is not uninstalled and it is executed
When uninstalling a module that contains a module script, the classes that contains the logic of this module script are not removed and are executed when compiling the application. This is wrong because the module is not installed any longer.
This can be tested with the IDL 3.0.0 that contains a module script. This is a sequence that raises this problem:

1.- Install a new Openbravo ERP 3.0
2.- Install IDL

Result:
Process completed successfully
Module successfully installed Initial Data Load - 3.0.0
This module installs a module script in the following location:

src-util/modulescript/src/src/org/openbravo/idl/modulescript/RemoveOldIDLEntitiesData.java

3.- Install IDL 4 java

Result
Process completed successfully
Module successfully installed Initial Data Load Extension for Java - 1.0.0
Module successfully installed Initial Data Load - 1.1.8

The IDL has been downgraded to version 1.1.8 (To fix the dependencies of the IDL 4 java is already another issue that must be resolved indepentently) but the module script of 3.0.0 is still installed which is wrong.
src-util/modulescript/src/src/org/openbravo/idl/modulescript/RemoveOldIDLEntitiesData.java

5.- execute ant smartbuild -Dlocal=no

An error is raised because of the module script:

         [java] 208870 WARN - SQL Command failed with: ERROR: inserción o actualización en la tabla «idl_fields» viola la llave foránea «idl_field_entities»
         [java] Detail: La llave (idl_entities_id)=(FF80818124241FE0012424493CA7005A) no está presente en la tabla «idl_entities».
         [java] 208904 WARN - -- END
         [java] ALTER TABLE IDL_FIELDS
         [java] ADD CONSTRAINT IDL_FIELD_ENTITIES FOREIGN KEY (IDL_ENTITIES_ID) REFERENCES IDL_ENTITIES (IDL_ENTITIES_ID)
No tags attached.
related to defect 0016634 closed dalsasua IDL Extension for java must extend its dependencies to be able to be installed along with IDL 3.0.0 
Issue History
2011-04-04 17:30adrianromeroNew Issue
2011-04-04 17:30adrianromeroAssigned To => alostale
2011-04-04 17:30adrianromeroModules => Core
2011-04-04 17:30adrianromeroOBNetwork customer => No
2011-04-04 17:30adrianromeroRelationship addedrelated to 0016634
2011-04-04 17:49rafademiguelIssue Monitored: rafademiguel
2011-04-05 10:28alostaleStatusnew => scheduled
2011-04-05 10:28alostalefix_in_branch => pi
2011-04-05 10:28alostaleTarget Version3.0RC6 => 3.0RC7
2011-04-05 10:28alostalefix_in_branchpi =>
2011-05-06 19:35dmitry_mezentsevAssigned Toalostale => marvintm
2011-05-10 12:15marvintmAssigned Tomarvintm => alostale
2011-05-10 12:15marvintmTarget Version3.0RC7 =>
2011-05-10 12:17marvintmProjectOpenbravo ERP => Modules
2011-05-10 12:18marvintmCategoryA. Platform => Central Repository
2011-05-10 12:18marvintmversionpi =>
2011-05-10 12:19hgbotCheckin
2011-05-10 12:19hgbotNote Added: 0036618
2011-05-10 12:19hgbotStatusscheduled => resolved
2011-05-10 12:19hgbotResolutionopen => fixed
2011-05-10 12:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/4e9bcba22329703ba9237a2ec33aa30ccf44759e [^]
2014-04-01 21:46plujanNote Added: 0065709
2014-04-01 21:46plujanStatusresolved => closed

Notes
(0036618)
hgbot   
2011-05-10 12:19   
Repository: erp/pmods/org.openbravo.utility.centralrepository
Changeset: 4e9bcba22329703ba9237a2ec33aa30ccf44759e
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue May 10 12:19:11 2011 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/4e9bcba22329703ba9237a2ec33aa30ccf44759e [^]

Fixed bug 16635: preprocess to prevent this case:

  -Instaled module A in version 2
  -Trying to intall module B, compatible with A 1, not compatible with A 2

Preprocess removed A 2, process added A 1: effect was A was downgraded

---
M src/org/openbravo/utility/centralrepository/ws/erp/CheckConsistency.java
---
(0065709)
plujan   
2014-04-01 21:46   
Closed as marked as Resolved for too long