Hello, devs and folks!
I have an unusual form in an application that contains a lot of fields for submission. Though the request was not that long (Content-Length: 25114), it failed when I tried to send over 580 input fields. The error message I got was:
java.lang.IllegalStateException: More than the maximum number of request parameters (GET plus POST) for a single request () were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector.
So I went on and looked up maxParameterCount. It is a common Connector property for Tomcat, but it does not show up at the XML schema used by JBoss AS:
https://github.com/jbossas/jboss-as/blob/master/build/src/main/resources/docs/schema/jboss-as-web_1_1.xsd (lookup "web-connector-attlist").
Therefore, I cannot just add the connector attribute in standalone.xml like so:
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" maxParameterCount="1000" />
The parser complains with
Message: JBAS014788: Unexpected attribute 'maxParameterCount' encountered
Is there any way to set maxParameterCount on the Tomcat connector? I appreciate any help. Best regards,
I'm using "JBoss-EAP-6.0.0"(Evaluvation version) & facing same issue when I deployed my application in "standalone". It worked fine after modifying standalone.xml as you suggested.
My questions are:
The request params length can be huge in enterprise application. Why this restriction in request params then?
Is this same setting required for application which are deployed in "domain" too?
Is there any other workaround that I can change in my application only? (I don't want to ask customers to modify their JBoss settings. It is painful.)
I spent 4 hour to find how looks bla-bla.
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="5000"/>