Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056039Openbravo ERPA. Platformpublic2024-07-17 10:062024-11-18 14:52
shuehner 
AugustoMauch 
normalmajorhave not tried
scheduledopen 
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

[exportconfigscript] 19117 [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.
[exportconfigscript] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) ~[?:?]
[exportconfigscript] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:178) [?:?]
[exportconfigscript] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400) [?:?]
[exportconfigscript] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) [?:?]
[exportconfigscript] at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1465) [?:?]
No tags attached.
depends on defect 0056729 new Triage Platform Base export.config.script produces wrong data when run with jdk21 (that causes later update.database to fail) 
caused by defect 0054490 closed Triage Platform Base update.database fails with jdk21 
Not all the children of this issue are yet resolved or closed.
? 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
2024-09-26 15:46AugustoMauchAssigned ToTriage Platform Base => AugustoMauch
2024-09-26 16:34AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28511#r28511
2024-09-26 16:45AugustoMauchStatusnew => scheduled
2024-09-26 16:47hgbotNote Added: 0169648
2024-09-26 16:47hgbotNote Added: 0169649
2024-11-18 14:52AugustoMauchRelationship addeddepends on 0056729

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)
(0169648)
hgbot   
2024-09-26 16:47   
Merge Request created: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/49 [^]
(0169649)
hgbot   
2024-09-26 16:47   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1360 [^]