[MGNLUI-4548] Zip upload - temp folder not cleared Created: 09/Aug/18 Updated: 12/Mar/21 Resolved: 16/Nov/18 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.7.2, 6.0 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Siegried Zach | Assignee: | Mikaël Geljić |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 3h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Date of First Response: | |||||||||||||
| Sprint: | Saigon 158 | ||||||||||||
| Story Points: | 1 | ||||||||||||
| Description |
|
We had the following UseCase, which leads to huge temp folder content, which is not cleared
|
| Comments |
| Comment by Mercedes Iruela [ 09/Aug/18 ] |
|
I would say that info.magnolia.ui.framework.command.ImportZipCommand.execute(Context) should use java.io.File.createTempFile(String, String, File) instead of java.io.File.createTempFile(String, String, File) as it is done in info.magnolia.publishing.packager.Packager or in info.magnolia.cms.filters.CosMultipartRequestFilter |
| Comment by Dai Ha [ 19/Nov/18 ] |
|
Verify with: Zip upload now moved to magnolia tmp directory. Aged files get deleted by cleanTempFiles schedule job. |