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

User/Group search is failing due to encoding issues

    XMLWordPrintableJSON

Details

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

    Description

      if usersync process add groups with spaces in ranger admin, then to remove a user from a group it calls REST:

      /group/{groupName}/user/{userName}

      In this REST call if a group name contains spaces then URLEncoder.encode(s, "UTF-8") method replace these spaces with + symbol and request is forwarded to ranger-admin. Whenever Ranger receives group name with + character (rather spaces) it tries to search the received group name in db but fails to find any rows as the group name with '+' character does not exist. At Ranger admin end this process is considered as a failure of the request and ranger-admin sends the error message to the log file.
      Expected : During encoding usersync process should encode spaces to %20 so that ranger-admin can decode the %20 code to spaces.

      Attachments

        1. RANGER-1276-1.patch
          1.0 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: