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

Confluence tries to preview attachments even when preview plugin is disabled

    XMLWordPrintable

Details

    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

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

      When you disable the Confluence Previews plugin under the System add-ons section (Confluence administration -> manage add-ons) and search for any attachment that would be previewed, after clicking over the attachment name in the search list results, you are taken to the page that contains the attachment, however the attachment is not downloaded.

      Steps to replicate:

      1) Create a test page
      2) Insert some attachment to this page (can be an image or pdf)
      3) Go to the Confluence administration -> manage add ons -> show system add ons -> Disable Confluence Preview plugin
      4) Go to the dashboard and search for the attachment name
      5) Click over the attachment name

      Expected behavior

      The download window should be presented.

      Actual behavior

      You are presented to the page itself and nothing happens. The download doesn't start.

      Workaround

      1) In order to download the attachment you must click over the ellipsis (...) and select attachments.
      2) Click over the attachment name and you will be presented the download window.

      Additional investigation

      It seems the Attachment URL in the search list is pointing to the preview functionality. EG:

      http://Confluence_Base_URL/display/~admin/attachment+preview+test?preview=%2F6881293%2F6881294%2FTEST-testpdfexportimages-291215-1436-33.pdf.
      

      The URL should be this one ton trigger the download. EG:

      http://Confluence_Base_URL/download/attachments/6881293/TEST-testpdfexportimages-291215-1436-33.pdf?api=v2
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgadami Rodrigo Girardi Adami
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: