[
https://issues.apache.org/jira/browse/CXF-2807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fred Salles closed CXF-2807.
----------------------------
Resolution: Invalid
Jersey's bug...
> 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.