-
Bug
-
Resolution: Fixed
-
Medium
-
4.1, 4.1.2, 4.2.4, 4.2.6, 4.2.11, 4.2.12, 4.3.1, 5.1.3
Summary of Bug
If the name of a page has a ':' symbol in between two words (for example, "Exercise 1 : Bugs"), or, in front of a word (for example, ": Bugs") the PDF export will fail and return a stack trace.
Steps to Reproduce
- Create a page and ensure that the name has a ':' symbol in between two words (or with the ':' symbol in front of words)
- Save the page
- Try to export it to PDF
Findings
Stack trace
The stack trace is as follows :
java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396) at java.io.File.getCanonicalPath(File.java:559) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.prepareDownloadPath(ExportPageAsPdfAction.java:65) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:37) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100) at com.atlassian.confluence.xwork.ConfluenceXsrfTokenInterceptor.intercept(ConfluenceXsrfTokenInterceptor.java:25) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.interceptors.CaptchaInterceptor.intercept(CaptchaInterceptor.java:49) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.util.LoggingContextInterceptor.intercept(LoggingContextInterceptor.java:49) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.CancellingInterceptor.intercept(CancellingInterceptor.java:23) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.websudo.WebSudoInterceptor.intercept(WebSudoInterceptor.java:61) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:57) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.setup.webwork.BootstrapAwareInterceptor.intercept(BootstrapAwareInterceptor.java:26)
Conditions for reproducing the bug
It seems that if there is nothing after the ':' symbol, the bug will not appear. For example, if the name of the page is "Exercise 1 :", then the page can be exported to PDF format smoothly.
- has a regression in
-
CONFSERVER-58288 Exporting a Space or a Page to PDF fails on Confluence Data Center on Windows if the page title has a ':' character
- Gathering Impact
- is duplicated by
-
CONFSERVER-25152 PDF export for page contain special character (') in its title break exported PDF's filename
- Closed
-
CONFSERVER-28499 Using non-alphanumeric characters in a page title causes PDF creation to fail
- Closed
-
CONFSERVER-32865 Unable to export PDF file for page with title: "Data Management in Ophthalmology: The FORUM Family Startseite"
- Closed
-
CONFSERVER-24531 Export to PDF fails on Windows if title contains colon character
- Closed
-
CONFSERVER-28780 Export to PDF Containing ":" (Colon) Character in the Title Generates Internal Server Error
- Closed
-
CONFSERVER-28817 PDF-Export crashes
- Closed
-
CONFSERVER-29671 Colon characters in page title causes Export to PDF to fail
- Closed