Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056039Openbravo ERPA. Platformpublic2024-07-17 10:062024-07-17 10:09
shuehner 
Triage Platform Base 
normalmajorhave not tried
newopen 
5
 
 
Core
Production - Confirmed Stable
2024-03-06
PR24Q1.1
https://gitlab.com/openbravo/product/dbsm/-/commit/a68e966b12feb9abd64b935a1a7d3899ed62e525 [^]
No
0056039: ant export.config.script fails when formalChangesScript.xml contains no formal changes
In issue 54490 we worked around in the betwixt library when being used with jd21.

We skipped writing list of changes to formalChangesScript.xml in case the list was empty.
However that caused the written xml file to be different (and broken)

Instead of the good content (when not having formal changeS)
 <?xml version="1.0"?>
  <vector/>

Instead it now contains just
 <?xml version="1.0"?>

In that case ant export.config.script fails with the following error:

[exportconfigscript] 38458 [main] INFO org.openbravo.ddlutils.task.ExportConfigScript - Loading script of formal changes
[exportconfigscript] 38532 [main] ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line 2 column 1: Premature end of file.
[exportconfigscript] org.xml.sax.SAXParseException: Premature end of file.
workspace with only backoffice repo (without extra modules)
ant install.source
ant update.database (to generate formalChangesScript.xml)
psql
  update ad_module set isindevelopment = 'Y' where type = 'T'
ant export.config.script
No tags attached.
caused by defect 0054490 closed Triage Platform Base update.database fails with jdk21 
? formalChangesScript.xml.bad (22) 2024-07-17 10:09
https://issues.openbravo.com/file_download.php?file_id=20020&type=bug
? formalChangesScript.xml.good (34) 2024-07-17 10:09
https://issues.openbravo.com/file_download.php?file_id=20021&type=bug
Issue History
2024-07-17 10:06shuehnerNew Issue
2024-07-17 10:06shuehnerAssigned To => Triage Platform Base
2024-07-17 10:06shuehnerModules => Core
2024-07-17 10:06shuehnerRegression level => Production - Confirmed Stable
2024-07-17 10:06shuehnerRegression date => 2024-03-06
2024-07-17 10:06shuehnerRegression introduced in release => PR24Q1.1
2024-07-17 10:06shuehnerRegression introduced by commit => https://gitlab.com/openbravo/product/dbsm/-/commit/a68e966b12feb9abd64b935a1a7d3899ed62e525 [^]
2024-07-17 10:06shuehnerTriggers an Emergency Pack => No
2024-07-17 10:07shuehnerRelationship addedcaused by 0054490
2024-07-17 10:07shuehnerNote Added: 0167051
2024-07-17 10:09shuehnerFile Added: formalChangesScript.xml.bad
2024-07-17 10:09shuehnerFile Added: formalChangesScript.xml.good

Notes
(0167051)
shuehner   
2024-07-17 10:07   
Regression introduced by is set to 24Q1.1 as the change causing it was also backported to 24Q1.1 in 54526)