[MGNLPCK-47] packager uses inappropriate default location for install temp files on linux Created: 11/May/12 Updated: 10/Apr/13 Resolved: 10/Apr/13 |
|
| Status: | Closed |
| Project: | Packager (closed) |
| Component/s: | None |
| Affects Version/s: | 4.0.5 |
| Fix Version/s: | 4.0.8 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mike Wilson | Assignee: | Roman Kovařík |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, Magnolia Enterprise Edition 4.4.5, JBoss 5.1, Java 6 |
||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
When installing a package on Linux, by default the /tmp directory is used for temp files. Packages may be quite large and the created temp files are of similar size as these. Linux systems often use RAM-backed /tmp filesystems of only a few gigabytes, and the recommendation in Linux is to use /tmp only for small temporary files and to use /var/tmp for large ones. With default settings we have had occasions when /tmp has run out of space for a single install operation (also due to two files being created during install, see It is possible to redirect the /tmp folder in Java by assigning java.io.tmpdir, but this requires explicitly doing this. A better solution would be if Magnolia comes with a better default, and allow this to be overridden with magnolia.properties or similar. |
| Comments |
| Comment by Roman Kovařík [ 10/Apr/13 ] |
|
FileUtilsTest.testCreateTempFileDoesntHaveAccessToDefaultMagnolia fails on Mac because of missing trailing slash in the path returned from:
assertEquals(openwfe.org.FileUtils.getTempDir(), file.getParentFile().getPath());
|