ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject ranger git commit: RANGER-1422:Ranger Knox Plugin audit doesn't have the access type populated
Date Wed, 08 Mar 2017 16:28:55 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 ffadac96c -> 976142ede


RANGER-1422:Ranger Knox Plugin audit doesn't have the access type populated


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

Branch: refs/heads/ranger-0.7
Commit: 976142edefb2cc09c6178f36dec909fdeffcbe83
Parents: ffadac9
Author: rmani <rmani@hortonworks.com>
Authored: Fri Mar 3 11:27:01 2017 -0800
Committer: rmani <rmani@hortonworks.com>
Committed: Wed Mar 8 08:28:44 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/976142ed/knox-agent/src/main/java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java
----------------------------------------------------------------------
diff --git a/knox-agent/src/main/java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java
b/knox-agent/src/main/java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java
index 871e53a..61604b0 100644
--- a/knox-agent/src/main/java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java
+++ b/knox-agent/src/main/java/org/apache/ranger/authorization/knox/KnoxRangerPlugin.java
@@ -89,6 +89,7 @@ public class KnoxRangerPlugin extends RangerBasePlugin {
 			resource.setValue(ResourceName.Topology, _topology);
 			// build request
 			RangerAccessRequestImpl request = new RangerAccessRequestImpl();
+			request.setAction(AccessType.Allow);
 			request.setAccessType(AccessType.Allow);
 			request.setClientIPAddress(_clientIp);
 			request.setUser(_user);


Mime
View raw message