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] [Commented] (CASSANDRA-5072) Bug in creating EnumSet in SimpleAuthorizer example
Date Mon, 17 Dec 2012 15:46:12 GMT

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

Aleksey Yeschenko commented on CASSANDRA-5072:
----------------------------------------------

Thanks, committed.
                
> Bug in creating EnumSet in SimpleAuthorizer example
> ---------------------------------------------------
>
>                 Key: CASSANDRA-5072
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5072
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0 beta 3
>            Reporter: John Sanda
>            Assignee: Aleksey Yeschenko
>            Priority: Minor
>              Labels: authentication
>             Fix For: 1.2.0 rc2
>
>         Attachments: 5072.txt
>
>
> In SimpleAuthorizer around line 47 we have,
> EnumSet<Permission> authorized = EnumSet.copyOf(Permission.NONE);
> This results in an IllegalArgumentException since Permission.NONE is an empty set. I
think it should be changed to,
> EnumSet<Permission> authorized = EnumSet.noneOf(Permission.class);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message