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

CDI security: Unannotated inherited methods may be restricted when they should not #4992

Closed
michalszynkiewicz opened this issue Oct 29, 2019 · 1 comment · Fixed by #5074
Closed
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@michalszynkiewicz
Copy link
Member

Describe the bug
For the case in the $subject, determineSecurityAnnotationFromBindings#determineSecurityAnnotationFromBindings returns annotations from the subclass even if the method is not overriden

Expected behavior
If we want to be consistent with JSR 250 section 2.1 point 4, constraint from the subclass should not be applied here.

To Reproduce
Steps to reproduce the behavior:
Run CDIAccessDefaultTest.shouldAccessInheritedAllowedMethod separately

@michalszynkiewicz michalszynkiewicz added the kind/bug Something isn't working label Oct 29, 2019
@michalszynkiewicz
Copy link
Member Author

thanks @aureamunoz for finding it!

It would be best to move figuring out the check to build time when solving this issue.

@michalszynkiewicz michalszynkiewicz self-assigned this Oct 30, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Oct 31, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Oct 31, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Oct 31, 2019
gsmet pushed a commit to michalszynkiewicz/quarkus that referenced this issue Oct 31, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 1, 2019
aureamunoz pushed a commit to aureamunoz/quarkus that referenced this issue Nov 5, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 6, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 6, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 6, 2019
geoand pushed a commit to geoand/quarkus that referenced this issue Nov 11, 2019
geoand pushed a commit to geoand/quarkus that referenced this issue Nov 12, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 12, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 13, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 13, 2019
michalszynkiewicz added a commit to michalszynkiewicz/quarkus that referenced this issue Nov 13, 2019
@gsmet gsmet added this to the 1.0.0.Final milestone Nov 14, 2019
jmartisk pushed a commit to jmartisk/quarkus that referenced this issue Nov 15, 2019
ia3andy pushed a commit to dmlloyd/quarkus that referenced this issue Nov 19, 2019
mmusgrov pushed a commit to mmusgrov/quarkus that referenced this issue Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants