Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-589

Some tests fail if the base path contains a space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: