Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0009376 | Openbravo ERP | A. Platform | public | 2009-06-08 13:08 | 2009-07-27 00:00 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | pi | Fixed in Version | 2.50MP3 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
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. |
Steps To Reproduce | |
Proposed Solution | |
Additional Information | |
Tags | 250MP3releasecandidate |
Relationships | |
Attached Files | org.openbravo.hcm.common-1.0.0.obx (137,924) 2009-06-08 13:08 https://issues.openbravo.com/file_download.php?file_id=1399&type=bug |
|
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 |