Skip to content

HttpStatusServerAccessDeniedHandler doesn't work as intended #5078

Closed
@edeandrea

Description

@edeandrea

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.

  1. The API documentation (class-method level documentation) seems to be missing in lots of places (ServerHttpSecurity and all its nested classes/methods, SecurityWebFilterChain, HttpStatusServerAccessDeniedHandler, plus there are probably others that I haven't yet come across)
  2. HttpStatusServerAccessDeniedHandler in particular the documentation is not complete. It also reads in an HttpStatus to set, but then the handle method never uses it. Line 41 shows response.setStatusCode(HttpStatus.FORBIDDEN);

Expected Behavior

I would expect that whatever HttpStatus I construct the HttpStatusServerAccessDeniedHandler with would be the status code on the outgoing response.

Version

5.0.3.RELEASE

Metadata

Metadata

Assignees

Labels

in: webAn issue in web modules (web, webmvc)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions