Skip to content

In Spring Boot 3.0.2, dispatcherServlet is not working when combined with filterChain function #12659

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
JoeWang1127 opened this issue Feb 12, 2023 · 1 comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@JoeWang1127
Copy link

I'm using spring-security in my project. After upgrading to Spring Boot 3.0.2, the dispatcherServlet seems not working.

I've composed a simple project here.

In the main branch, the project is backed by Spring Boot 2.7.8 and it's working.

Run the application
Run curl localhost:8080/topsecret, the terminal will return {"timestamp":"2023-02-12T21:26:39.147+00:00","status":403,"error":"Forbidden","path":"/topsecret"}

In the spring-boot3 branch, the project is backed by Spring Boot 3.0.0 and it's not working

Run the application
Run curl localhost:8080/topsecret in the terminal and nothing returns.
Note that apart from the dependency change, I only changed antMatchers to requestMatchers in here.
Additional reference on the spring-security's filterChain function.

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
Development

No branches or pull requests

1 participant