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
Exceptions annoted with ResponseStatus not converted to Problem on 0.26.x when using Spring Security #541
Comments
Can you post a sample pom/build file with the dependencies that yo used? Or could you create a small sample project on Github to reproduce it? |
Sure, i pushed the sample including the test here: https://github.com/fr1zle/problem-web-issue |
I won't have time to work on this any time soon. If anyone wants to tackle this, any help would be highly appreciated. |
Any hints to where to look first? Took me a while to reproduce this, but I am willing to dig deeper with a few hints. |
If it's a regression since the latest release then I'd start with a diff
and check for interesting changes.
…On Thu, 8 Oct 2020, 18:28 Timm Hirsens, ***@***.***> wrote:
Any hints to where to look first? Took me a while to reproduce this, but I
am willing to dig deeper with a few hints.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#541 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADI7HJPPM63WVJD3DBREXTSJXSCTANCNFSM4R6H7RGQ>
.
|
Exceptions that are annoted with a
@ResponseStatus
do not return a "Problem Response" with content-typeapplication/problem+json
once the Spring Security Starter is on the classpath.This error does not appear when using version 0.25.2 only when updating to a version >= 0.26.0
Description
The autoconfiguration is invoked, but the method still returns
application/json
and the default spring boot error json:Expected Behavior
Calling
GET http://localhost:8080/hello
returns a response with mediatypeapplication/problem+json
and a corresponding body.Actual Behavior
A response with mediatype
application/json
is returned and the body matches the default spring boot error view json.Possible Fix
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: