commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-589) Some tests fail if the base path contains a space
Date Tue, 16 Oct 2018 22:59:00 GMT
Sebb created IO-589:
-----------------------

             Summary: Some tests fail if the base path contains a space
                 Key: IO-589
                 URL: https://issues.apache.org/jira/browse/IO-589
             Project: Commons IO
          Issue Type: Bug
            Reporter: Sebb


Some of the IOUtils and FileUtils test cases fail when the base path contains a space.

This is because the code uses URL#getFile() or URL#getPath() to convert a file: URL.
However those methods don't unencode spaces and other characters that are special to URLs.
The solution is to use URL#toURI() and pass the URI to the File() constructor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message