Repository: incubator-ranger
Updated Branches:
  refs/heads/master 5e1a5dc99 -> 163586917


RANGER-698: fix DB error while creating user {USER} - descr field is null


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/16358691
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/16358691
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/16358691

Branch: refs/heads/master
Commit: 1635869172ab15ddda4b770e02b485e597db763b
Parents: 5e1a5dc
Author: Madhan Neethiraj <mad...@apache.org>
Authored: Tue Sep 20 14:22:52 2016 -0700
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Tue Sep 20 14:22:52 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/ranger/biz/ServiceDBStore.java         | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/16358691/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
----------------------------------------------------------------------
diff --git 
a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
index 72eeb65..8a0e4b7 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
@@ -3826,6 +3826,7 @@ public class ServiceDBStore extends AbstractServiceStore {
        private void createGenericUser() {
                VXUser genericUser = new VXUser();
                genericUser.setName(RangerPolicyEngine.USER_CURRENT);
+               genericUser.setDescription(RangerPolicyEngine.USER_CURRENT);
                xUserService.createXUserWithOutLogin(genericUser);
        }
 }

Reply via email to