Spring Security
  1. Spring Security
  2. SEC-1283

AuthenticationConfigBuilder.createAnonymousFilter uses httpElt instead of anonymousElt

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 RC1
    • Fix Version/s: 3.0.0.RC2
    • Component/s: Namespace
    • Labels:
      None

      Description

      I think lines 378-383 should refer to anonymousElt, not httpElt. As it stands, <security:anonymous /> namespace attributes are ignored.

      if (anonymousElt != null)

      { grantedAuthority = httpElt.getAttribute("granted-authority"); username = httpElt.getAttribute("username"); key = httpElt.getAttribute("key"); source = pc.extractSource(anonymousElt); }

        Activity

        Hide
        Luke Taylor added a comment -

        Thanks for spotting this. I've corrected the element name.

        Show
        Luke Taylor added a comment - Thanks for spotting this. I've corrected the element name.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Paul Pavlidis
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: