Skip to content
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

springsecurity权限校验存在问题 #587

Closed
shenbingyu opened this issue Jan 15, 2023 · 3 comments
Closed

springsecurity权限校验存在问题 #587

shenbingyu opened this issue Jan 15, 2023 · 3 comments

Comments

@shenbingyu
Copy link

shenbingyu commented Jan 15, 2023

在开启debug日志的时候就会发现任何请求super.beforeInvocation(fi)这个方法都会执行两次,导致执行请求一次会打两份日志,配置逻辑存在问题
image
具体位置在这里,也就是说一次请求会进行两次权限校验。
image

@zpj80231
Copy link

是的,我也发现了这个问题

@Maakkong
Copy link

Maakkong commented Jun 2, 2023

应该是动态权限的filter被spring自动注册的时候加入了系统调用链,后面又手动加入了一次调用链导致的

@liumingsongning
Copy link

怎么感觉加了权限验证好慢,简单返回个字符串都得5,6秒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants