cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-9551) Bug in CassandraRoleManager.collectRoles()
Date Thu, 04 Jun 2015 19:50:39 GMT
Aleksey Yeschenko created CASSANDRA-9551:
--------------------------------------------

             Summary: Bug in CassandraRoleManager.collectRoles()
                 Key: CASSANDRA-9551
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9551
             Project: Cassandra
          Issue Type: Bug
            Reporter: Aleksey Yeschenko
            Assignee: Sam Tunnicliffe


{code}
    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);
        }
    }
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message