You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Anne Yu (JIRA)" <ji...@apache.org> on 2016/04/26 01:56:12 UTC

[jira] [Commented] (SENTRY-1217) NPE for list_sentry_privileges_by_authorizable when activeRoleSet is not set

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

Anne Yu commented on SENTRY-1217:
---------------------------------

Could you create a RB link?

> NPE for list_sentry_privileges_by_authorizable when activeRoleSet is not set
> ----------------------------------------------------------------------------
>
>                 Key: SENTRY-1217
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1217
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>            Reporter: Hao Hao
>            Assignee: Hao Hao
>         Attachments: SENTRY-1217.0.patch
>
>
> If activeRoleSet, which is optional, is not set when the requestor is in admin group, NPE will be thrown.
> {noformat}
> 16/04/25 11:17:55 ERROR thrift.SentryGenericPolicyProcessor: Unknown error for request: TListSentryPrivilegesByAuthRequest(protocol_version:2, requestorUserName:romain, component:solr, serviceName:server1, authorizablesSet:[collection->yelp_demo]), message: null
> java.lang.NullPointerException
>     at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericPolicyProcessor.list_sentry_privileges_by_authorizable(SentryGenericPolicyProcessor.java:688)
>     at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericPolicyService$Processor$list_sentry_privileges_by_authorizable.getResult(SentryGenericPolicyService.java:1013)
>     at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericPolicyService$Processor$list_sentry_privileges_by_authorizable.getResult(SentryGenericPolicyService.java:998)
>     at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
>     at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
>     at org.apache.sentry.provider.db.generic.service.thrift.SentryGenericPolicyProcessorWrapper.process(SentryGenericPolicyProcessorWrapper.java:37)
>     at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
>     at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)