Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3015

CLONE -ExternalContext: setRequest(...) method does not reset cached request maps (1.2 branch)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.9
    • Fix Version/s: 1.2.10
    • Component/s: General
    • Labels:
      None

      Description

      When org.apache.myfaces.context.servlet.ServletExternalContextImpl.setRequest(Object) is called, cached request maps (e.g. _requestHeaderMap) are not reset, so data from new request is not used.

      Here is what Mojarra does:

      public void setRequest(Object request) {
      if (request instanceof ServletRequest)

      { this.request = (ServletRequest) request; requestHeaderMap = null; requestHeaderValuesMap = null; requestHeaderValuesMap = null; requestMap = null; requestParameterMap = null; requestParameterValuesMap = null; }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu4242 Leonardo Uribe
                Reporter:
                nbelaevski Nick Belaevski
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: