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
… Found.
We now produce an HttpClientErrorException if ResourceMetadataHandlerMethodArgumentResolver fails for find metadata for a parsed repository key so that it automatically results in a 404 Not Found status code over a previous 500 Internal Server Error.
FixesGH-2480
… Found.
We now produce an HttpClientErrorException if ResourceMetadataHandlerMethodArgumentResolver fails for find metadata for a parsed repository key so that it automatically results in a 404 Not Found status code over a previous 500 Internal Server Error.
FixesGH-2480
… Found.
We now produce an HttpClientErrorException if ResourceMetadataHandlerMethodArgumentResolver fails for find metadata for a parsed repository key so that it automatically results in a 404 Not Found status code over a previous 500 Internal Server Error.
FixesGH-2480
Observed Behavior
Fetching the profile for an unknown repository called
foo
:yields a
500 Internal Server Error
with following response:The culprit seems to
be org.springframework.data.rest.webmvc.config.ResourceMetadataHandlerMethodArgumentResolver
throwing an
IllegalArgumentException
when it is not able to resolve the repository.Expected Behavior
A
404 Not Found
is returned likeSteps To Reproduce
I created a small reproducer with can be checked out in this repository, the readme there also contains a similar description as this issue.
curl -X GET --location "http://localhost:8080/profile/foo" -H "Accept: application/json"
500 Internal Server Error
Spring Initializr Setup
Similar/Related issues
Some issue I already found that sounds similar is #2014, but that conversation came to an halt.
The text was updated successfully, but these errors were encountered: