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.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to