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

Fixes #262: Clarify using hasAccessToWebResource with no methods #322

Merged

Conversation

OndroMih
Copy link
Contributor

This aligns the hasAccessToWebResource Javadoc with how it was intended to work and how it's covered by the TCK tests, as clarified by @arjantijms in #266 (comment).

The hasAccessToWebResource method is intended to be aligned with the WebResourcePermission, which is already mentioned in Javadoc. It interprets an empty list of HTTP methods as "all HTTP methods". So this PR clarifies that access to all HTTP methods is required if no method is provided as an argument.

@OndroMih
Copy link
Contributor Author

Hi, @darranl , can you review this if it's a good alternative to #266?

@arjantijms arjantijms added this to the 4.0 milestone Apr 3, 2024
@arjantijms arjantijms merged commit 41dac17 into jakartaee:master Apr 3, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants