Skip to content

OidcBackChannelLogoutWebFilter make use of a servlet class #17125

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

Open
Dyskal opened this issue May 16, 2025 · 0 comments · May be fixed by #17128
Open

OidcBackChannelLogoutWebFilter make use of a servlet class #17125

Dyskal opened this issue May 16, 2025 · 0 comments · May be fixed by #17128
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@Dyskal
Copy link

Dyskal commented May 16, 2025

Describe the bug
The OidcBackChannelLogoutWebFilter class make use of an undefined status code when the project doesn't have spring-webmvc, and only spring-webflux on its classpath.


exchange.getResponse().setRawStatusCode(HttpServletResponse.SC_BAD_REQUEST);

Expected behavior
The class should make use of https://github.com/spring-projects/spring-framework/blob/bd83fb7021cab948dea1fee4a65e560a5bb4b4c0/spring-web/src/main/java/org/springframework/http/HttpStatus.java#L157 instead, with exchange.getResponse().setStatusCode(HttpStatus.BAD_REQUEST); .

@Dyskal Dyskal added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels May 16, 2025
therepanic added a commit to therepanic/spring-security that referenced this issue May 16, 2025
therepanic added a commit to therepanic/spring-security that referenced this issue May 16, 2025
therepanic added a commit to therepanic/spring-security that referenced this issue May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Projects
None yet
1 participant