QueryString is lost after resolveFile("http://...?queryString"). ----------------------------------------------------------------
Key: VFS-81 URL: http://issues.apache.org/jira/browse/VFS-81 Project: Commons VFS Issue Type: Bug Affects Versions: Nightly Builds Reporter: Dmitry Negoda QueryString is lost after resolveFile("http://...?queryString"). As the result, parameters after '?' are not passed to web server. The following patch fixes the problem (but not in a proper way I think): Index: src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java =================================================================== --- src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java (revision 446600) +++ src/java/org/apache/commons/vfs/provider/AbstractOriginatingFileProvider.java (working copy) @@ -78,7 +78,7 @@ } // Locate the file - return fs.resolveFile(name.getPath()); + return fs.resolveFile(name instanceof URLFileName ? ((URLFileName)name).getPathQuery() : name.getPath()); } /** -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]