You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "David Villarreal (JIRA)" <ji...@apache.org> on 2016/11/28 22:08:58 UTC

[jira] [Created] (RANGER-1235) Usersync creates logs many errors with $ in the username or groupname

David Villarreal created RANGER-1235:
----------------------------------------

             Summary: Usersync creates logs many errors with $ in the username or groupname
                 Key: RANGER-1235
                 URL: https://issues.apache.org/jira/browse/RANGER-1235
             Project: Ranger
          Issue Type: Bug
          Components: usersync
    Affects Versions: 0.6.2
            Reporter: David Villarreal


$ 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)