This is an corner case, discovered while performing some property-based testing for my API.
Affects spring-web:6.0.12
Here is a minimal code sample that reproduces the issue
https://gist.github.com/ltsallas/9903343b6b7a90013cdd155bfcd670ce
I think the the last two tests in the DemoControllerTest should return a 400(MethodArgumentTypeMismatchException) and not a 500(MissingPathVariableException) response.