Space containing lucidchart diagrams may fail to be exported to PDF if the export takes more than 5 minutes

XMLWordPrintable

    • 14
    • Severity 3 - Minor
    • 0

      Issue Summary

      If a space has pages with Lucidchart diagrams, and this space is relatively large, taking more than 5 minutes to be exported to PDF, the export may fail.

      Steps to Reproduce

      1. Create a complex space with high quantity of pages
      2. Create a few pages with Lucidchart diagrams (in different positions on the page tree)
      3. Try to export the entire space to PDF

      Expected Results

      The space should be exported without problems

      Actual Results

      If the export takes more than 5 minutes, it may fail.

      Notes

      This happens because the token for the temporary lucid-chart image only lasts 5 minutes, causing a 403 http status if the conversion to PDF tries to access that image after that period:

      <Error>
      <Code>AccessDenied</Code>
      <Message>Request has expired</Message>
      <X-Amz-Expires>300</X-Amz-Expires>
      <Expires>2020-11-09T19:12:32Z</Expires>
      <ServerTime>2020-11-09T19:18:57Z</ServerTime>
      <RequestId>(...)</RequestId>
      <HostId>(...)</HostId>
      </Error>

      Internal errors:

      stack: java.io.IOException: Server returned HTTP response code: 403 for URL: https://atlassian-lucidchart-com.s3.amazonaws.com/(...)/(...)/page-0.png
      Failed to load URL: https://atlassian-lucidchart-com.s3.amazonaws.com/(...)/(...)/page-0.png?X-Amz-Security-Token=(LONG_TOKEN_STRING_&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20201109T190732Z&X-Amz-SignedHeaders=host&X-Amz-Expires=300&X-Amz-Credential=(...)%2F20201109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=(...)

      Workaround

      Either:

      • Select less pages to be exported, decreasing the export time

      OR

      • Don't select the pages containing Lucid-chart diagrams

      OR

      • Export the space to HTML, as the problem shouldn't affect it

            Assignee:
            Unassigned
            Reporter:
            Guilherme T (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: