Details
-
Suggestion
-
Resolution: Fixed
-
None
-
10
-
10
-
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
- relates to
-
CONFCLOUD-41622 Clean up attachment-*.tmp files in <confluence_install>/temp directory.
- Gathering Interest
- mentioned in
-
Page Loading...