You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after upgrading to spring boot 3.2.0-RC1, my custom security filter no longer runs in tests. It seems it is simply skipped from execution. After debugging around OncePerRequestFilter:97, I found out that with RC1, the getAlreadyFilteredAttributeName() just returns .FILTERED for a number of filters instead of a unique name. With M3 everything works fine. This behaviour only occurs when running the tests, running the application "regularly" is fine too.
The issue can be reproduced with my examples project (https://github.com/bratkartoffel/security-jwt-examples) by changing the gradle.properties , springBootVersion=3.2.0-RC1and running eu.fraho.spring.example.test.regular_internal.TestRegularApplication#testPrivateWithTokenA().
Forcing the alreadyFilteredAttributeName to getClass().getName() + ALREADY_FILTERED_SUFFIX using the debugger makes the test green again.
Thanks,
Simon
The text was updated successfully, but these errors were encountered:
After searching more in the other spring projects i came across spring-projects/spring-framework#31474 which seems to be my problem here. Closing, thanks
Hi,
after upgrading to spring boot 3.2.0-RC1, my custom security filter no longer runs in tests. It seems it is simply skipped from execution. After debugging around OncePerRequestFilter:97, I found out that with RC1, the
getAlreadyFilteredAttributeName()
just returns.FILTERED
for a number of filters instead of a unique name. With M3 everything works fine. This behaviour only occurs when running the tests, running the application "regularly" is fine too.The issue can be reproduced with my examples project (https://github.com/bratkartoffel/security-jwt-examples) by changing the
gradle.properties
,springBootVersion=3.2.0-RC1
and runningeu.fraho.spring.example.test.regular_internal.TestRegularApplication#testPrivateWithTokenA()
.Forcing the
alreadyFilteredAttributeName
togetClass().getName() + ALREADY_FILTERED_SUFFIX
using the debugger makes the test green again.Thanks,
Simon
The text was updated successfully, but these errors were encountered: