You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (JIRA)" <ji...@apache.org> on 2019/06/27 22:39:00 UTC

[jira] [Closed] (JUNEAU-108) AccessDeniedException should cause HTTP 401 response.

     [ https://issues.apache.org/jira/browse/JUNEAU-108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Bognar closed JUNEAU-108.
-------------------------------

> AccessDeniedException should cause HTTP 401 response.
> -----------------------------------------------------
>
>                 Key: JUNEAU-108
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-108
>             Project: Juneau
>          Issue Type: Improvement
>          Components: Code
>    Affects Versions: 8.0.0
>            Reporter: James Bognar
>            Assignee: James Bognar
>            Priority: Major
>             Fix For: 8.0.1
>
>
> If a method throws org.springframework.security.access.AccessDeniedException, it should immediately rethrow an Unauthorized exception.  
> This exception is thrown when @Secured() is used on a method in Spring.  This would help with Spring integration.
> Perhaps we could define a setting that allows you to specify default exception responses based on exception name patterns:
> e.g.
> { 401: "*AccessDeniedException", 404: "EmptyResult*"}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)