-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update CrnkErrorController to be compatible with Spring Boot >= 2.3.X #821
Update CrnkErrorController to be compatible with Spring Boot >= 2.3.X #821
Conversation
if server.error.include-message=always.is always reqired,.maybe it should be added to the spring configuration to enable it by default? |
I only set the value to fix a broken test. I think crnk should be agnostic to this setting. The main thing is formatting the error per the JSON:API specification. The end user can then decide to include the message, or not, depending on their needs using the spring property. Crnk need not take a stance either way which I would think is best. |
In which release of Crnk can we expect this to be fixed? |
I can confirm that this PR solves the issue. Tried in a small test project using the |
ehatbteat is failing? if itnis an essential one, it erver.error.include-message=always should become a default. or else the flag docunented maybe. else let usbstash and merge then. |
@remmeier from my understanding, the |
The
getErrorAttributes
method that theCrnkErrorController
was calling had been deprecated in Spring Boot 2.3 and then was removed in Spring Boot 2.5 - this pull request updates the controller to use the new / non-deprecated version of thegetErrorAttributes
method.Closes #816