[
https://issues.apache.org/jira/browse/DELTASPIKE-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830818#comment-13830818
]
John Schneider commented on DELTASPIKE-449:
-------------------------------------------
The following is not invoked when an AccessDeniedException occurs:
@ExceptionHandler
public class ExceptionHandlers {
public void handleAccessDeniedException(@Handles
ExceptionEvent<AccessDeniedException> event) {
System.out.println("handleAccessDeniedException invoked");
}
}
However, if I explicitly fire a ExceptionToCatchEvent wrapping an
AccessDeniedException, then it is invoked. I think DeltaSpike should fire an
ExceptionToCatchEvent by default whenever an AccessDeniedException occurs.
> ExceptionHandler not invoked for AccessDeniedException
> ------------------------------------------------------
>
> Key: DELTASPIKE-449
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-449
> Project: DeltaSpike
> Issue Type: Bug
> Components: Security-Module
> Affects Versions: 0.5
> Environment: Glassfish 4 / Weld 2.0.4
> Reporter: John Schneider
>
> When an
> org.apache.deltaspike.security.api.authorization.AccessDeniedException is
> thrown, a valid ExceptionHandler method is not invoked.
--
This message was sent by Atlassian JIRA
(v6.1#6144)