juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JUNEAU-108) AccessDeniedException should cause HTTP 401 response.
Date Thu, 27 Jun 2019 22:39:00 GMT

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

James Bognar resolved JUNEAU-108.
---------------------------------
       Resolution: Fixed
         Assignee: James Bognar
    Fix Version/s: 8.0.1

> 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)

Mime
View raw message