URL embedded images in a Confluence page are not included in a PDF export

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 6.4.1, 6.7.0, 6.15.4
    • Component/s: Page - Export / Import
    • None
    • 5
    • Severity 3 - Minor

      Issue Summary

      URL embedded images in a Confluence page are not included in a PDF export.

      Environment

      Confluence Server 6.15.4

      Steps to Reproduce

      1. Embed random images using the image's URL into a Confluence page

        Sites used for testing:

      2. Publish the page
      3. Export page to pdf
      4. Open exported pdf file

      Expected Results

      All images should be exported and included in the exported pdf file.

      Actual Results

      Only certain images are actually exported.

      The below errors are thrown in the atlassian-confluence.log file:

      2019-05-28 10:27:57,171 WARN [http-nio-26154-exec-8] [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource https://cdn.stocksnap.io/img-thumbs/960w/B2MQOD11GA.jpg during Confluence export
       -- url: /c6154/spaces/flyingpdf/pdfpageexport.action | page: 3145729 | traceId: 7395381a90a19bd1 | userName: admin | referer: http://localhost:26154/c6154/display/EM/Export+embedded+links+test | action: pdfpageexport
      2019-05-28 10:27:57,283 WARN [http-nio-26154-exec-8] [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource https://cdn.stocksnap.io/img-thumbs/960w/B2MQOD11GA.jpg during Confluence export
       -- url: /c6154/spaces/flyingpdf/pdfpageexport.action | page: 3145729 | traceId: 7395381a90a19bd1 | userName: admin | referer: http://localhost:26154/c6154/display/EM/Export+embedded+links+test | action: pdfpageexport
      2019-05-28 10:27:57,491 WARN [http-nio-26154-exec-8] [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource https://images.pexels.com/photos/2313397/pexels-photo-2313397.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260 during Confluence export
       -- url: /c6154/spaces/flyingpdf/pdfpageexport.action | page: 3145729 | traceId: 7395381a90a19bd1 | userName: admin | referer: http://localhost:26154/c6154/display/EM/Export+embedded+links+test | action: pdfpageexport
      2019-05-28 10:27:57,604 WARN [http-nio-26154-exec-8] [confluence.extra.flyingpdf.ConfluenceExportUserAgent] getImageResource Could not retrieve image resource https://images.pexels.com/photos/2313397/pexels-photo-2313397.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260 during Confluence export
       -- url: /c6154/spaces/flyingpdf/pdfpageexport.action | page: 3145729 | traceId: 7395381a90a19bd1 | userName: admin | referer: http://localhost:26154/c6154/display/EM/Export+embedded+links+test | action: pdfpageexport
      

      Notes

      • Increasing the logging for the "com.atlassian.confluence.extra.flyingpdf" class does not provide any further information.
      • Using a tool such as 'wget', the images are downloaded without any issues.
      • Exporting the page to a Word documents works as expected and includes all images.

      Workaround

      Advise the client to upload the image to Confluence prior to embedding it in the target page.

            Assignee:
            Unassigned
            Reporter:
            Ferdinand van Zyl (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: