commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (VFS-81) QueryString is lost after resolveFile("http://...?queryString").
Date Mon, 02 Oct 2006 19:48:20 GMT
     [ http://issues.apache.org/jira/browse/VFS-81?page=all ]

Mario Ivankovits resolved VFS-81.
---------------------------------

    Resolution: Fixed

Should be fixed now.
I slightly changed your patch.

Please give it a try.

Thanks for reporting it!


> 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