struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Hermanns (JIRA)" <j...@apache.org>
Subject [jira] Work started: (WW-1271) RequestMap not clearing entries when RequestMap.entries is called.
Date Mon, 01 May 2006 14:55:19 GMT
     [ 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


Mime
View raw message