Skip to content

TOMEE-4730 - Apply class-level security annotations of a resource superclass - #3081

Merged
rzo1 merged 1 commit into
mainfrom
TOMEE-4730
Oct 13, 2026
Merged

rzo1 merged 1 commit into
mainfrom
TOMEE-4730

Conversation

@rzo1

@rzo1 rzo1 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Only the resource class was consulted for class-level @RolesAllowed/@PermitAll/@Denyall, so methods inherited from an annotated base class were unprotected. Following Jakarta Annotations, a method-level annotation wins, otherwise the class declaring the method applies. Fixes TOMEE-4730.

@rzo1 rzo1 self-assigned this Oct 9, 2026
@rzo1
rzo1 requested a review from jungm October 9, 2026 09:14
Base automatically changed from mpjwt-roles-per-resource to main October 13, 2026 06:47
Security annotations are not inherited, so methods inherited from an
annotated base class were left unprotected in unannotated subclasses.
@rzo1
rzo1 merged commit 59698bf into main Oct 13, 2026
1 check passed
@rzo1
rzo1 deleted the TOMEE-4730 branch October 13, 2026 12:56
rzo1 added a commit that referenced this pull request Oct 13, 2026
…erclass (#3081)

Security annotations are not inherited, so methods inherited from an
annotated base class were left unprotected in unannotated subclasses.

(cherry picked from commit 59698bf)
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