-
Notifications
You must be signed in to change notification settings - Fork 124
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
Spring Security redirect breaks in 0.27.0 #696
Comments
@piefel Could you provide sample code or test code? |
I created a quite minimal project: problem-problem.zip. Gradle wrapper omitted for size. The attached project, when run, will answer with 500 on |
@piefel , Thank you for provide code Fist of all, when you using problem-spring-web with spring security, I think it not working 0.27.0 version is changed. Spring security exceptionHandling is force configuired. like this
so if you want disable and you want to configure custom exceptionHandling
@whiskeysierra, 0.27.0 version has force setting problem( |
When switching from 0.26.2 to 0.27.0, the behaviour of my Spring Boot app changed: Instead of getting 302 redirects I suddenly get 500 or 200.
Description
I have a Spring Boot web app using form-based login, and unauthenticated accesses to endpoints should result in 302 Found responses with a redirect to
/login
. Worked great. I use the simplest possible problem config:(Yeah, that’s Kotlin.)
When I switched to org.zalando:problem-spring-web-starter:0.27.2, things changed. Suddenly, the answer was 500 Internal Server Error with a message of
Full authentication is required to access this resource
from somewhere deep in Spring Security.Alternative Problem
Changing the configuration to use the problem library, but without
GeneralAdviceTrait
:Now there are no 500s anymore… But instead I get 200s (with an empty body) for all requests that are supposed to be unauthenticated and redirect.
Your Environment
The text was updated successfully, but these errors were encountered: