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] [Issue Comment Deleted] (SENTRY-343) Privileges query from database support for "With Grant Option"
Date Tue, 22 Jul 2014 01:14:41 GMT

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

Xiaomeng Huang updated SENTRY-343:
----------------------------------

    Comment: was deleted

(was: 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