commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Negoda (JIRA)" <j...@apache.org>
Subject [jira] Created: (VFS-81) QueryString is lost after resolveFile("http://...?queryString").
Date Thu, 21 Sep 2006 08:29:22 GMT
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message