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

Some tests fail if the base path contains a space

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: