Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-343

RequiresRoles annotation is not intercepting on a class level when configured with Spring MVC

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      With the shown sanitized context definition, Shiro intercepts method invocations annotated with RequiresRoles, but fails to intercept if the annotation is at the class level. This requires duplication of the annotation to every method within a Controller class.

      Les says: "[...] this is something our AOPAlliance interceptor would have to
      check for - first the method and if it has annotations, and then the
      class to see if it has annotations [...]"

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bcarr Brian M. Carr
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: