myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (MYFACES-3015) CLONE -ExternalContext: setRequest(...) method does not reset cached request maps (1.2 branch)
Date Tue, 11 Jan 2011 19:34:48 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-3015.
-------------------------------------

    Resolution: Fixed

> 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: 1.2.9
>            Reporter: Nick Belaevski
>            Assignee: Leonardo Uribe
>             Fix For: 1.2.10
>
>
> 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.


Mime
View raw message