Closed
Description
Alex opened SPR-10584 and commented
A sample method defined as follows:
@RequestMapping
(value = "/test")
public String testMethod(Integer n) {
if (n == null)
// do something
else
// do something else
}
stopped working in Spring 3.2.3 (works fine up to 3.2.2) because calling the url like:
http://hostname/context/test?n=
raises a MissingServletRequestParameterException while it should not (it should put a null in n) breaking completely the compatibility with existing apps.
Affects: 3.2.3
Issue Links:
- Revert change for SPR-10402 that allowed treating empty values as missing values [SPR-10578] #15207 Revert change for SPR-10402 that allowed treating empty values as missing values ("duplicates")
- Request @RequestParam not enforced with empty values [SPR-10402] #15035 Request
@RequestParam
not enforced with empty values
0 votes, 5 watchers