Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.10.8, 6.6.2, 6.7.2, 6.15.8
-
None
-
25
-
Severity 3 - Minor
-
2
-
Description
Summary
PDF export can't retrieve image link referred from Jira issue and external web URL
Steps to Reproduce
Scenario 1
- Upload attachment to a Jira issue
- Copy image address
- On confluence, create a page
- Insert Image using link copied from Jira image attached
- Publish page
- Export to PDF
Scenario 2
- Create confluence page
- Add image using Web URL for external image
- Publish page
- Export to PDF
Expected Results
PDF export successfully including image
Actual Results
Scenario 1
The below exception is thrown in confluence.log and PDF is not generated:
2018-03-05 10:58:32,581 ERROR [http-nio-8090-exec-7] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- url: /spaces/flyingpdf/pdfpageexport.action | traceId: 7d875de856d6047b | userName: admin | referer: http://192.168.100.102:8090/display/SAR/test+image+from+jiralink com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /atlassian-conf6/Home-directory/temp/pdfexport-20180305-050318-1058-7/SAR-testimagefromjiralink-050318-1058-8.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:104) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:54) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForPage(FlyingSaucerPdfExporterService.java:95) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.doExecute(ExportPageAsPdfAction.java:40) at com.atlassian.confluence.extra.flyingpdf.ExportPageAsPdfAction.execute(ExportPageAsPdfAction.java:29) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) Caused by: java.lang.RuntimeException: Failed to read image
Scenario 2
PDF export successfully without image
Workaround
Upload the image as an attachment to the page and export to PDF again
Notes
- Export to Word is successful and includes the remote image.
- To reproduce the issue, you can use the attached video.
Attachments
Issue Links
- is related to
-
CONFSERVER-55150 PDF is not generated when page include image link from Jira issue
- Gathering Impact