Spring Security
  1. Spring Security
  2. SEC-2010

Hierarchical Roles section of the reference documentation is missing <value> tag

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: Docs and Website
    • Labels:
      None

      Description

      The reference documentation about hierarchical votes (section 14.4) shows the following example code:

      <bean id="roleVoter" class="org.springframework.security.access.vote.RoleHierarchyVoter">
          <constructor-arg ref="roleHierarchy" />
      </class>
      <bean id="roleHierarchy"
              class="org.springframework.security.access.hierarchicalroles.RoleHierarchyImpl">
          <property name="hierarchy">
              ROLE_ADMIN > ROLE_STAFF
              ROLE_STAFF > ROLE_USER
              ROLE_USER > ROLE_GUEST
          </property>
      </bean>
      

      However, the property value should be put inside a <value> tag.

        Activity

        Hide
        Mauro Molinari added a comment - - edited

        Sorry, there are some errors in my reporting, but I can't edit it
        The title should be "Minor error in the Hierarchical Roles section of the reference documentation" (not "Rules").
        The description should talk about "hierarchical roles" (not "votes").
        The component should be "Docs and website".
        The "Affects version" should be 3.1.1.

        Show
        Mauro Molinari added a comment - - edited Sorry, there are some errors in my reporting, but I can't edit it The title should be "Minor error in the Hierarchical Roles section of the reference documentation" (not "Rules"). The description should talk about "hierarchical roles" (not "votes"). The component should be "Docs and website". The "Affects version" should be 3.1.1.
        Hide
        Rob Winch added a comment -

        Thank you for submitting this issue. It has been fixed in master.

        Show
        Rob Winch added a comment - Thank you for submitting this issue. It has been fixed in master.

          People

          • Assignee:
            Rob Winch
            Reporter:
            Mauro Molinari
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified