Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.8.1, 7.19.6
-
5
-
Severity 3 - Minor
-
0
-
Description
Summary
Invalid escape character of percent-encoding causes "URLDecoder: Incomplete trailing escape (%) pattern".
Steps to Reproduce
- Create a page (P1) containing TOC macro and heading in multi-byte chars
- Create a page (P2) containing a link to P1's heading
- Export the page P2 to PDF and confirm it works correctly
- Edit the page P2 to make the link's URL invalid against percent-encoding
- Export the page P2 to PDF and confirm it complains exception
Expected Results
PDF export doesn't get interrupted by broken link in page.
Actual Results
The below exception is thrown in the logs/atlassian-confluence.log file:
java.lang.IllegalArgumentException: URLDecoder: Incomplete trailing escape (%) pattern at java.net.URLDecoder.decode(URLDecoder.java:187) at com.atlassian.confluence.extra.flyingpdf.html.LinkFixer.decodeTitle(LinkFixer.java:96)
Workaround
Fix the broken link. If you are trying to export space to PDF, it's hard to identify which page causing the exception. Refer How to identify which page facing unrecoverable error for those cases.