Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
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.