-
Notifications
You must be signed in to change notification settings - Fork 6k
HttpStatusServerAccessDeniedHandler doesn't work as intended #5078
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
Comments
Thanks for the report. I pushed a fix for the HttpStatus to master and 5.0.x. We have an on going issue to clean up Javadoc in the reactive bits. If you have specific classes that you need prioritized please create a separate issue for that |
Thanks @rwinch One thing I've noticed is it seems on the reactive side lots of the basic building-blocks that are there on the servlet side are missing. Things like
Is this by design? Are these kinds of things not-needed in a reactive environment? |
@edeandrea Thanks for the report. We know that there is still a lot to do on the reactive side. It was impossible to replicate all of the code within the servlet world (which was nearly 15 years of work) within a single release. Please create tickets for specific things you would like to see and we will prioritize it. Please avoid a long list if items, but instead create individual tickets. |
Great thanks @rwinch . I just wasn't sure if this was by design or because of what you just mentioned - that it just hasn't yet caught up. I'll submit additional tickets. |
Thanks @edeandrea! Any chance you would be willing to submit PRs for any of those tickets? |
I would totally be open to it as I'm going to have to build them myself anyways (I've already built the cookie csrf token repository, but will have to check with my company's legal team to see if thats ok (I work for a big & old company.... :( ) |
@edeandrea Thanks for looking into it! Let me know either way. If you can do it, that would be a great help. If you cannot do it I will be sure to prioritize it myself |
Summary
I'm trying to convert my current servlet-based application over to reactive and it seems some of the Spring Security support for the reactive stack isn't yet complete.
ServerHttpSecurity
and all its nested classes/methods,SecurityWebFilterChain
,HttpStatusServerAccessDeniedHandler
, plus there are probably others that I haven't yet come across)HttpStatusServerAccessDeniedHandler
in particular the documentation is not complete. It also reads in anHttpStatus
to set, but then thehandle
method never uses it. Line 41 showsresponse.setStatusCode(HttpStatus.FORBIDDEN);
Expected Behavior
I would expect that whatever
HttpStatus
I construct theHttpStatusServerAccessDeniedHandler
with would be the status code on the outgoing response.Version
5.0.3.RELEASE
The text was updated successfully, but these errors were encountered: