You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "maguofeng (JIRA)" <ji...@apache.org> on 2007/08/01 11:17:53 UTC

[jira] Created: (HTTPCLIENT-678) There will throw java.lang.IllegalArgumentException if url include character "[" or "]"

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
tomcat
            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


[jira] Updated: (HTTPCLIENT-678) There will throw java.lang.IllegalArgumentException if url include character "[" or "]"

Posted by "maguofeng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maguofeng updated HTTPCLIENT-678:
---------------------------------

    Environment: 
windows.
jdk 1.5.12
tomcat5.5

  was:
windows.
jdk 1.5.12
tomcat


> 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


[jira] Closed: (HTTPCLIENT-678) There will throw java.lang.IllegalArgumentException if url include character "[" or "]"

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