You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2009/08/29 20:35:32 UTC
[jira] Resolved: (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 ]
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.