Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4, 3.1.0.M2
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Tomcat 6.0, Spring 3.0.3

      Description

      from Docs http://static.springsource.org/spring-security/site/docs/3.0.x/reference/ns-config.html

      @PreAuthorize("hasAuthority('ROLE_TELLER')")

      but "hasAuthority" is wrong. work around is to use "hasRole" instead.

      <intercept-url pattern="/login.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY"/> also is not working.

      java.lang.IllegalArgumentException: Failed to evaluate expression 'IS_AUTHENTICATED_ANONYMOUSLY'

      work around is to use:
      <intercept-url pattern="/login.jsp*" access="permitAll" />

        Activity

        Hide
        Luke Taylor added a comment -

        I've added support for hasAuthority() and hasAnyAuthority() expressions to SecurityExpressionRoot.

        Show
        Luke Taylor added a comment - I've added support for hasAuthority() and hasAnyAuthority() expressions to SecurityExpressionRoot.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            NoName
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: