ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject git commit: ARGUS-84: Fix to avoid leading "/" in IP addresses shown in Argus audit logs.
Date Fri, 26 Sep 2014 00:05:37 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 290128b9a -> 055d5b062


ARGUS-84: Fix to avoid leading "/" in IP addresses shown in Argus audit
logs.


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

Branch: refs/heads/master
Commit: 055d5b062bad1d4e23f1bceb7d745201c8403992
Parents: 290128b
Author: mneethiraj <mneethiraj@hortonworks.com>
Authored: Thu Sep 25 15:32:04 2014 -0700
Committer: mneethiraj <mneethiraj@hortonworks.com>
Committed: Thu Sep 25 15:32:04 2014 -0700

----------------------------------------------------------------------
 .../hdfs/server/namenode/XaSecureFSPermissionChecker.java       | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/055d5b06/hdfs-agent/src/main/java/org/apache/hadoop/hdfs/server/namenode/XaSecureFSPermissionChecker.java
----------------------------------------------------------------------
diff --git a/hdfs-agent/src/main/java/org/apache/hadoop/hdfs/server/namenode/XaSecureFSPermissionChecker.java
b/hdfs-agent/src/main/java/org/apache/hadoop/hdfs/server/namenode/XaSecureFSPermissionChecker.java
index a5d55c4..a89ed51 100644
--- a/hdfs-agent/src/main/java/org/apache/hadoop/hdfs/server/namenode/XaSecureFSPermissionChecker.java
+++ b/hdfs-agent/src/main/java/org/apache/hadoop/hdfs/server/namenode/XaSecureFSPermissionChecker.java
@@ -276,10 +276,7 @@ public class XaSecureFSPermissionChecker {
 		String ret = null ;
 		InetAddress ip = Server.getRemoteIp() ;
 		if (ip != null) {
-			ret = ip.toString() ;
-		}
-		else {
-			ret = "" ;
+			ret = ip.getHostAddress();
 		}
 		return ret ;
 	}


Mime
View raw message