DenyAllPermissionEvaluator Used As Silent Backup When Two PermissionEvaluator Beans Exist #44989
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
When two or more PermissionEvaluator beans are present in an application, Spring seems to silently choose the DenyAllPermissionEvaluator instead of failing to startup due to having duplicate beans.
This feels like a bug, and could have dangerous consequences for enterprises by silently pushing out code to production that seems to build/run as expected, but once an endpoint is hit that calls hasPermission(), it is always denied.
I think Spring should be failing at startup if there are multiple PermissionsEvaluators similar to behavior for other duplicate beans, or otherwise clearly warn developers of the case.
The text was updated successfully, but these errors were encountered: