cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Latysh (JIRA)" <>
Subject [jira] [Created] (CXF-5036) ClientProxyImpl improperly encode parameters
Date Thu, 23 May 2013 16:08:20 GMT
Ivan Latysh created CXF-5036:

             Summary: ClientProxyImpl improperly encode parameters
                 Key: CXF-5036
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.4.3
            Reporter: Ivan Latysh
            Priority: Blocker

Spring app with configured client
<jaxrs:client id="client" 

Now call the method
{code}"AA"); // http://localhost/service/foo?param=AA"%AA%"); // http://localhost/service/foo?param=%AA%25

The second URL is incorrect, as it corrupt the parameter value. The cause of this problem
is {{org.apache.cxf.jaxrs.client.AbstractClient}} 
public Object invoke(Object o, Method m, Object[] params) throws Throwable {
URI uri = builder.buildFromEncoded(pathParams.toArray()).normalize();

Parameter values are not encoded, so {{}} should be called instead.

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