deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-596 fire optional ExceptionToCatchEvent for AccessDeniedException
Date Thu, 15 May 2014 20:04:34 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 8457eb200 -> 043f33ebc


DELTASPIKE-596 fire optional ExceptionToCatchEvent for AccessDeniedException


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/043f33eb
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/043f33eb
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/043f33eb

Branch: refs/heads/master
Commit: 043f33ebc360e97c94da6c9699f71051a56c5ed3
Parents: 8457eb2
Author: gpetracek <gpetracek@apache.org>
Authored: Thu May 15 22:02:07 2014 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Thu May 15 22:02:07 2014 +0200

----------------------------------------------------------------------
 .../security/impl/authorization/SecuredAnnotationAuthorizer.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/043f33eb/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecuredAnnotationAuthorizer.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecuredAnnotationAuthorizer.java
b/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecuredAnnotationAuthorizer.java
index 409b300..b192d5b 100644
--- a/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecuredAnnotationAuthorizer.java
+++ b/deltaspike/modules/security/impl/src/main/java/org/apache/deltaspike/security/impl/authorization/SecuredAnnotationAuthorizer.java
@@ -144,6 +144,7 @@ public class SecuredAnnotationAuthorizer
                     }
                     AccessDeniedException accessDeniedException = new AccessDeniedException(violations);
                     ExceptionToCatchEvent exceptionToCatchEvent = new ExceptionToCatchEvent(accessDeniedException);
+                    exceptionToCatchEvent.setOptional(true);
                     this.beanManager.fireEvent(exceptionToCatchEvent);
 
                     if (!exceptionToCatchEvent.isHandled())


Mime
View raw message