Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-52839

Some Macros related to attachments in HTML Export are broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.1.1, 6.1.2, 6.2.3, 6.9.0, 6.9.1, 6.10.0, 7.0.2, 7.4.4

    Description

      When exporting a page or space in HTML, with Attachments/Multimedia Macro. The links to the attachments are not set properly.

      Steps to Reproduce

      1. Create a new space
      2. On the main page, or any other pages within the space, add the View FileAttachments or Multimedia Macro
      3. Go to Space tools > Content Tools > Export*
      4. Select HTML, then click Next
      5. Perform either Normal Export or Custom Export (both are affected)
      6. Click Download here.
      7. Unzip the file.
      8. Open index.html.
      9. Open a page that has attachments
      10. Try opening an attachment from the "Macro"

      Expected Results

      View File and Attachment Macro

      The attachment would open.

      Multimedia Macro

      Multimedia embedded in the page would be shown correctly.

      Actual Results

      The link to the attachment still points to the Confluence instance, and thus the page is not able to find it.

      Below I've appended both links, the first one is the link inside the Macros, the second one is the link to the attachment at the bottom of the page:

      file:///conf611/download/attachments/1671170/ES-100717-1029-2.pdf?api=v2
      
      file:///Users/admin/Downloads/HE/attachments/1671170/1671175.pdf
      

      Additional issue with the bug

      Alongside as the issue desribed above, there is an issue where the "Attachments" list (below where the macro is rendered) shows an extra attachments that have either been renamed or deleted and are no longer available. They all have dead links.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbomfim Kombi, the best car ever (Inactive)
              Votes:
              18 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: