You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Hao Hao (JIRA)" <ji...@apache.org> on 2016/04/25 23:44:12 UTC
[jira] [Updated] (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:all-tabpanel ]
Hao Hao updated SENTRY-1217:
----------------------------
Component/s: Sentry
> 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
>
> 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)