You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2015/06/05 11:43:00 UTC

[jira] [Commented] (CASSANDRA-9551) Bug in CassandraRoleManager.collectRoles()

    [ https://issues.apache.org/jira/browse/CASSANDRA-9551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574214#comment-14574214 ] 

Aleksey Yeschenko commented on CASSANDRA-9551:
----------------------------------------------

Trivial +1.

> 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
>             Fix For: 2.2.0 rc1
>
>         Attachments: 9551.txt
>
>
> {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)