Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0014002 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | sometimes | 2010-07-19 18:23 | 2010-07-24 22:54 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 10a6e520f525 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0014002: When different versions of a modulescript exist in the system, update.database may fail | |||||||
Description | If more than one different version of a .class file used by a modulescript exist in the system (for example, one in build/classes, and one inside the module folder), then update.database may fail. | |||||||
Steps To Reproduce | - Install module org.openbravo.advpaymentmngt (revision 64c5add7d960) - update the module repository to latest version - do update.database. It will fail. | |||||||
Proposed Solution | the classpath will be changed so that it gets files from the module folder first, so that this problem doesn't happen. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0029390) hgbot (developer) 2010-07-19 18:29 |
Repository: erp/devel/pi Changeset: 10a6e520f525fe11824a04ce38219682c57a7808 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Mon Jul 19 18:25:56 2010 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/10a6e520f525fe11824a04ce38219682c57a7808 [^] Fixed issue 14002. Modulescripts with outdated classes won't fail. Changed the classpath of the build.xml files so that the Java classes in the module folders are loaded first. This fixes a problem which could happen if an older version of a modulescript class used some method or class which no longer exists. --- M build.xml M src-db/database/build.xml --- |
(0029400) shuehner (administrator) 2010-07-20 12:27 |
Change reviewed. Order of classpath entries is changed. Now modules/*/build/classes (which do/should only contain .class files for modulescript & buildvalidations) comes first in the classpath order so the current uptodate script are always used. As no other files will be/should be present in those folder this has no extra impact on other classloading. Tested using steps to reproduce: clone the mentioned old module version ant compile -Dtab=xx to copy older .class files to the 'wrong' location (see 14000) run update.database fails with this 14002 changeset applied, works fine with the changeset applied |
(0029540) hudsonbot (viewer) 2010-07-24 22:54 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/10a6e520f525 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/eb739d47ff2b [^] Tests: http://builds.openbravo.com/view/int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17900.obx [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2010-07-19 18:23 | marvintm | New Issue | |
2010-07-19 18:23 | marvintm | Assigned To | => marvintm |
2010-07-19 18:23 | marvintm | OBNetwork customer | => No |
2010-07-19 18:29 | hgbot | Checkin | |
2010-07-19 18:29 | hgbot | Note Added: 0029390 | |
2010-07-19 18:29 | hgbot | Status | new => resolved |
2010-07-19 18:29 | hgbot | Resolution | open => fixed |
2010-07-19 18:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/10a6e520f525fe11824a04ce38219682c57a7808 [^] |
2010-07-20 12:27 | shuehner | Note Added: 0029400 | |
2010-07-20 12:27 | shuehner | Status | resolved => closed |
2010-07-21 00:00 | anonymous | sf_bug_id | 0 => 3032309 |
2010-07-24 22:54 | hudsonbot | Checkin | |
2010-07-24 22:54 | hudsonbot | Note Added: 0029540 |
Copyright © 2000 - 2009 MantisBT Group |