commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Jean-Prost (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VFS-503) Equals on URLFileName should use the complete URL
Date Tue, 26 Nov 2013 07:32:35 GMT

     [ https://issues.apache.org/jira/browse/VFS-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dominique Jean-Prost updated VFS-503:
-------------------------------------

    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)

  was:
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)
Workaround is to use the org.apache.commons.vfs2.cache.NullFilesCache as cache manager.


> Equals on URLFileName should use the complete URL
> -------------------------------------------------
>
>                 Key: VFS-503
>                 URL: https://issues.apache.org/jira/browse/VFS-503
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Dominique Jean-Prost
>            Priority: Critical
>         Attachments: patch.txt, test-vfs.zip
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message