You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/08/19 18:01:45 UTC
[jira] [Created] (CAMEL-9091) CXF Transport should convert response
Date headers to HTTP-friendly format
Sergey Beryozkin created CAMEL-9091:
---------------------------------------
Summary: CXF Transport should convert response Date headers to HTTP-friendly format
Key: CAMEL-9091
URL: https://issues.apache.org/jira/browse/CAMEL-9091
Project: Camel
Issue Type: Improvement
Components: camel-cxf
Reporter: Sergey Beryozkin
Priority: Minor
Fix For: 2.16.0, 2.15.3
CXF converts response Date headers into HTTP friendly format in its own transport code.
When CXF (jaxrs) endpoints are accessed in Camel routes via Camel Transport (example, from Camel Jetty or Camel Servlet) the Date headers are converted in Camel components using the regular toString converters.
Thus the clients do not receive the expected HTTP-friendly Date representations.
CxfHeaderHelper should convert such Dates by default. The option is to be introduced to avoid the toString() conversion inside Camel CXF and let other components to do it if really needed.
Note that the current CXF Transport code is wrongly typed to expect the CXF response headers be already converted to String.
The patch updates the conversion code to check Dates, disable the conversion to String all together if really needed, and adds more tests
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)