[JIRA] Created: (HUDSON-5642) Hudson deletes the temporary directory

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5642) Hudson deletes the temporary directory

Hudson issues mailing list
Hudson deletes the temporary directory
--------------------------------------

                 Key: HUDSON-5642
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5642
             Project: Hudson
          Issue Type: Bug
    Affects Versions: current
            Reporter: mka2


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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5642) Hudson deletes the temporary directory

Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135983#action_135983 ]

scm_issue_link commented on HUDSON-5642:
----------------------------------------

Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/node_monitors/TemporarySpaceMonitor.java
 trunk/www/changelog.html
http://hudson-ci.org/commit/27539
Log:
[FIXED HUDSON-5642] Under some circumstances, Hudson can incorrectly delete the temporary directory itself.


> Hudson deletes the temporary directory
> --------------------------------------
>
>                 Key: HUDSON-5642
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5642
>             Project: Hudson
>          Issue Type: Bug
>    Affects Versions: current
>            Reporter: mka2
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-5642) Hudson deletes the temporary directory

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

scm_issue_link resolved HUDSON-5642.
------------------------------------

    Resolution: Fixed

> Hudson deletes the temporary directory
> --------------------------------------
>
>                 Key: HUDSON-5642
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5642
>             Project: Hudson
>          Issue Type: Bug
>    Affects Versions: current
>            Reporter: mka2
>
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]