[ 
https://issues.apache.org/jira/browse/SLING-13138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110781#comment-18110781
 ] 

Joerg Hoh commented on SLING-13138:
-----------------------------------

[~aswindhanan] thanks for this improvement, it's merged now.

> 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
>            Assignee: Joerg Hoh
>            Priority: Minor
>             Fix For: Engine 3.0.4
>
>
> 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.
> Pull request:
> https://github.com/apache/sling-org-apache-sling-engine/pull/74



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to