Spring Security
  1. Spring Security
  2. SEC-1626

sec:global-method-security causes other aspects/interceptors not to be applied.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Incomplete
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.1.0.M2
    • Component/s: ACLs
    • Labels:
      None

      Description

      If I have

      <sec:global-method-security jsr250-annotations="enabled" pre-post-annotations="enabled" order="-2147482645" proxy-target-class="false">
      <sec:expression-handler ref="methodSecurityExpressionHandler" />
      </sec:global-method-security>

      It causes one of my http://code.google.com/p/ehcache-spring-annotations/ caching annotation aspects to never be weaved/intercepted.

      I have several other aspects which do not interfer with this, so I'm pretty sure it must be spring security causing the problem.
      If I remove it everything starts to work as expected.

      The service in question does implement an interface, and I've tried with both proxy-target-class true and false.
      I use auto-proxying for several of the other aspects, but even with all of them removed this still happens!

        Activity

        Hide
        Luke Taylor added a comment -

        Please supply a test case which reproduces the problem.

        Show
        Luke Taylor added a comment - Please supply a test case which reproduces the problem.
        Show
        Petr Sakar added a comment - Can be similar like this ? http://stackoverflow.com/questions/8229600/spring-security-how-i-can-enable-method-security-annotations

          People

          • Assignee:
            Luke Taylor
            Reporter:
            David J. M. Karlsen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: