Open
Description
James Howe opened DATACMNS-1784 and commented
The MVC binding treats empty request parameters inconsistently.
A single empty parameter will be ignored, but if there are multiple then they are passed as null
(or ""
for String
types, []
for arrays).
?foo=
— no binding created?foo=1
— one value:[1]
?foo=1&foo=
— two values:[1, null]
?foo=&foo=
— two values:[null, null]
This leads to inconsistent behaviour, including NPEs in QuerydslBinderCustomizer
and such
Affects: 2.3.2 (Neumann SR2)