Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0009376
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-06-08 13:082009-07-27 00:00
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version2.50MP3
StatusclosedFix in branchFixed in SCM revision97e2fba62f90
ProjectionnoneETAnoneTarget Versionpi
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0009376: Uninstalling a module which added a column in a standard Openbravo table fails

DescriptionDuring 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.
Tags250MP3releasecandidate
Attached Files? file icon 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
Powered by Mantis Bugtracker