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

MimeResponseImpl.getContentType() should check PortletMimeResponseContext.getContentType()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0-M3
    • 2.1.0, 3.0.0
    • None
    • None

    Description

      getContentType() uses a class member variable to track if a content type has been set. The problem is the MimeResponseImpl doesn't monitor the set/add property calls which according to the spec can also set HTTP headers including the Content-Type header.

      So if I a client sets the Content-Type via a setProperty call and then calls getPortletOutputStream or getWriter the MimeResponseImpl will assume no content type has been set and set the first value from getResponseContentTypes() as the content type, overwriting the previously requested value. If MimeResponseImpl checked the PortletMimeResponseContext.getContentType it could allow for portals that handle all HTTP headers.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: