[jira] [Created] (SHIRO-630) ModularRealmAuthorizer ignores JAX-RS proxied Realms

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Created] (SHIRO-630) ModularRealmAuthorizer ignores JAX-RS proxied Realms

JIRA jira@apache.org
Sean Lyons created SHIRO-630:
--------------------------------

             Summary: ModularRealmAuthorizer ignores JAX-RS proxied Realms
                 Key: SHIRO-630
                 URL: https://issues.apache.org/jira/browse/SHIRO-630
             Project: Shiro
          Issue Type: Bug
         Environment: Jersey version 2.25
Shiro version 1.2+
            Reporter: Sean Lyons


I'm developing in a web environment that uses JAX-RS for dependency injection.  I'd like to inject my realms by proxy so that they can be injected in request scope into singleton parents.  However, the logic in ModularRealmAuthorizer#isPermitted(PrincipalCollection, Permission) does an `instanceof Authorizer` check that will fail for proxied, injected realms because they are of type `Proxy`.  This issue seems to appear in versions 1.2 and later.





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...