Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-614

HttpServletPortletResponseWrapper doesn't format date headers correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.4
    • 2.0.4, 2.1.0
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            edalquist Eric Dalquist
            edalquist Eric Dalquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: