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
Newly moving to 3.0.0-M4 from M3 with more-or-less default setup the error page is throwing a 401 and obscuring the original error when using stateless sessions (and basic auth?)
I recall seeing some bugs in this area, among them #29564 and #28953, which might be related -- but seems like there are lots of scenarios and lots of changes in this area on both the security and boot side. Basically the error page invocation loses the authentication status of the original request.
Thanks for the report. This is due to Spring Security now filtering every dispatch by default. This commit uses filterSecurityInterceptorOncePerRequest(true) to adapt to this change by restoring the previous behaviour. We're working with the Security team at the moment to improve this. #31703 is tracking any changes that may be necessary in Spring Boot and spring-projects/spring-security#10919 is tracking things on the Spring Security side.
Still getting this error org.springframework.security.authentication.BadCredentialsException: Bad credentials returns 403
making "/error permit all" also not fixing it. spring-boot-starter-parent =3.0.5
@iozyigit0 Unfortunately, this is to be expected as the Spring Security team chose not to make the changes that were necessary for Spring Boot to reliably and robustly improve things in this area. If you disagree with this decision, please raise it with them.
Newly moving to
3.0.0-M4
fromM3
with more-or-less default setup the error page is throwing a 401 and obscuring the original error when using stateless sessions (and basic auth?)I recall seeing some bugs in this area, among them #29564 and #28953, which might be related -- but seems like there are lots of scenarios and lots of changes in this area on both the security and boot side. Basically the error page invocation loses the authentication status of the original request.
Reproduction is here now: https://github.com/jeffbswope/null-servletcontext-errorpagefilter
(Re-using repo from old reproduction, disregard the name.)
If you disable the
SessionCreationPolicy.NEVER
setting, the tests pass and things seem to work.Making
/error
permit all also "fixes" the problem but I don't think that's necessarily recommended.Notable logs from hitting the page without the right role:
The text was updated successfully, but these errors were encountered: