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

Hadoop QA commented on SENTRY-1217:
-----------------------------------

Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12800668/SENTRY-1217.0.patch 
against master.

{color:red}Overall:{color} -1 due to an error

{color:red}ERROR:{color} mvn test exited 1

Console output: 
https://builds.apache.org/job/PreCommit-SENTRY-Build/1501/console

This message is automatically generated.

> 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)

Reply via email to