cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1924) Infinite loop in FileUtils.getDefaultTempDir() when "java.io.tmpdir" directory does not exist
Date Fri, 23 Jan 2009 17:27:59 GMT

     [ https://issues.apache.org/jira/browse/CXF-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp updated CXF-1924:
-----------------------------

    Fix Version/s: 2.1.4
                   2.0.10

> Infinite loop in FileUtils.getDefaultTempDir() when "java.io.tmpdir" directory does not
exist
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-1924
>                 URL: https://issues.apache.org/jira/browse/CXF-1924
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.4, 2.2
>            Reporter: Jarek Gawor
>            Assignee: Sean O'Callaghan
>             Fix For: 2.0.10, 2.1.4
>
>
> FileUtils.getDefaultTempDir() can go into a infinite loop when the "java.io.tmpdir" system
property is set to an non-existent directory. Here's the code that causes the problem:
>             s = System.getProperty("java.io.tmpdir");
>             File f = new File(s, "cxf-tmp-" + x);
>             while (!f.mkdir()) {
>                 x = (int)(Math.random() * 1000000);
>                 f = new File(s, "cxf-tmp-" + x);
>             }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message