You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sort=,DESC (not specified property of sort target)
etc ...
Current implementation of the PageableHandlerMethodArgumentResolver is occurred IllegalArgumentException, and http response status is returned 500(Internal Server Error) on the default settings of SpringMVC.
I think a best that http response status is returned 400(Bad Request).
I fixed this by gracefully falling back to the defaults (in case of invalid page number and size) or ignoring invalid values (for sort properties). I think this makes more sense rather than telling the client that it was wrong and it has to repeat the request, which it would then do using the defaults anyway
Kazuki Shimizu opened DATACMNS-408 and commented
[example of invalid value]
Current implementation of the PageableHandlerMethodArgumentResolver is occurred IllegalArgumentException, and http response status is returned 500(Internal Server Error) on the default settings of SpringMVC.
I think a best that http response status is returned 400(Bad Request).
Affects: 1.6.1
Reference URL: #48
Issue Links:
DATACMNS-379 SortHanderMethodArgumentResolver fails to resolve comma-only sort parameter
DATACMNS-753 SortHandlerMethodArgumentResolver fails to fall back to default if empty parameter is given
DATAREST-195 Limiting page size
Backported to: 1.6.3 (Babbage SR2)
The text was updated successfully, but these errors were encountered: