cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Klevenz (JIRA)" <>
Subject [jira] [Created] (CXF-4861) Encoding issue jax-rs - UriBuilder
Date Thu, 28 Feb 2013 14:31:12 GMT
Stephan Klevenz created CXF-4861:

             Summary: Encoding issue jax-rs - UriBuilder
                 Key: CXF-4861
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.7.0, 2.6
            Reporter: Stephan Klevenz

Use Case: OData ( / odata4j (

Building an URI based on OData query parameter:

URI called by http client: .../Employees?$filter=startswith(CarrierId,'A')

URI build on server:

String nextHref = uriInfo.getRequestUriBuilder().replaceQueryParam("$skiptoken", "{dummySkipToken}").build().toString();

Result is:


The value of query parameter $filter is encoded twice. The issue is in the embrasing {} of
the value of the $skiptoken query parameter.

CXF does a partial encoding of the first query parameter which succeeds and then gets a UriSyntaxException
for the 2nd query parameter. After that it falls back and encodes the whole URI while the
1st query option is already encoded.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message