[jira] [Updated] (SENTRY-2566) Output failed privileges when HiveAuthzBinding throws AuthorizationException

2020-11-19 Thread Zhihua Deng (Jira)


 [ 
https://issues.apache.org/jira/browse/SENTRY-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated SENTRY-2566:

Attachment: (was: SENTRY-2566.patch)

> Output failed privileges when HiveAuthzBinding throws AuthorizationException
> 
>
> Key: SENTRY-2566
> URL: https://issues.apache.org/jira/browse/SENTRY-2566
> Project: Sentry
>  Issue Type: Improvement
>Reporter: Zhihua Deng
>Priority: Major
> Attachments: SENTRY-2566.001.patch
>
>
> When using MetastoreAuthzBindingBase to authorize meta changes like creating 
> tables, if user does not have the right privileges, the hive client gets the 
> error message like this:
> {noformat}
> User u_dengzhihua does not have privileges for CREATETABLE{noformat}
> It's not easy for the user to figure out what privileges are missing.  We 
> should output the failed message like the DefaultSentryValidator does, the 
> message would be like this:
> {noformat}
> User u_dengzhihua does not have privileges 
> Server=server1->Db=test->action=create for CREATETABLE{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (SENTRY-2566) Output failed privileges when HiveAuthzBinding throws AuthorizationException

2020-11-19 Thread Zhihua Deng (Jira)


 [ 
https://issues.apache.org/jira/browse/SENTRY-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated SENTRY-2566:

Attachment: SENTRY-2566.001.patch

> Output failed privileges when HiveAuthzBinding throws AuthorizationException
> 
>
> Key: SENTRY-2566
> URL: https://issues.apache.org/jira/browse/SENTRY-2566
> Project: Sentry
>  Issue Type: Improvement
>Reporter: Zhihua Deng
>Priority: Major
> Attachments: SENTRY-2566.001.patch
>
>
> When using MetastoreAuthzBindingBase to authorize meta changes like creating 
> tables, if user does not have the right privileges, the hive client gets the 
> error message like this:
> {noformat}
> User u_dengzhihua does not have privileges for CREATETABLE{noformat}
> It's not easy for the user to figure out what privileges are missing.  We 
> should output the failed message like the DefaultSentryValidator does, the 
> message would be like this:
> {noformat}
> User u_dengzhihua does not have privileges 
> Server=server1->Db=test->action=create for CREATETABLE{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (SENTRY-2566) Output failed privileges when HiveAuthzBinding throws AuthorizationException

2020-11-19 Thread Zhihua Deng (Jira)


 [ 
https://issues.apache.org/jira/browse/SENTRY-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated SENTRY-2566:

Status: Patch Available  (was: Open)

> Output failed privileges when HiveAuthzBinding throws AuthorizationException
> 
>
> Key: SENTRY-2566
> URL: https://issues.apache.org/jira/browse/SENTRY-2566
> Project: Sentry
>  Issue Type: Improvement
>Reporter: Zhihua Deng
>Priority: Major
> Attachments: SENTRY-2566.patch
>
>
> When using MetastoreAuthzBindingBase to authorize meta changes like creating 
> tables, if user does not have the right privileges, the hive client gets the 
> error message like this:
> {noformat}
> User u_dengzhihua does not have privileges for CREATETABLE{noformat}
> It's not easy for the user to figure out what privileges are missing.  We 
> should output the failed message like the DefaultSentryValidator does, the 
> message would be like this:
> {noformat}
> User u_dengzhihua does not have privileges 
> Server=server1->Db=test->action=create for CREATETABLE{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (SENTRY-2566) Output failed privileges when HiveAuthzBinding throws AuthorizationException

2020-11-19 Thread Zhihua Deng (Jira)


 [ 
https://issues.apache.org/jira/browse/SENTRY-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated SENTRY-2566:

Attachment: SENTRY-2566.patch

> Output failed privileges when HiveAuthzBinding throws AuthorizationException
> 
>
> Key: SENTRY-2566
> URL: https://issues.apache.org/jira/browse/SENTRY-2566
> Project: Sentry
>  Issue Type: Improvement
>Reporter: Zhihua Deng
>Priority: Major
> Attachments: SENTRY-2566.patch
>
>
> When using MetastoreAuthzBindingBase to authorize meta changes like creating 
> tables, if user does not have the right privileges, the hive client gets the 
> error message like this:
> {noformat}
> User u_dengzhihua does not have privileges for CREATETABLE{noformat}
> It's not easy for the user to figure out what privileges are missing.  We 
> should output the failed message like the DefaultSentryValidator does, the 
> message would be like this:
> {noformat}
> User u_dengzhihua does not have privileges 
> Server=server1->Db=test->action=create for CREATETABLE{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)