This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git


The following commit(s) were added to refs/heads/main by this push:
     new 1a27efdd1 bugfix: Enable JSR-250 `@PermitAll`, etc. annotations in 
Jax-RS module - fixed inverted disabling logic
1a27efdd1 is described below

commit 1a27efdd15a0410e1ffb1bd9b3b138d55f9099d0
Author: lprimak <[email protected]>
AuthorDate: Tue Jun 9 01:33:40 2026 -0500

    bugfix: Enable JSR-250 `@PermitAll`, etc. annotations in Jax-RS module - 
fixed inverted disabling logic
---
 .../java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java
 
b/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java
index 3d9e62f52..d32cf8cff 100644
--- 
a/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java
+++ 
b/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs/ShiroAnnotationFilterFeature.java
@@ -62,7 +62,7 @@ public class ShiroAnnotationFilterFeature implements 
DynamicFeature {
     public void configure(ResourceInfo resourceInfo, FeatureContext context) {
         List<Annotation> authzSpecs = new ArrayList<>();
         var annotations = SHIRO_ANNOTATIONS;
-        if 
(Boolean.TRUE.equals(context.getConfiguration().getProperty(SHIRO_WEB_JAXRS_DISABLE_PRINCIPAL_PARAM)))
 {
+        if 
(!Boolean.TRUE.equals(context.getConfiguration().getProperty(SHIRO_WEB_JAXRS_DISABLE_PRINCIPAL_PARAM)))
 {
             annotations = Stream.concat(SHIRO_ANNOTATIONS.stream(), 
JSR_250_ANNOTATIONS.stream())
                     .collect(Collectors.toList());
         }

Reply via email to