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

File previews are failing on Space Home Page

XMLWordPrintable

      Issue Summary

      It is possible to preview files attached to a page by clicking on them.

      Certain file previews will fail if the page is set as Space Home Page.

      Steps to Reproduce

      Scenario 1 - affects both Legacy and new Cloud editors:

      1. Create a new page
      2. Add a sample PDF file as attachment
      3. Add the Attachments macro
      4. Publish the page
      5. Expand the attachment name and click Preview (Works)
      6. Go to Space Settings > Space Details
      7. Click Edit Space Details
      8. Change the Home Page and click Save
      9. Navigate back to the page
      10. Expand the attachment name and click Preview (Does not work)

      Scenario 2 - affects Legacy editor:

      1. Create and publish a new page
      2. Navigate to the Attachments menu
      3. Attach a sample PDF file
      4. Navigate back to the page and click Edit
      5. Add the sample PDF file by clicking the Insert Link button (clicking the Files tab, selecting the PDF file and then Insert)
      6. Publish the page
      7. Click the file to preview it (Works)
      8. Go to Space Settings > Space Details
      9. Click Edit Space Details
      10. Change the Home Page and click Save
      11. Navigate back to the page
      12. Click the file to preview it (Does not work)

      Expected Results

      File previews should work regardless of the page being set as Space Home Page or not.

      PS: the drag-and-drop action in the new Cloud editor will work and is not affected by this bug - here's the Storage Format for it:

      <p class="media-group"><ac:structured-macro ac:name="view-file" ac:schema-version="1" ac:macro-id="438669ef-1e4a-4aa0-82e8-939c7591bb43"><ac:parameter ac:name="name"><ri:attachment ri:filename="Sample.pdf" ri:version-at-save="3" /></ac:parameter></ac:structured-macro></p>
      

      Actual Results

      File previews will fail (in certain scenarios) if the page is set as Space Home Page.

      Workaround

      Change the Space Home Page to another page.

              awong3@atlassian.com Andrew W.
              tpallaro@atlassian.com Thiago P [Atlassian Support]
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: