[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mina-dev
Subject:    [jira] Commented: (ASYNCWEB-34) Exception thrown when parsing URIs
From:       "Alberto Gimeno Brieba (JIRA)" <jira () apache ! org>
Date:       2009-08-25 12:31:59
Message-ID: 1549157825.1251203519766.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/ASYNCWEB-34?page=com.atlassian.jira.plugin \
.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747376#action_12747376 ] 

Alberto Gimeno Brieba commented on ASYNCWEB-34:
-----------------------------------------------

Thanks for the quick fix!

> Exception thrown when parsing URIs with "|" character
> -----------------------------------------------------
> 
> Key: ASYNCWEB-34
> URL: https://issues.apache.org/jira/browse/ASYNCWEB-34
> Project: Asyncweb
> Issue Type: Bug
> Components: Common
> Reporter: Alberto Gimeno Brieba
> 
> I think that according to RFC1738  - Uniform Resource Locators (URL), the character \
> "|" should always be escaped in the HTTP request line. However current browser \
> doesn't escape it (google chart API uses this character extensively) and asyncweb \
> throws an exception when it tries to parse an HTTP request with an URI with that \
> character. The class HttpRequestLineDecodingState could use java.net.URL instead of \
> java.net.URI for parsing the HTTP request to avoid this problem.  new \
> URL("http://example.com?foo=|bar"); // it works new \
> URI("http://example.com?foo=|bar"); // it throws a java.net.URISyntaxException

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic