Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-68094

Unable to Insert PDFs from Other Pages Using the PDF Macro

    XMLWordPrintable

    Details

      Description

      Issue Summary

      Users are unable to insert the PDF Macro referencing PDF Documents attached on other pages

      Environment

      Cloud - Tested with both New and Old Editors

      Steps to Reproduce

      1. Create a Page, Upload a PDF, and Publish the Page
      2. Create a New Page and insert the PDF Macro
      3. Input the Page Name from 1 and select the PDF File from the dropdown

      Expected Results

      PDF can be previewed and the Macro can be inserted

      Actual Results

      No Preview loads and macro cannot be inserted

      Error generated in Browser Console Logs when trying to insert the Macro:

      overrides.js:74 Uncaught TypeError: Cannot read property 'getCurrentTitle' of undefined
          at e.beforeParamsRetrieved (overrides.js:74)
          at Object.q [as getMacroDefinitionFromForm] (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:74)
          at Object.a.complete (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:135)
          at HTMLButtonElement.<anonymous> (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:116)
          at HTMLButtonElement._onclick (batch.js?externals=__local-default__&locale=en-US:792)
          at HTMLButtonElement.dispatch (jquery-min.js:1)
          at HTMLButtonElement.a (jquery-min.js:1)

      Notes

      The PDF Macro will insert correctly if the PDF referenced is Local to the Page.

      Inserting the PDF on the New Page could work, however, this is not ideal as it would require the User to maintain the PDF across multiple pages rather than in a single spot if using the PDF Macro

      Workaround

      • The Attachments macro could be used to reference the PDFs on the other Page, however, the User will need to download the file to view it - Bug with Previewing in the Attachments Macro - https://jira.atlassian.com/browse/CONFCLOUD-40609
        • Labels and Filename Pattern could be utilized to display only PDFs and specific ones if the reference page contains multiple different attachments.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            scranford Shawn C
            Votes:
            15 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated: