Openbravo Issue Tracking System - Modules
View Issue Details
0057915ModulesDistribution Orderspublic2025-02-07 14:482025-02-19 21:21
shuehner 
shuehner 
normalmajoralways
closedfixed 
5
 
 
0057915: Distributionorder module fails to compile with only it's declared dependencies
The DO module declares only dependencies on

backoffice

org.openbravo.retail.config

https://gitlab.com/openbravo/product/mods/org.openbravo.distributionorder/-/blob/1.2.244000/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml?ref_type=tags [^]

But trying to use/compile with only with those it fails to compile.

Technically is uses commons-lang3 library where backoffice only has commons-lang (different major version). That probably got missed when only testing DO when also having org.openbravo.openapi module installed.



Apart from being a bug on itself this blocks future DO merged into backoffice.
Make workspace with only
- backoffice
- org.openbravo.retail.config (pmods)
- org.openbravo.distributionorder (mods)

Run install.source
Fix the wrong java import to target the library available in backoffice
No tags attached.
Issue History
2025-02-07 14:48shuehnerNew Issue
2025-02-07 14:48shuehnerAssigned To => Triage Omni WMS
2025-02-07 15:00hgbotNote Added: 0175314
2025-02-19 21:17aferrazAssigned ToTriage Omni WMS => shuehner
2025-02-19 21:21hgbotResolutionopen => fixed
2025-02-19 21:21hgbotStatusnew => closed
2025-02-19 21:21hgbotNote Added: 0175925
2025-02-19 21:21hgbotNote Added: 0175926

Notes
(0175314)
hgbot   
2025-02-07 15:00   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/87 [^]
(0175925)
hgbot   
2025-02-19 21:21   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder [^]
Changeset: 1358b7182f64a969796a4ed78ba08b5265921230
Author: Stefan Huehner <s.huehner@orisha.com>
Date: 07-02-2025 14:57:25
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/commit/1358b7182f64a969796a4ed78ba08b5265921230 [^]

Fixes ISSUE-57915: Fix compilation without openapi module

Fix java import to StringUtils utility class from commons-lang.
It wrongly imports the version from commons-lang3 jar file which only
exists in openapi module (and this module doesn't depend on openapi).

Instead import same class from common-lang (v2) available in backoffice
repository.

---
M src/org/openbravo/distributionorder/actionHandler/OnChangeVendorActionHandler.java
---
(0175926)
hgbot   
2025-02-19 21:21   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/mods/org.openbravo.distributionorder/-/merge_requests/87 [^]