[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1049) super's MultipartRequest.getParameterMap() is immutable

Petr Ferschmann (JIRA) jira-events at lists.jboss.org
Wed Mar 14 10:55:32 EDT 2007


super's MultipartRequest.getParameterMap() is immutable
-------------------------------------------------------

                 Key: JBSEAM-1049
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1049
             Project: JBoss Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.0.GA
         Environment: Jetty plugin in Maven
            Reporter: Petr Ferschmann
            Priority: Minor


I am using MultipartFilter directly (in web.xml as first plugin). It tries in MultipartRequest.getParameterMap() to modify  Map returned by super.getParameterMap(). It should make copy of it.

Callstack:
java.lang.UnsupportedOperationException
        at java.util.Collections$UnmodifiableMap.put(Collections.java:1286)
        at org.jboss.seam.web.MultipartRequest.getParameterMap(MultipartRequest.java:582)
        at cz.softeu.rewriter.RequestWrapper.<init>(RequestWrapper.java:68)
        at cz.softeu.rewriter.RewriterFilter.doFilter(RewriterFilter.java:170)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
        at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:74)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1045)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:358)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
        at org.mortbay.jetty.Server.handle(Server.java:303)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)


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

        



More information about the seam-issues mailing list