cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-9551) Bug in CassandraRoleManager.collectRoles()
Date Fri, 05 Jun 2015 09:40:02 GMT

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

Sam Tunnicliffe updated CASSANDRA-9551:
---------------------------------------
    Attachment: 9551.txt

Attached trivial patch to fix and opened a dtest PR [here|https://github.com/riptano/cassandra-dtest/pull/313]

Will add cassci links when it picks up my branch.

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

Mime
View raw message