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

Sergey Beryozkin resolved CXF-2408.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
                   2.2.4
         Assignee: Sergey Beryozkin

> JAX-RS ClientProxy does not properly test consume types when setting request 
> headers
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-2408
>                 URL: https://issues.apache.org/jira/browse/CXF-2408
>             Project: CXF
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 2.2.3
>            Reporter: Leonard Lu
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 2.2.4, 2.3
>
>         Attachments: patch.diff
>
>
> On line 247 of org.apache.cxf.jaxrs.client.ClientProxyImpl in method 
> setRequestHeaders() there is a test
>  ori.getConsumeTypes().get(0).equals(MediaType.WILDCARD) 
> which always fails since OperationResourceInfo.getConsumeTypes() returns a 
> list of MediaType, but MediaType.WILDCARD is a String.
> Much further along in client code, this results in the JSONProvider rather 
> than the JAXBElementProvider being used as the MessageWriter for content type 
> */*

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

Reply via email to