[ 
https://issues.apache.org/jira/browse/DELTASPIKE-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028276#comment-14028276
 ] 

Thomas Andraschko commented on DELTASPIKE-636:
----------------------------------------------

AFAIR you don't need to set optional on the event + rethrow it manually if it's 
not handled because it will automatically rethrow it if no exception handler is 
available.


> @Secures should trigger the ds-exception-handler
> ------------------------------------------------
>
>                 Key: DELTASPIKE-636
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-636
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Security-Module
>    Affects Versions: 0.7
>            Reporter: Pedro Igor
>            Assignee: Gerhard Petracek
>            Priority: Minor
>             Fix For: 1.0.0
>
>         Attachments: AccessDeniedExceptionHandling.patch, DELTASPIKE-636.patch
>
>
> When using @Secures, if a validation fails the AccessDeniedException is 
> thrown without letting the application to handle it properly. This ends up 
> printing the stack trace on the logs.
> Ideally, users should be able to handle this exception before propagating it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to