Download all attachments fails with HTTP 404 when temp folder in Confluence Home is a symlink

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.1
    • Component/s: Content - Attachments
    • None
    • 4
    • Severity 3 - Minor

      Issue Summary

      Download all attachments fails with a HTTP 404 Page Not Found with the URL showing the Confluence Home directory.

      Environment

      Confluence running on Linux with the <confluence-home>/temp a symbolic link.

      Steps to Reproduce

      1. Install a fresh Confluence on Linux
      2. Map the <confluence-home>/temp as a sym link folder
        rm -rf /var/atlassian/application-data/confluence/temp
        ln -s /tmp /var/atlassian/application-data/confluence/temp
        
      3. Start Confluence
      4. Create a page with some attachments
      5. Navigate to "..." > Attachments
      6. Click on the Download All attachments link

      Expected Results

      • All the attachments on the page should be downloaded as a single Zip file

      Actual Results

      • Confluence returns a HTTP 404 Page Not found error
      • The URL also shows the actual Home Directory location

      Diagnosis

      Confirm whether the <confluence-home>/temp is a symbolic link.

      $ pwd
      /var/atlassian/application-data/confluence
      
      $ ls -l | grep -i temp
      drwxr-x---     2 user  user     64 14 Oct 17:22 plugins-temp
      lrwxr-xr-x     1 user  user     17 20 Oct 17:31 temp -> /tmp      <---- This cannot be a symbolic link!
      drwxr-x---  1030 user  user  32960 20 Oct 17:36 webresource-temp
      

      Workaround

      • Remove the <confluence-home>/temp symbolic link and make sure that it is an actual directory

            Assignee:
            Unassigned
            Reporter:
            Eric L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: