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

                 Key: MYFACES-3015
                 URL: https://issues.apache.org/jira/browse/MYFACES-3015
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.0.3
            Reporter: Nick Belaevski
            Assignee: Leonardo Uribe
             Fix For: 2.0.4-SNAPSHOT


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;
        }
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to