camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9091) CXF Transport should convert response Date headers to HTTP-friendly format
Date Wed, 19 Aug 2015 16:01:45 GMT
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)

Mime
View raw message