• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major 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.

          [JENKINS-5642] Hudson deletes the temporary directory

          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.

          SCM/JIRA link daemon added a comment - 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.

            Unassigned Unassigned
            mka2 mka2
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: