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

HTTP URL query string not part of cache key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None

    Description

      I am using commons-vfs amongst other things to download http files. When resolving different URLs where only the query string differs, the default cache returns the wrong URL sometimes (returning a previously accessed URL where only the query string differs).

      I think this is because the key property of URLFileName does not include the query string. The

      createURI()

      method of URLFileName does include it, but when constructing the key the

      createURI(boolean useAbsolutePath, boolean usePassword)

      method of AbstractFileName is used. This method only includes the path.

      Attachments

        1. vfs-426.diff
          2 kB
          Gary D. Gregory

        Activity

          People

            Unassigned Unassigned
            daniel.bergholm@keybroker.com Daniel Bergholm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: