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

pengfei.zhan commented on KYLIN-5779:
-------------------------------------

h1. Fix Design

change the following code snappy
{code:java}
int mask = projectPermissions.get(getSid(groupName, false));{code}
to 
{code:java}
int mask = projectPermissions.getOrDefault(getSid(groupName, false), 0){code}

After getting the response, do some filter to solve this problem.


org.apache.kylin.rest.controller.open.OpenAccessController#getUserOrGroupAclPermissions

{{response.stream().filter(e -> 
!AclConstants.EMPTY.equals(e.getProjectPermission())).collect(Collectors.toList())}}

> Without project permission,calling "kylin/api/access/acls" api occurs NPE
> -------------------------------------------------------------------------
>
>                 Key: KYLIN-5779
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5779
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: 5.0-beta
>            Reporter: pengfei.zhan
>            Assignee: pengfei.zhan
>            Priority: Major
>             Fix For: 5.0-beta
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to