Skip to content

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

Merged
arjantijms merged 1 commit intojakartaee:masterfrom
OndroMih:ondromih-hasAccessWithNoMethod
Apr 3, 2024
Merged

Fixes #262: Clarify using hasAccessToWebResource with no methods#322
arjantijms merged 1 commit intojakartaee:masterfrom
OndroMih:ondromih-hasAccessWithNoMethod

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.

…hods

Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
@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
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