Describe the bug spring security does not execute as expected, when the version is upgraded from 5.4.8 to 6.0.3

To Reproduce Request the rest api to do basic permission verification through spring security. The specific verification scenario here is not to give any permission parameters to verify the http 403 forbidden. 1 spring security version 5.4.8 work fine 3 spring security upgrade version to 6.0.9 does not work

Expected behavior spring security upgrade version to 6.0.9 work Sample I uploaded two repro, versions 6.0.9 and 5.4.8, 6.0.9 https://github.com/ivannie153177/springsecurity-demo.git 5.4.8 https://github.com/ivannie153177/springsecurity-5-4-8-demo.git Additional information: Start two projects and send a rest request, Spring Security The spring security filter chain does not execute expected, when the version is upgraded from 5.4.8 to 6.0.3 Spring Security The spring security filter chain does not execute expected, when the version is upgraded from 5.4.8 to 6.0.3 Spring Security The spring security filter chain does not execute expected, when the version is upgraded from 5.4.8 to 6.0.3

Comment From: marcusdacoregio

Hi @ivannie153177, I recommend upgrading your application by each minor version instead of skipping 5.5, 5.6, 5.7, and 5.8. That helps by replacing the deprecations with new stuff that become the default in a major version like 6.0.

However, I would guess that you are not seeing the response because Spring Boot removed their custom filter that allowed access to it. You can try permitting access to /error.

Comment From: ivannie153177

ok thanks