sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaomeng Huang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SENTRY-343) Privileges query from database support for "With Grant Option"
Date Mon, 21 Jul 2014 08:10:38 GMT

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

Xiaomeng Huang commented on SENTRY-343:
---------------------------------------

Hi, Dapeng
getChildPrivileges() in sentrystore.
 query
          .setResult("privilegeScope, serverName, dbName, tableName, URI, action, grantorPrincipal");
      Set<MSentryPrivilege> privileges = new HashSet<MSentryPrivilege>();
      for (Object[] privObj : (List<Object[]>) query.execute()) {
        MSentryPrivilege priv = new MSentryPrivilege();
        priv.setPrivilegeScope((String) privObj[0]);
        priv.setServerName((String) privObj[1]);
        priv.setDbName((String) privObj[2]);
        priv.setTableName((String) privObj[3]);
        priv.setURI((String) privObj[4]);
        priv.setAction((String) privObj[5]);
        priv.setGrantorPrincipal((String) privObj[6]);
        priv.setPrivilegeName(constructPrivilegeName(convertToTSentryPrivilege(priv)));
        privileges.add(priv);
      }
I think you should add grantOption to the privilege

> Privileges query from database support for "With Grant Option"
> --------------------------------------------------------------
>
>                 Key: SENTRY-343
>                 URL: https://issues.apache.org/jira/browse/SENTRY-343
>             Project: Sentry
>          Issue Type: Sub-task
>            Reporter: Dapeng Sun
>            Assignee: Dapeng Sun
>         Attachments: SENTRY-343.patch, SENTRY-343_002.patch
>
>
> After the sentry database schema changed, privileges query should add grantOption  support.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message