Spring Controller is not able to detect empty string ("") as a string object in RequestBody [SPR-13861] #18434
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
AVINABA GHOSH HAJRA opened SPR-13861 and commented
Problem Statement :
Spring Controller is not able to detect empty string ("") as a string object in RequestBody.Till Spring 3.2 Spring Controller is able to detect empty string ("") as a string. But now we upgrade our spring version from 3.2 to 4.2.And in Spring 4.2 we are facing this issue.Our API gives HTTP status 400 as response instead of processing the empty string in RequestBody
Example :
Controller Method definition:
And JUNIT ::
is giving error ::
java.lang.AssertionError: Status expected:<200> but was:<400>
Affects: 4.2 GA
Issue Links:
The text was updated successfully, but these errors were encountered: