You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2018/10/16 22:59:00 UTC

[jira] [Created] (IO-589) Some tests fail if the base path contains a space

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)