sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-209) Empty list returned when calling listPrivilegesByRoleName
Date Mon, 19 May 2014 17:04:38 GMT

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

Arun Suresh updated SENTRY-209:
-------------------------------

    Attachment: SENTRY-209.2.patch

Yup [~prasadm] .. Same situation with the group table as well.. 

Attaching patch :
Modified the mysql/postgres and oracle schemas to remove the generated ID key in the join
tables and adding a composite primary key (like how it is in the derby schema)

> Empty list returned when calling listPrivilegesByRoleName
> ---------------------------------------------------------
>
>                 Key: SENTRY-209
>                 URL: https://issues.apache.org/jira/browse/SENTRY-209
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: db_policy_store, 1.4.0
>            Reporter: Arun Suresh
>         Attachments: SENTRY-209.1.patch, SENTRY-209.2.patch
>
>
> I tested this on a Mysql backend store.. I assume it would be the case for Postgres and
 Oracle too.. if the initSchema is called (and Datanucleus auto create is false)
> Steps to recreate (Using the thrift RPC client):
> 1) Create role : 
> sentryClient.createRole(granter, granterGroups, adminRole);
> 2) Grant table privilege for role (I grant ALL on 100 tables) :
> sentryClient.grantTablePrivilege(granter, granterGroups, adminRole, server, db, "ALL");
> 3) List all privileges for role :
> Set<TSentryPrivilege> listPrivilegesByRoleName = sentryClient.listPrivilegesByRoleName(granter,
granterGroups, adminRole);
> This returns an empty Set.



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

Mime
View raw message