-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
The class "TemporarySpaceMonitor" deletes the temporary directory specified by the java.io.tmpdir property. Usually the directory cannot be deleted because it contains files, but if the directory happens to be empty, it is deleted.
This code is from TemporarySpaceMonitor.java:
try {
f = new File(System.getProperty("java.io.tmpdir"));
// ...
} catch (LinkageError e) {
// pre-mustang
return null;
} finally {
f.delete();
}
The call to f.delete() must be removed.
Code changed in hudson
User: : kohsuke
Path:
trunk/hudson/main/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java
trunk/www/changelog.html
http://jenkins-ci.org/commit/27539
Log:
[FIXED JENKINS-5642] Under some circumstances, Hudson can incorrectly delete the temporary directory itself.