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

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

    XMLWordPrintable

Details

    • 10
    • 10
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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.
      Sometimes 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

      Temporary files should be deleted after completing the REST API.
      or
      A scheduled job deletes them.

      Actual Results

      Temporary 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

      Remove the files from <confluence_install>/temp manually, or implemente a cronjob in the operating system to cleanup the folder.

      Attachments

        Issue Links

          Activity

            People

              epyshnograev Efim (Inactive)
              tnagasaka Takuya Nagasaka
              Votes:
              44 Vote for this issue
              Watchers:
              33 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: