Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-325

Bad handling of hashs (#) in file names when walking a file tree using findFiles()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 2.0
    • 2.1
    • None
    • Windows Seven, JDK 1.6 64 bit

    Description

      Consider a local directory tree containing files with hashs in their name, such as test-hash-#.txt.
      When walking the tree using FileObject.findFiles(), the file is correctly found and returned, but it's URL is truncated to the #: test-hash-

      I think file.getURL().toString() should return test-hash-#.txt, otherwise caller have to rely on file.toString() to retrieve the URL of the file, which is probably bad.

      Attachments

        1. PATCHB-vfs-325.tar
          14 kB
          Larry Reeve
        2. PATCH-vfs-325.tar
          16 kB
          Larry Reeve

        Activity

          People

            Unassigned Unassigned
            nguillaumin Nicolas Guillaumin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: