You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Dmitry Negoda (JIRA)" <ji...@apache.org> on 2006/09/21 10:29:22 UTC

[jira] Created: (VFS-81) QueryString is lost after resolveFile("http://...?queryString").

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


[jira] Resolved: (VFS-81) QueryString is lost after resolveFile("http://...?queryString").

Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
     [ 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