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

User role get deleted from table when he tries to update his role to a restricted role

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0, 0.6.0, 0.7.0
    • 0.7.1
    • Ranger
    • None

    Description

      Problem Statement : User role get deleted from x_portal_user_role table and login does not work when he tries to update his role to a restricted role for his profile by using Post method of API /service/users/ .
      User having role 'ROLE_SYS_ADMIN' can change his role to 'ROLE_USER'
      User having role 'ROLE_KEY_ADMIN' can change his role to 'ROLE_USER'
      User having role 'ROLE_USER' should not able to change his role to any other role.
      Proposed solution : User's new requested role should be validated and if requested role is invalid then server should return error message.

      Attachments

        1. RANGER-1409-1.patch
          2 kB
          Pradeep Agrawal

        Issue Links

          Activity

            People

              pradeep Pradeep Agrawal
              pradeep Pradeep Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: