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

SHOW CURRENT ROLE fails if the one of the groups doesn't have any roles granted

    XMLWordPrintableJSON

    Details

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

      Description

      In case of 'SET ROLE' and 'SHOW CURRENT ROLE' sentry client tries to get all the roles available to the current user. The server resolves all the groups that the user belongs to, and then list all roles granted for each of these groups. The problem is that if one of the groups is not granted any roles, then the underlying SentryStore API throws NoSuchObject exception. This is propagated back to the client.
      In cases like 'SET ROLE' and 'SHOW CURRENT ROLE', we need to ignore this exception and continue collecting roles.

        Attachments

        1. SENTRY-315.1.patch
          5 kB
          Prasad Suresh Mujumdar

          Issue Links

            Activity

              People

              • Assignee:
                prasadm Prasad Suresh Mujumdar
                Reporter:
                prasadm Prasad Suresh Mujumdar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: