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

Clean up attachment-*.tmp files in <confluence_install>/temp directory.

    XMLWordPrintable

Details

    • 5
    • 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.

      Summary

      Many attachment-*.tmp files remain in <confluence_install>/temp after uploading attachment files to a Page with REST API.

      Thousands of attachment-*.tmp files remain in <confluence_install>/temp directory.
      Somethimes amount of total file sizes become several GB.
      those files are not deleted by scheduled job, since the job deletes files in <confluence_home>/temp.

      Environment

      • Confluence 5.9.9

      Steps to Reproduce

      1. curl -v -S -u admin:password -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" -F "comment=this is my file" "http://localhost:8090/rest/api/content/<page id>/child/attachment" | python -mjson.tool
      2. check <confluence_install>/temp directory.

      Expected Results

      Templory files should be deleted after completing the REST API.
      or
      A scheduled jos deletes them.

      Actual Results

      Templory files remain after competing REST API program.
      And when Confluence is stopped, those tmp files are deleted.
      This means those files maybe remain in temp directory for long term.

      Workaround

      restart conflunece, then those attachment-*.tmp files are deleted.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tnagasaka Takuya Nagasaka
              Votes:
              17 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: