You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Roland Weber (JIRA)" <ji...@apache.org> on 2007/08/01 14:24:53 UTC
[jira] Closed: (HTTPCLIENT-678) There will throw
java.lang.IllegalArgumentException if url include character "[" or "]"
[ https://issues.apache.org/jira/browse/HTTPCLIENT-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roland Weber closed HTTPCLIENT-678.
-----------------------------------
Resolution: Invalid
[ and ] are unwise characters, see RFC 2396, section 2.4.3
http://www.ietf.org/rfc/rfc2396.txt
Escape them as %5B and %5D, respectively.
cheers,
Roland
> There will throw java.lang.IllegalArgumentException if url include character "[" or "]"
> ---------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-678
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-678
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 3.1 RC1
> Environment: windows.
> jdk 1.5.12
> tomcat5.5
> Reporter: maguofeng
>
> There will throw java.lang.IllegalArgumentException if url include character "[" or "]".
> And the messge [escaped absolute path not valid] is displayed.
> please refer to below messge in detail
> Exception in thread "main" java.lang.IllegalArgumentException: Invalid uri 'http://localhost:8080/image/ATT909627_2007-07-23-21-37-54-332[1].gif': escaped absolute path not valid
> at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222)
> at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89)
> at deploybatch.PageGet.getGetResponseWithHttpClientImage(PageGet.java:107)
> at deploybatch.PageGet.main(PageGet.java:237)
--
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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org