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

FISH-9802 Fix EJB Failures in Authorization 3.0 TCK #6998

Open
wants to merge 4 commits into
base: Payara7
Choose a base branch
from

Conversation

Pandrex247
Copy link
Member

@Pandrex247 Pandrex247 commented Oct 3, 2024

Description

Fixes the EJB authorization tests in the Authorization TCK.
This is intended as a stop-gap solution for now, as I believe this class (and all surrounding JACC code) needs some heavy rewrites - we're only "half" using Exousia in the current state, duplicating a lot of code and so not always using Exousia itself for authorization.

Important Info

Blockers

None

Testing

New tests

None

Testing Performed

Ran the Authorization TCK, didn't spot any new failures (app-custom-policy2 tests fails regardless)
Ran all currently passing TCKs, no new failures (jsp runner is currently broken - ignore. #WorksOnMyMachine): https://jenkins.payara.fish/view/Build/job/JakartaEE-11-TCK/48/

Testing Environment

OpenSUSE WSL, Maven 3.9.9, Zulu JDK 21.0.4

Documentation

N/A

Notes for Reviewers

None

Scrappy implementation, taking code from GlassFish.
While this fixes the EJB tests from the JACC TCK, it's not ideal as we're still duplicating a lot of code from Exousia.
At this point we're creating a AuthorizationService instance so that it gets registered in the DefaultPolicyContextHandler, but not actually using it for authorization

Signed-off-by: Andrew Pielage <[email protected]>
Signed-off-by: Andrew Pielage <[email protected]>
GlassFish have a separate class for the methods imported in the previous commit, so for the sake of clarity I'm realigning them here (though swapping out the GlassFish name to Payara)
@Pandrex247 Pandrex247 marked this pull request as ready for review October 4, 2024 14:33
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.

1 participant