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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0, 0.6.0, 0.7.0
    • Fix Version/s: 0.7.1
    • Component/s: Ranger
    • Labels:
      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

          Activity

            People

            • Assignee:
              pradeep Pradeep Agrawal
              Reporter:
              pradeep Pradeep Agrawal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment