[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]