Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3155

Roles are not accessible for Admin User through REST API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • 3.0.0
    • Ranger
    • None

    Description

      This issue is introduced by RANGER-3135.

      Following is current observation :
      I tried to access GET API http://localhost:6080/service/roles/roles/name/role1 with admin user and it does not return roles which already exist, whereas select * from x_role returns two roles. ie. role1, role2.

      API returns following response :

      <vxResponse>
          <msgDesc>Role with name: role1 does not exist</msgDesc>
          <statusCode>1</statusCode>
      </vxResponse>
      

      With admin user it shows same response regardless of role's existence.

      =================================================================

      Resolution :
      Admin user should get roles when accessed via REST API. This JIRA should also focus on providing fix for RANGER-3135 where GET API /roles/name/{name} should provide proper message in case of the role does not exist. In case of non-admin user, it should deny access to roles.

      Attachments

        1. screenshot-3.png
          16 kB
          rujia
        2. screenshot-2.png
          14 kB
          rujia
        3. screenshot-1.png
          35 kB
          rujia

        Issue Links

          Activity

            People

              maheshbandal Mahesh Hanumant Bandal
              maheshbandal Mahesh Hanumant Bandal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: