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
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.