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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058110
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajorhave not tried2025-02-27 16:542025-02-28 12:03
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR25Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058110: Is not possible to reprint an XML document with nested elements of the same type

DescriptionIs not possible to reprint an XML document with nested elements of the same type
Steps To Reproduce1) Execute the attached test case, which tries to transform an XML document with a nested <line> inside another <line>. The transformation fails.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0058104 closedcaristu Is not possible to reprint an XML document with nested elements of the same type 

-  Notes
(0176260)
hgbot (developer)
2025-02-28 09:45

Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/merge_requests/7 [^]
(0176278)
hgbot (developer)
2025-02-28 12:02

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf [^]
Changeset: 98d7b1b29dd5c9b93594e35cbbce6e3e7dfc2cb7
Author: Carlos Aristu <c.aristu@orisha.com>
Date: 28-02-2025 09:43:58
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/commit/98d7b1b29dd5c9b93594e35cbbce6e3e7dfc2cb7 [^]

fixes BUG-58110: cannot transform XML with nested elements of the same type

  TicketParser was not properly handling the case of processing a nested
element that is inside another element of the same type.

  In such case the parser for the nested element was being skipped for
the execution of the element closing. For the reported case of nested
<line> elements this was resulting in the generation of an html with
unclosed <div> elements that eventually caused an error in the
transformation into PDF: The element type "div" must be terminated by
the matching end-tag "</div>".

  To fix this problem we do not keep in cache the list of parsers and
let Weld to return the parser instance to be used based on its scope. We
also remove the unnecessary equals check of the current parser.

  Finally we also replace the usage of java.util.logging classes which
were used in the past with the org.apache.logging.log4j classes.

---
A src-test/org/openbravo/mobile/transformtopdf/StandaloneTestSuite.java
A src-test/org/openbravo/mobile/transformtopdf/TicketParserTest.java
M src/org/openbravo/mobile/transformtopdf/BarcodeParser.java
M src/org/openbravo/mobile/transformtopdf/LineParser.java
M src/org/openbravo/mobile/transformtopdf/NodeParser.java
M src/org/openbravo/mobile/transformtopdf/TextParser.java
M src/org/openbravo/mobile/transformtopdf/TicketParser.java
M src/org/openbravo/mobile/transformtopdf/XMLTicketParser.java
---
(0176279)
hgbot (developer)
2025-02-28 12:03

Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/merge_requests/7 [^]

- Issue History
Date Modified Username Field Change
2025-02-28 09:42 caristu Type defect => backport
2025-02-28 09:42 caristu Target Version => RR25Q1
2025-02-28 09:45 hgbot Note Added: 0176260
2025-02-28 12:02 hgbot Resolution open => fixed
2025-02-28 12:02 hgbot Status scheduled => closed
2025-02-28 12:02 hgbot Note Added: 0176278
2025-02-28 12:03 hgbot Note Added: 0176279


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker