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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 2.0
    • Fix Version/s: 2.1
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: