Legacy Knowledge Base
Published Jun. 30, 2025

Certain values are lost or altered upon submitting a large form

Written By

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • For very long forms, some input values may be unexpectedly lost or modified after submission.
  • Some fields are submitted correctly, but from a certain point onwards, they start persisting with incorrect values (usually the default value, unless it's a calculated field).

Environment

  • Any Liferay DXP version
  • Tomcat

Resolution

  • The most probable cause is that you have reached the maxParameterCount limit (see doc) for your Connector:
    The maximum total number of request parameters (including uploaded files) obtained from the query string and,
    for POST requests, the request body if the content type is application/x-www-form-urlencoded or multipart/form-data.
    Request parameters beyond this limit will be ignored.
  • If you have activate Tomcat logging, you would observe messages like this:
    org.apache.tomcat.util.http.Parameters processParameters
    INFO: More than the maximum number of request parameters (GET plus POST) for a single request ([1,000]) were detected.
    Any parameters beyond this limit have been ignored.
    To change this limit, set the maxParameterCount attribute on the Connector.​​​
  • To fix this issue, you'll need to modify the server.xml file and increase the value of the maxParameterCount attribute of your Connector. For instance, if the current value is 1000, you can try setting it to 2000:
    <Connector port="8080" protocol="HTTP/1.1"
    redirectPort="8443"
    maxParameterCount="2000"
    />

Additional Information

  • Tomcat has changed this behavior starting from version 11 (see doc), so it will be easy to notice it:
    Requests that exceed this limit will be rejected.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base