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] [Updated] (CASSANDRA-9551) Bug in CassandraRoleManager.collectRoles()
Date Thu, 04 Jun 2015 19:50:45 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-9551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aleksey Yeschenko updated CASSANDRA-9551:
-----------------------------------------
    Fix Version/s: 2.2.0 rc1

> 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
>
>
> {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