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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058265
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2025-03-17 20:282025-03-24 14:55
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in VersionPR25Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058265: Install from obx file does not handle AD_MODULE_MERGE entries

DescriptionInstalling a new obx version from a file does not detect / handle ad_module_merge entries declared in the new version.

That means that the merged module does not get auto-uninstalled as it should be.

As a consequence the rest of the process has both the merge copy + the original module present and will fail with various errors

Rebuilding system will have lots of duplicate errors

Trying to install 2nd module from obx file will have in ‘verifyLocalChanges’ as that reads model from xml file which fails with seeing i.e. EM* columns twice



It looks like that error is present from day1 on adding support code for ad_module_merge.

https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/6a41faac00f680e468ff0b559605ac49ae9e0ef9#6fe7d4ebb49405382b6092f13a4a78c1b3cebab0_1247_1318 [^]

https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/d7658bec195f8e4e5af0764eaa63c490a61c3ebe#6fe7d4ebb49405382b6092f13a4a78c1b3cebab0_1319_1320 [^]

Problem seems to be the extra / in front of src-db.

When parsing file for obx of core/ad_module_id=0 as created by script packagedistribution/packager/obx file the AD_MODULE_MERGE.xml file inside the ZipInputStream does not match with that leading /
Steps To ReproduceHave context with backoffice only (git master) + org.openbravo.retail.config
=> Pre org.openbravo.retail.config merge into core

Have local obx file ready with:
- higher ad_module.version
- ad_module_merge having and entry to declare merge of org.openbravo.retail.config

Install this obx file from local.

Expected:
- Message telling about uninstalled org.openbravo.retail.config module as it has been merged. After confirming this the module folder should be deleted
Actual:
- This declared is not detected and obx file is installed without deleting the org.openbravo.retail.config module folder
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0058283PR25Q1.1 closedshuehner Install from obx file does not handle AD_MODULE_MERGE entries 
depends on backport 0058284PR24Q4.2 closedshuehner Install from obx file does not handle AD_MODULE_MERGE entries 

-  Notes
(0176912)
hgbot (developer)
2025-03-17 20:34

Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1595 [^]
(0177179)
hgbot (developer)
2025-03-24 14:55

Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1595 [^]
(0177180)
hgbot (developer)
2025-03-24 14:55

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo [^]
Changeset: ac4a1128347f92aca1d709eb5559e08096f84ab8
Author: Stefan Huehner <s.huehner@orisha.com>
Date: 24-03-2025 14:54:41
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/ac4a1128347f92aca1d709eb5559e08096f84ab8 [^]

Fixes ISSUE-58265: Fix reading module merges from local obx file.

When installing an update to a module from local obx file the code
to find and read AD_MODULE_MERGE.xml inside the obx file was using wrong
filename comparison with an extra leading / in front of the
src-db/database/sourcedata/AD_MODULE_MERGE.xml.
As the filename stores in the obx file don't have a leading / it didn't
find the file so never triggered handling of merged modules.

Remove the leading / to have the name comparison working (and be same as
done for the various other xml file like i.e. AD_MODULE_DBPREFIX in the
same function.

---
M src/org/openbravo/erpCommon/modules/ImportModule.java
---

- Issue History
Date Modified Username Field Change
2025-03-17 20:28 shuehner New Issue
2025-03-17 20:28 shuehner Assigned To => Triage Platform Base
2025-03-17 20:28 shuehner OBNetwork customer => No
2025-03-17 20:28 shuehner Modules => Core
2025-03-17 20:28 shuehner Triggers an Emergency Pack => No
2025-03-17 20:34 hgbot Merge Request Status => open
2025-03-17 20:34 hgbot Note Added: 0176912
2025-03-18 18:45 shuehner Assigned To Triage Platform Base => shuehner
2025-03-18 18:45 shuehner Status new => scheduled
2025-03-24 13:35 hgbot Merge Request Status open => approved
2025-03-24 14:55 hgbot Note Added: 0177179
2025-03-24 14:55 hgbot Resolution open => fixed
2025-03-24 14:55 hgbot Status scheduled => closed
2025-03-24 14:55 hgbot Fixed in Version => PR25Q2
2025-03-24 14:55 hgbot Note Added: 0177180


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker