SchweizerischeBundesbahnen / ch.sbb.polarion.extension.pdf-exporter

Polarion extension for customised PDF exports
13 stars 0 forks source link

Error processing heading of tables in HTML #42

Closed yurtsevich-sbb closed 1 month ago

yurtsevich-sbb commented 1 month ago

Current Behavior

When trying to export "Advanced API Training" document from standard Polarion's "Training Materials" error occurs:

{"status":"FAILED","errorMessage":"java.lang.IllegalArgumentException: Illegal group reference"}

Expected Behavior

Exporting to PDF shouldn't throw unhandled error

Steps To Reproduce

  1. Having Polarion with any project where "Training Materials" installed
  2. Open such project, then its "Documents & Pages", then "Training Materials" and document "Advanced API Training"
  3. Open "Document Properties" side pane and click button "Export to PDF" in its "PDF Exporter" section
  4. Error occurs

Environment - OS

Linux

Polarion version

2310

Extension Version

5.2.0

Anything else

Error stack trace:

Illegal group reference java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1067) ~[?:?] at java.util.regex.Matcher.appendReplacement(Matcher.java:997) ~[?:?] at ch.sbb.polarion.extension.pdf.exporter.util.HtmlProcessor.properTableHeads(HtmlProcessor.java:574) ~[ch.sbb.polarion.extension.pdf-exporter-5.2.0.jar:?]