commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject RE: [jira] [Created] (VFS-426) HTTP URL query string not part of cache key
Date Fri, 29 Jun 2012 15:11:04 GMT
Hi Daniel ,

Can you bottle that up in a unit test or a sample class?

Thank you,

-----Original Message-----
From: Daniel Bergholm (JIRA) [] 
Sent: Friday, June 29, 2012 8:49 AM
Subject: [jira] [Created] (VFS-426) HTTP URL query string not part of cache key

Daniel Bergholm created VFS-426:

             Summary: HTTP URL query string not part of cache key
                 Key: VFS-426
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Daniel Bergholm

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 {code:java}createURI(){code} method of URLFileName does include it, but when constructing
the key the {code:java}createURI(boolean useAbsolutePath, boolean usePassword){code} method
of AbstractFileName is used. This method only includes the path. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:

View raw message