[
https://issues.apache.org/jira/browse/CAMEL-9091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CAMEL-9091.
-------------------------------------
Resolution: Won't Fix
Please watch CAMEL-9105 instead
> 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
>
> Attachments: cxfHeaderDateConversion.txt
>
>
> 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)