You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Colin Ma (JIRA)" <ji...@apache.org> on 2015/08/26 09:11:46 UTC

[jira] [Commented] (SENTRY-746) After revoke select from view, select fails with a confusing error message

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

Colin Ma commented on SENTRY-746:
---------------------------------

[~anneyu], I think the required privileges shouldn't be displayed to user, this information can be included in the log file.
How about show the error message like: User _user1_1_ does not have privileges for _CREATETABLE_ ?

> After revoke select from view, select fails with a confusing error message
> --------------------------------------------------------------------------
>
>                 Key: SENTRY-746
>                 URL: https://issues.apache.org/jira/browse/SENTRY-746
>             Project: Sentry
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.5.0
>            Reporter: Anne Yu
>
> This is an error message issue. If user is revoked select privilege from a view, the failure reason seems confusing.
> {code}
> 2015-05-26 22:20:56,748 (pool-16-thread-3) [INFO - org.apache.sentry.tests.e2e.minisentry.InternalSentrySrv$SentryThriftEvenHandler.deleteContext(InternalSentrySrv.java:83)] Client Disonnected: 47
> FAILED: SemanticException No valid privileges
>  Required privileges for this query: Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=insert;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=select;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=alter;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=create;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=drop;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=index;Server=server1->Db=test_complex_view_database->Table=*->Column=*->action=lock;
> {code}



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