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 23:04:00 UTC

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

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

Sebb resolved IO-589.
---------------------
    Resolution: Fixed

Repository: commons-io
Updated Branches:
  refs/heads/master 1f925d7ad -> 16c983693


IO-589 Some tests fail if the base path contains a space

Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/16c98369
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/16c98369
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/16c98369


> 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
>            Priority: Major
>
> 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)