kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yichen Zhou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-3589) Different type is used to check presence in Collection in AclPermissionUtil
Date Tue, 25 Sep 2018 01:24:00 GMT

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

Yichen Zhou commented on KYLIN-3589:
------------------------------------

I will fix this.

> Different type is used to check presence in Collection in AclPermissionUtil
> ---------------------------------------------------------------------------
>
>                 Key: KYLIN-3589
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3589
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Yichen Zhou
>            Priority: Major
>
> Here is related code:
> {code}
>     public static List<String> transformAuthorities(Collection<? extends GrantedAuthority>
authorities) {
>         List<String> ret = new ArrayList<String>();
>         for (GrantedAuthority auth : authorities) {
>             if (!authorities.contains(auth.getAuthority())) {
> {code}
> auth.getAuthority() shouldn't be used to check presence in the Collection since it is
not of GrantedAuthority type.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message