Attachments Macro Errors Rendering Attachment

XMLWordPrintable

    • 4
    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      If you use the attachments macro and specify a page to use in the macro properties, when the macro is rendered out the attachment preview fails. It seems it is looking to the local page for the attachment to render it rather than the page the attachment is really on.

      Steps to reproduce:

      1. In a space, create a page and insert an attachment.
      2. Create another page, and insert the attachment macro. Configure it to list the attachment from the page in step 1.
      3. Save the page and view it. The attachment from the other page is linked, and the link is valid. But when you expand to see the details of the attached file, there's no preview, and the following error is thrown: "Error rendering macro 'viewfile' : The viewfile macro is unable to locate the attachment "xxxx.xxx" on this page"

      The viewfile macro is looking for the attachment on the page that references the attachment.

        1. Capture.png
          13 kB
          Davin Studer
        2. 2014-05-28_111354.png
          28 kB
          Yury Dzik

            Assignee:
            Denise Unterwurzacher [Atlassian] (Inactive)
            Reporter:
            Davin Studer
            Votes:
            15 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: