[
https://issues.apache.org/jira/browse/PLUTO-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257592#comment-13257592 ]
Eric Dalquist commented on PLUTO-614:
-------------------------------------
private static final TimeZone GMT_ZONE = TimeZone.getTimeZone("GMT");
private static final FastDateFormat HTTP_HEADER_DATE_FORMAT = FastDateFormat.getInstance("EEE, dd MMM yyyy HH:mm:ss Z", GMT_ZONE, Locale.US);
> HttpServletPortletResponseWrapper doesn't format date headers correctly
> -----------------------------------------------------------------------
>
> Key: PLUTO-614
> URL:
https://issues.apache.org/jira/browse/PLUTO-614> Project: Pluto
> Issue Type: Bug
> Affects Versions: 2.0.4
> Reporter: Eric Dalquist
> Assignee: Eric Dalquist
> Fix For: 2.0.4, 2.1.0
>
>
> HttpServletPortletResponseWrapper addDateHeader and setDateHeader simply convert the long value to a String. This is incorrect, a DateHeader in a HttpServletResponse is a time-since-epoch in milliseconds value that must be formatted as: "EEE, dd MMM yyyy HH:mm:ss Z"
> Since MimeResponse.setProperty only takes Strings for values the HttpServletPortletResponseWrapper should do the long to date string formatting before calling MimeResponse.setProperty or addProperty
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspaFor more information on JIRA, see:
http://www.atlassian.com/software/jira