https://bz.apache.org/bugzilla/show_bug.cgi?id=59761

            Bug ID: 59761
           Summary: "No modifications are allowed to a locked
                    ParameterMap" - Tomcat 8.0.32 is not compatible with
                    older versions
           Product: Tomcat 8
           Version: 8.0.36
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: ja...@pakamera.com.pl

Hi,

I upgraded Tomcat from 8.0.22 to 8.0.36 and all my website doesn't work anymore
because of one simple problem.

I have this code in JSP:

<%
HashMap<String,String> params =
(HashMap)((HashMap)request.getParameterMap()).clone();
pageContext.setAttribute("params",params);
params.put("data","xx");
%>

It used to work before, for many many year.
Now, suddenly last line throws an exception:

java.lang.IllegalStateException: No modifications are allowed to a locked
ParameterMap


I understand why parameter map is locked, but that's why I made a clone.
The thing is, with Tomcat 8.0.22 and before this exception was not fired.

I think "clone" should not copy "locked" class attribute or there should be an
option in configuration to keep Tomcat compatible with previous version, on
request.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to