Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.0.0-milestone2
-
None
-
None
-
ServiceMix 5.4.0
-
Unknown
Description
In CXF 3.x (since CXF-5007), the date format has changed in the "Last-Modified" HTTP header generated by JAX-RS.
In class org.apache.cxf.jaxrs.impl.ResponseBuilderImpl, the method "lastModified()" does not call the "toHttpDate" anymore.
The format is now the default format used when calling "toString" on the date object.
This format is not one of the 3 allowed by the HTTP specification (RFC2616, section 3.3.1).
For instance, an HTTPClient will reject this date format :
====================
Wrong date format for date Wed Aug 12 08:18:54 CEST 2015
org.apache.commons.httpclient.util.DateParseException: Unable to parse the date Wed Aug 12 08:18:54 CEST 2015
at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:170)
at org.apache.commons.httpclient.util.DateUtil.parseDate(DateUtil.java:94)
====================
Can you please restore the date conversion ?
Thanks in advance.
Attachments
Issue Links
- depends upon
-
CAMEL-9105 Camel DefaultHttpBinding should convert response Date headers to HTTP-friendly format
- Resolved
- relates to
-
CAMEL-9091 CXF Transport should convert response Date headers to HTTP-friendly format
- Resolved