MyFaces Core
  1. MyFaces Core
  2. MYFACES-3013

ExternalContext: setRequest(...) method does not reset cached request maps

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4
    • 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

          Leonardo Uribe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Leonardo Uribe made changes -
          Fix Version/s 2.0.4 [ 12316153 ]
          Fix Version/s 2.0.4-SNAPSHOT [ 12315977 ]
          Leonardo Uribe made changes -
          Link This issue is cloned as MYFACES-3015 [ MYFACES-3015 ]
          Leonardo Uribe made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Leonardo Uribe [ lu4242 ]
          Fix Version/s 2.0.4-SNAPSHOT [ 12315977 ]
          Resolution Fixed [ 1 ]
          Nick Belaevski created 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