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

Usersync creates logs many errors with $ in the username or groupname

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0, 0.5.1, 0.5.2, 0.5.3
    • Fix Version/s: 0.6.0
    • Component/s: usersync
    • Labels:
      None

      Description

      $ is causing trouble in usersync. Will see Errors of the following:

      31 Oct 2016 23:47:46 ERROR LdapUserGroupBuilder UnixUserSyncThread - sink.addOrUpdateUser failed with exception: POST http://localhost:6080/service/xusers/users/userinfo returned a response status of 404 Not Found, for user: qu8g$s5, groups: [test]
      31 Oct 2016 23:47:46 WARN PolicyMgrUserGroupBuilder UnixUserSyncThread - ERROR: Unable to delete GROUP: test from USER:qu8g$s6
      java.lang.IllegalArgumentException: Illegal group reference
      at java.util.regex.Matcher.appendReplacement(Matcher.java:808)
      at java.util.regex.Matcher.replaceAll(Matcher.java:906)
      at java.lang.String.replaceAll(String.java:2162)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.delXUserGroupInfo(PolicyMgrUserGroupBuilder.java:631)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.delXUserGroupInfo(PolicyMgrUserGroupBuilder.java:616)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.addOrUpdateUser(PolicyMgrUserGroupBuilder.java:332)
      at org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder.getUserGroups(LdapUserGroupBuilder.java:530)
      at org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder.updateSink(LdapUserGroupBuilder.java:470)
      at org.apache.ranger.usergroupsync.UserGroupSync.syncUserGroup(UserGroupSync.java:113)
      at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:87)
      at java.lang.Thread.run(Thread.java:745)
      31 Oct 2016 23:47:47 WARN PolicyMgrUserGroupBuilder UnixUserSyncThread - ERROR: Unable to delete GROUP: test from USER:qu8g$s6
      java.lang.IllegalArgumentException: Illegal group reference
      at java.util.regex.Matcher.appendReplacement(Matcher.java:808)
      at java.util.regex.Matcher.replaceAll(Matcher.java:906)
      at java.lang.String.replaceAll(String.java:2162)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.delXUserGroupInfo(PolicyMgrUserGroupBuilder.java:631)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.delXUserGroupInfo(PolicyMgrUserGroupBuilder.java:616)
      at org.apache.ranger.unixusersync.process.PolicyMgrUserGroupBuilder.addOrUpdateUser(PolicyMgrUserGroupBuilder.java:332)
      at org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder.getUserGroups(LdapUserGroupBuilder.java:530)
      at org.apache.ranger.ldapusersync.process.LdapUserGroupBuilder.updateSink(LdapUserGroupBuilder.java:470)
      at org.apache.ranger.usergroupsync.UserGroupSync.syncUserGroup(UserGroupSync.java:113)
      at org.apache.ranger.usergroupsync.UserGroupSync.run(UserGroupSync.java:87)
      Options

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spolavarapu Sailaja Polavarapu
                Reporter:
                dvillarreal David Villarreal
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: