ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v..@apache.org
Subject incubator-ranger git commit: RANGER-778: Fix user update issue
Date Thu, 10 Dec 2015 18:22:57 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master 59c0e70c2 -> bb81459e0


RANGER-778: Fix user update issue


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

Branch: refs/heads/master
Commit: bb81459e0f17b1d344541d956e1ab37ae2c14e3a
Parents: 59c0e70
Author: Velmurugan Periasamy <vel@apache.org>
Authored: Thu Dec 10 13:22:37 2015 -0500
Committer: Velmurugan Periasamy <vel@apache.org>
Committed: Thu Dec 10 13:22:37 2015 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/ranger/biz/RangerBizUtil.java        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/bb81459e/security-admin/src/main/java/org/apache/ranger/biz/RangerBizUtil.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/biz/RangerBizUtil.java b/security-admin/src/main/java/org/apache/ranger/biz/RangerBizUtil.java
index 730c087..a672c15 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/RangerBizUtil.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/RangerBizUtil.java
@@ -1335,8 +1335,7 @@ public class RangerBizUtil {
 
 		for (XXTrxLog xTrxLog : trxLogList) {
 			if (xTrxLog != null) {
-				if ("Password".equalsIgnoreCase(xTrxLog.getAttributeName()
-						.trim())) {
+				if ("Password".equalsIgnoreCase(StringUtil.trim(xTrxLog.getAttributeName()))) {
 					if (xTrxLog.getPreviousValue() != null
 							&& !xTrxLog.getPreviousValue().trim().isEmpty()
 							&& !"null".equalsIgnoreCase(xTrxLog


Mime
View raw message