You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Aswin Avinippillil Dhanan (Jira)" <ji...@apache.org> on 2026/03/16 14:14:00 UTC
[jira] [Created] (SLING-13138) Add configurable fail-fast behavior for request parameter limit handling
Aswin Avinippillil Dhanan created SLING-13138:
-------------------------------------------------
Summary: Add configurable fail-fast behavior for request parameter limit handling
Key: SLING-13138
URL: https://issues.apache.org/jira/browse/SLING-13138
Project: Sling
Issue Type: Improvement
Components: Engine
Reporter: Aswin Avinippillil Dhanan
Improve request parameter limit handling in ParameterMap.
This change updates parameter limit enforcement in two ways:
- The boundary check is changed from `size() == maxParameters` to
`size() >= maxParameters` for more defensive handling at the configured limit.
- An optional configuration is added to control behavior when the parameter
limit is exceeded.
With the default configuration, existing behavior is preserved and additional
parameters are ignored with a warning.
When the new configuration is enabled, an IllegalStateException is thrown
immediately when the configured parameter limit is exceeded.
Unit tests are included for both modes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)