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

          Leonardo Uribe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Leonardo Uribe made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Leonardo Uribe made changes -
          Fix Version/s 1.2.10 [ 12315978 ]
          Fix Version/s 2.0.4-SNAPSHOT [ 12315977 ]
          Affects Version/s 1.2.9 [ 12315113 ]
          Affects Version/s 2.0.3 [ 12315976 ]
          Leonardo Uribe made changes -
          Field Original Value New Value
          Link This issue is a clone of MYFACES-3013 [ MYFACES-3013 ]
          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