DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38653>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38653

           Summary: "parameterMap.locked"  message does not exist
           Product: Tomcat 5
           Version: 5.5.14
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


The Map returned from HttpServletRequest is in fact a specifical class, called
ParameterMap.

This map does not allow to modify any key or value of it, and in the case the
user tries to, it launches a IllegalStateException. 

The problem is that the key string used does not exist.

So to fix this bug you need to add the parameterMap.locked key/value in
properties files of the Servlet API.

Begin of the trace :
javax.servlet.ServletException: Cannot find message associated with key
'parameterMap.locked'

There is also a little-little bug in the Javadoc of ParameterMap class :

/**
 * Extended implementation of <strong>HashMap</strong> that includes a
 * <code>locked</code> property.  This class can be used to safely expose
 * Catalina internal parameter map objects to user classes without having
 * to clone them in order to avoid modifications.  When first created, a
 * <code>ParmaeterMap</code> instance is not locked.
 *
 * @author Craig R. McClanahan
 * @version $Revision: 302726 $ $Date: 2004-02-27 09:59:07 -0500 (Fri, 27 Feb
2004) $
 */

public final class ParameterMap extends HashMap {

The "<code>ParmaeterMap</code>" string should be replaced by
"<code>ParameterMap</code>"

Bye !

PS: This bug also occurs in Tomcat 3 and 4.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to