You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Leonard Lu (JIRA)" <ji...@apache.org> on 2009/08/29 01:28:32 UTC

[jira] Updated: (CXF-2408) JAX-RS ClientProxy does not properly test consume types when setting request headers

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

Leonard Lu updated CXF-2408:
----------------------------

    Attachment: patch.diff

Diff file showing minor change

> 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
>            Priority: Minor
>         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.