MockHttpServletRequest must not throw an exception on getParameter(null) [SPR-10192] #14825
Labels
in: test
Issues in the test module
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Oliver Drotbohm opened SPR-10192 and commented
The JavaDoc of
ServletRequest
does not specify the parameter name to be a non-null
value. So we have to deal with clients calling the method with anull
value leniently and simply returnnull
.Servlet containers like Jetty are not as strict and thus one might stumble over this issue only when using e.g. Spring MVC testing framework.
Issue Links:
Referenced from: commits c1a4f5c, 01f3102
Backported to: 3.1.4
The text was updated successfully, but these errors were encountered: