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
Describe the bug
When annotating a method that causes a synthetic method to be created (for example when overriding Spring Datas ListCrudRepository#findAllById which in turn overrides CrudRepository#findAllById) both the original and the synthetic method will contain this annotation when checking at runtime. This leads to a AnnotationConfigurationException being thrown when trying to call the overridden method although the annotation is only present once in the source code
Describe the bug
When annotating a method that causes a synthetic method to be created (for example when overriding Spring Datas
ListCrudRepository#findAllById
which in turn overridesCrudRepository#findAllById
) both the original and the synthetic method will contain this annotation when checking at runtime. This leads to aAnnotationConfigurationException
being thrown when trying to call the overridden method although the annotation is only present once in the source codeTo Reproduce
Check out https://github.com/f-cramer/spring-security-synthetic-methods an call
http://localhost:8080/books
with usernameadmin
and passwordabc123
.Expected behavior
Synthetic methods should be ignored when validating the uniqueness of security annotations
The text was updated successfully, but these errors were encountered: