Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9551

Bug in CassandraRoleManager.collectRoles()

    XMLWordPrintableJSON

Details

    • Normal

    Description

          private void collectRoles(Role role, Set<RoleResource> collected, boolean includeInherited)
          {
              for (String memberOf : role.memberOf)
              {
                  Role granted = getRole(memberOf);
                  if (role.equals(NULL_ROLE))
                      continue;
                  collected.add(RoleResource.role(granted.name));
                  if (includeInherited)
                      collectRoles(granted, collected, true);
              }
          }
      

      role.equals(NULL_ROLE) should be granted.equals(NULL_ROLE)

      Attachments

        1. 9551.txt
          2 kB
          Sam Tunnicliffe

        Activity

          People

            samt Sam Tunnicliffe
            aleksey Aleksey Yeschenko
            Sam Tunnicliffe
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: