Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3232

Bridge does not exclude the "Content-Type" and "Content-Length" properties in the HEADER_PHASE, RENDER_PHASE, and EVENT_PHASE

    Details

      Description

      Background

      Section 6.1.3.1 of the JSR 329/378 Spec states the following regarding the deviation requirements for `ExternalContext.getRequestHeaderMap()`:

      Within a `HEADER_REQUEST` or `EVENT_REQUEST`, the map must exclude the `Content-Type` and `Content-Length` properties (if they are present in the underlying request).

      Liferay Faces Bridge does not contain any logic for implementing this requirement.

      Note: This issue was found when LPS-74355 was introduced in Liferay Portal 7.1, which added the "Content-Length" header to `EventRequest.getPropertyNames()`.

      Steps to Reproduce:

      Expected Results

      Status: SUCCESS
      

      Actual Results

      Status Failed: The Map returned from getRequestHeaderMap contains a content-length header but shouldn't.
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: