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. 2014-05-28_111354.png
          2014-05-28_111354.png
          28 kB
        2. Capture.png
          Capture.png
          13 kB

            [CONFSERVER-29603] Attachments Macro Errors Rendering Attachment

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2874283 ] New: CONFSERVER Bug Workflow v4 [ 3004727 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2802543 ] New: JAC Bug Workflow v3 [ 2874283 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2718385 ] New: JAC Bug Workflow v2 [ 2802543 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380530 ] New: JAC Bug Workflow [ 2718385 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2276072 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2380530 ]
            Michael Andreacchio made changes -
            UIS Original: 0
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234641 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2276072 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197294 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2234641 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1938691 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197294 ]

              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              4acf2633d949 Davin Studer
              Affected customers:
              15 This affects my team
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: