Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0058104 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2025-02-27 16:54 | 2025-02-28 09:42 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0058104: Is not possible to reprint an XML document with nested elements of the same type | |||||||
Description | Is not possible to reprint an XML document with nested elements of the same type | |||||||
Steps To Reproduce | 1) Execute the attached test case, which tries to transform an XML document with a nested <line> inside another <line>. The transformation fails. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|||||||||||||||||||||||||||||
|
![]() |
|
(0176245) hgbot (developer) 2025-02-27 17:20 |
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/merge_requests/5 [^] |
(0176257) hgbot (developer) 2025-02-28 09:22 |
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: 7d69e543215a59edac30e81e248fa352136ac0bc Author: Carlos Aristu <c.aristu@orisha.com> Date: 28-02-2025 07:43:03 URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/commit/7d69e543215a59edac30e81e248fa352136ac0bc [^] fixes BUG-58104: 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 --- |
(0176258) hgbot (developer) 2025-02-28 09:22 |
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.mobile.transformtopdf/-/merge_requests/5 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2025-02-27 16:54 | caristu | New Issue | |
2025-02-27 16:54 | caristu | Assigned To | => caristu |
2025-02-27 16:54 | caristu | OBNetwork customer | => No |
2025-02-27 16:54 | caristu | Triggers an Emergency Pack | => No |
2025-02-27 16:54 | caristu | Issue generated from | 0058090 |
2025-02-27 16:54 | caristu | Relationship added | related to 0058090 |
2025-02-27 16:55 | caristu | Relationship deleted | related to 0058090 |
2025-02-27 16:55 | caristu | Relationship added | related to 0056385 |
2025-02-27 16:56 | caristu | File Added: 58104_reproducer.diff | |
2025-02-27 16:56 | caristu | Summary | Is not possible to reprint an XML document with nested elements => Is not possible to reprint an XML document with nested elements of the same type |
2025-02-27 17:20 | hgbot | Merge Request Status | => open |
2025-02-27 17:20 | hgbot | Note Added: 0176245 | |
2025-02-28 07:43 | alostale | Relationship added | related to 0058090 |
2025-02-28 08:26 | hgbot | Merge Request Status | open => approved |
2025-02-28 09:22 | hgbot | Resolution | open => fixed |
2025-02-28 09:22 | hgbot | Status | new => closed |
2025-02-28 09:22 | hgbot | Note Added: 0176257 | |
2025-02-28 09:22 | hgbot | Note Added: 0176258 | |
2025-02-28 09:42 | caristu | Status | closed => new |
2025-02-28 09:42 | caristu | Resolution | fixed => open |
2025-02-28 09:42 | caristu | Status | new => scheduled |
2025-02-28 09:42 | caristu | Status | scheduled => resolved |
2025-02-28 09:42 | caristu | Resolution | open => fixed |
2025-02-28 09:42 | caristu | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |