[ 
https://issues.apache.org/jira/browse/CXF-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834231#action_12834231
 ] 

Andreas Sahlbach commented on CXF-2677:
---------------------------------------

Confirmed. Works for me now. 

Thanks for fixing bugs before I reported them. :-)

> UriInfoImpl.getRequestUri() fails on URLs that require escaping
> ---------------------------------------------------------------
>
>                 Key: CXF-2677
>                 URL: https://issues.apache.org/jira/browse/CXF-2677
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.5, 2.2.6
>            Reporter: Andreas Sahlbach
>
> current implementation from UriInfoImpl:
> {code}
>     public URI getRequestUri() {
>         String path = getAbsolutePathAsString();
>         String queries = (String)message.get(Message.QUERY_STRING);
>         if (queries != null) {
>             path += "?" + queries;
>         }
>         return URI.create(path);
>     }
> {code}
> This fails for URIs that have characters that have to be escaped as of 
> rfc2396. 
> Examples: 
> http://localhost:13080/services/rest/crypto/hash;algorithm=S{A/text/foo or 
> http://localhost:13080/services/rest/crypto/hash;algorithm=S^A/text/foo
> fail with Exception during getRequestUri() due to { or ^ as part of the uri

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

Reply via email to