cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Salles (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2807) UriBuilder incorrectly encoding Query Parameters value
Date Tue, 11 May 2010 23:59:43 GMT

     [ https://issues.apache.org/jira/browse/CXF-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fred Salles updated CXF-2807:
-----------------------------


That's Jersey implementation... Sorry... Should be closed...


> UriBuilder incorrectly encoding Query Parameters value
> ------------------------------------------------------
>
>                 Key: CXF-2807
>                 URL: https://issues.apache.org/jira/browse/CXF-2807
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>         Environment: Mac OS, Tomcat
>            Reporter: Fred Salles
>
> Following code sample where a path and single parameter are encoded...
> Parameter name: "param"
> Parameter value: "foo/bar?aaa=bbb&ccc=ddd" (happens to be a url with query parameters)
> String test = UriBuilder.fromPath("https://dummy.com").
>                queryParam("param", "foo/bar?aaa=bbb&ccc=ddd").
>                build().toURL().toString();
> The encoded URL string returned is:
>  "https://dummy.com?param=foo/bar?aaa%3Dbbb&ccc%3Dddd"
> Character "&" (and "?") are not encoded in the parameter value string.
> The URL produced would be interpreted as follow:
> One first parameter, name="param", value = "ar?aaa%3Dbbb" followed by a second parameter,
name="ccc%3Dddd", without value.

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


Mime
View raw message