SLING-13138 Add configurable fail-fast parameter limit handling#74
SLING-13138 Add configurable fail-fast parameter limit handling#74aswinad wants to merge 3 commits into
Conversation
joerghoh
left a comment
There was a problem hiding this comment.
LGTM
although I have never seen that warning being written (highly doubt that as the default size is 10k), so I question a bit the value of it. But fixing TODOs is definitely good.
|
Thanks! The main goal here was addressing the TODO and making the behavior configurable. |
|
|
Hi @joerghoh — just following up on this PR. Please let me know if any changes are needed from my side. If not, I’d appreciate your help merging it since I don’t have merge permissions. Thanks! |
|



SLING-13138
Improve request parameter limit handling in ParameterMap.
This change updates the parameter limit check from
size() == maxParametersto
size() >= maxParametersfor more defensive boundary handling.It also introduces an optional configuration to control behavior when the
configured parameter limit is exceeded:
The default behavior remains unchanged for backward compatibility.
Unit tests are included for both modes.