portals-pluto-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Dalquist (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PLUTO-614) HttpServletPortletResponseWrapper doesn't format date headers correctly
Date Thu, 19 Apr 2012 16:02:41 GMT
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


View raw message