Shiro
  1. Shiro
  2. SHIRO-185

Shiro Annotations in Spring apps: annotations on method implementations not handled when using Spring's DefaultAutoProxyCreator

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: Integration: Spring
    • Labels:
      None

      Description

      When using Spring's DefaultAutoProxyCreator mechanism to enable Shiro security checks via annotations (@RequiresAuthentication, @RequiresPermissions, etc), Shiro annotations on Interface methods are the only ones that are processed successfully. If a method implementatin is annotated directly, the authorization interceptor is never triggered during a method call.

        Activity

        Hide
        Les Hazlewood added a comment -

        Fix committed to trunk with tests for two different types of Spring AOP configuration.

        Show
        Les Hazlewood added a comment - Fix committed to trunk with tests for two different types of Spring AOP configuration.
        Hide
        Les Hazlewood added a comment -

        Closing as this was released in 1.1.0

        Show
        Les Hazlewood added a comment - Closing as this was released in 1.1.0

          People

          • Assignee:
            Les Hazlewood
            Reporter:
            Les Hazlewood
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development