hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Guillemot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-727) Misbehaviour of URI.getEscapedPath() with uri containing double slash like //js/includes/foo.js
Date Mon, 07 Jan 2008 09:50:34 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556528#action_12556528
] 

Marc Guillemot commented on HTTPCLIENT-727:
-------------------------------------------

Thanks for the explanations. The HostConfiguration was misleading. I'll look if adding an
additional // at the beginning of the path allows to reproduce browser's behaviour. Perhaps
can I implement it in HtmlUnit for the next release.

Having to report bugs to Sun will not necessarily be an improvement ;-)

> Misbehaviour of URI.getEscapedPath() with uri containing double slash like //js/includes/foo.js
> -----------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-727
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-727
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 3.1 Final
>            Reporter: Marc Guillemot
>
> public void testURI_getEscapedPath() throws Exception {
> 	URI uri = new URI("//js/includes/foo.js", false);
> 	assertEquals("//js/includes/foo.js", uri.toString()); // passes
> 	assertEquals("//js/includes/foo.js", uri.getEscapedPath()); // fails
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message