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

Equals on URLFileName should use the complete URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 2.0
    • 2.1

    Description

      Hello,

      When using http url that uses query parameters, the method resolveFile doesn not work correctly.
      Problem is caused by the fact that equals on org.apache.commons.vfs2.provider.URLFileName does not use the query string.
      The consequence of this bug is that if you use 2 FileObject that use 2 differents URLS, that denote 2 different contents, you would use twice the same content when using copyForm for instance (see attached maven project)

      Attachments

        1. test-vfs.zip
          2 kB
          Dominique Jean-Prost
        2. patch.txt
          1 kB
          Dominique Jean-Prost

        Activity

          People

            b.eckenfels Bernd Eckenfels
            djeanprost Dominique Jean-Prost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: