Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0009376 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2009-06-08 13:08 | 2009-07-27 00:00 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 2.50MP3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 97e2fba62f90 | ||||
Projection | none | ETA | none | Target Version | pi | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0009376: Uninstalling a module which added a column in a standard Openbravo table fails | |||||||
Description | During the uninstall the column is removed from the model, the uninstall will run generate.entities.quick but column removal is not detected and the entities are not regenerated. Then the apply modules task has reinitializeModel="true" it will reread the model and reinitialize the dal. This however results in an error as the new model does not contain the module column anymore but it keeps old business object classes in-memory (which have the old removed column). So the business object classes (in-memory as they have already been loaded) are not insync anymore with the model. This results in an exception when applying models. Proposed changes: - The generate.entities.quick has to be change to generate.entities - reinitializeModel has to be set to false for the case of applying a module. The model which causes an exception is attached. | |||||||
Tags | 250MP3releasecandidate | |||||||
Attached Files | org.openbravo.hcm.common-1.0.0.obx [^] (137,924 bytes) 2009-06-08 13:08 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0017092) hgbot (developer) 2009-06-08 13:55 |
Repository: erp/devel/pi Changeset: 97e2fba62f90beeb50182e5e8cddf1a0ad8c9772 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Mon Jun 08 13:54:55 2009 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/97e2fba62f90beeb50182e5e8cddf1a0ad8c9772 [^] Fixes issue 9376: Uninstalling a module which added a column in a standard Openbravo table fails --- M build.xml M src/build.xml --- |
(0017108) AinhoaPagola (reporter) 2009-06-08 16:49 |
I have tested the solution with a module where the issue was reproducible. I could successfully install and uninstall the module. The solution works for me. Thank you Martin. |
(0018621) psarobe (manager) 2009-07-26 22:01 |
Thanks Ainhoa |
Issue History | |||
Date Modified | Username | Field | Change |
2009-06-08 13:08 | mtaal | New Issue | |
2009-06-08 13:08 | mtaal | Assigned To | => mtaal |
2009-06-08 13:08 | mtaal | File Added: org.openbravo.hcm.common-1.0.0.obx | |
2009-06-08 13:55 | hgbot | Checkin | |
2009-06-08 13:55 | hgbot | Note Added: 0017092 | |
2009-06-08 13:55 | hgbot | Status | new => resolved |
2009-06-08 13:55 | hgbot | Resolution | open => fixed |
2009-06-08 13:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/97e2fba62f90beeb50182e5e8cddf1a0ad8c9772 [^] |
2009-06-08 16:49 | AinhoaPagola | Note Added: 0017108 | |
2009-06-22 11:09 | psarobe | Fixed in Version | => main |
2009-07-21 16:24 | psarobe | Fixed in Version | main => 2.50MP3 |
2009-07-21 16:26 | psarobe | Tag Attached: 250MP3releasecandidate | |
2009-07-26 22:01 | psarobe | Status | resolved => closed |
2009-07-26 22:01 | psarobe | Note Added: 0018621 | |
2009-07-27 00:00 | anonymous | sf_bug_id | 0 => 2827482 |
Copyright © 2000 - 2009 MantisBT Group |