Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-209

Empty list returned when calling listPrivilegesByRoleName

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: db_policy_store, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        1. SENTRY-209.1.patch
          8 kB
          Arun Suresh
        2. SENTRY-209.2.patch
          4 kB
          Arun Suresh
        3. SENTRY-209.3.patch
          5 kB
          Arun Suresh

          Issue Links

            Activity

              People

              • Assignee:
                asuresh Arun Suresh
                Reporter:
                asuresh Arun Suresh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: