You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rainer Hermanns (JIRA)" <ji...@apache.org> on 2006/05/01 16:55:19 UTC

[jira] Work started: (WW-1271) RequestMap not clearing entries when RequestMap.entries is called.

     [ http://issues.apache.org/struts/browse/WW-1271?page=all ]
     
Work on WW-1271 started by Rainer Hermanns

> RequestMap not clearing entries when RequestMap.entries is called.
> ------------------------------------------------------------------
>
>          Key: WW-1271
>          URL: http://issues.apache.org/struts/browse/WW-1271
>      Project: Struts Action 2
>         Type: Bug

>   Components: Value Stack
>     Versions: WW 2.2.2
>  Environment: any
>     Reporter: Matt Crawford
>     Assignee: Rainer Hermanns
>     Priority: Trivial
>      Fix For: 2.0

>
> Documentation on RequestMap.clear() indicates that request attributes are cleared as well as entries in the map.
> This method needs to set entries=null like code in put and remove methods.
> Same issue appears to exist in the following:
> com.opensymphony.webwork.portlet.PortletRequestMap
>     /**
>      * Removes all attributes from the request as well as clears entries in this map.
>      */
>     public void clear() {
>         // ADD HERE
>        entries = null;
>         // END ADD HERE
>         Enumeration keys = request.getAttributeNames();
>         while (keys.hasMoreElements()) {
>             String key = (String) keys.nextElement();
>             request.removeAttribute(key);
>         }
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira