You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Nicolas Lenoire <ni...@semarchy.com> on 2021/06/14 16:12:40 UTC
JAXRS UriBuilder + query params encoding
Hello,
I’m using CXF 3.4.3 and I’m facing an issue with query param encoding.
The JAXRS specification seems unclear regarding the method UriBuilder.queryParam(String name, Object… values) and how values are URL encoded by the method, or if the caller need to pre url encode the values.
Anyhow, invoking UriBuilder.fromUri("my/path").queryParam("p", "%250% »).toTemplate() gives "my/path?p=%250%25 » which doesn’t sound ok. IMHO should ether be my/path?p=%250%, or my/path?p=%25250%25
Thanks in advance.
--
Nicolas Lenoire
Semarchy - Sr. Software Architect
nicolas.lenoire@semarchy.com