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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058104
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2025-02-27 16:542025-02-28 09:42
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
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

0058104: 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 Filesdiff file icon 58104_reproducer.diff [^] (1,825 bytes) 2025-02-27 16:56 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0056385 closedadrianromero Send Email refactor 
related to defect 0058090 closedcaristu Cannot parse images without read access to ADSystemInformation entity 
depends on backport 0058110RR25Q1 closedcaristu Is not possible to reprint an XML document with nested elements of the same type 
depends on backport 0058111RR24Q4.2 closedcaristu Is not possible to reprint an XML document with nested elements of the same type 

-  Notes
(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 [^]

- Issue History
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
Powered by Mantis Bugtracker