if usersync process add groups with spaces in ranger admin, then to remove a user from a group it calls REST:
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.