You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Yichen Zhou (JIRA)" <ji...@apache.org> on 2018/09/30 02:38:00 UTC
[jira] [Resolved] (KYLIN-3589) Different type is used to check
presence in Collection in AclPermissionUtil
[ https://issues.apache.org/jira/browse/KYLIN-3589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yichen Zhou resolved KYLIN-3589.
--------------------------------
Resolution: Fixed
Assignee: Yiming Liu (was: Yichen Zhou)
Fix Version/s: v2.6.0
> 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: Yiming Liu
> Priority: Major
> Fix For: v2.6.0
>
>
> 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)