MyFaces Core
  1. MyFaces Core
  2. MYFACES-3015

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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; }

      }

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development