This filter triggers parameters parsing in a request and rejects the
request if some parameters were skipped during parameter parsing because
of parsing errors or request size limitations (such as
maxParameterCount
attribute in a
Connector).
This filter can be used to ensure that none parameter values submitted by
client are lost.
Note that parameter parsing may consume the body of an HTTP request, so
caution is needed if the servlet protected by this filter uses
request.getInputStream()
or request.getReader()
calls. In general the risk of breaking a web application by adding this
filter is not so high, because parameter parsing does check content type
of the request before consuming the request body.
Note, that for the POST requests to be parsed correctly, a
SetCharacterEncodingFilter
filter must be configured above
this one. See CharacterEncoding page in the FAQ for details.
The request is rejected with HTTP status code 400 (Bad Request).