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

Equals on URLFileName should use the complete URL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:

      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. patch.txt
          1 kB
          Dominique Jean-Prost
        2. test-vfs.zip
          2 kB
          Dominique Jean-Prost

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: