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 06:33:29 GMT
Repository: ranger
Updated Branches:
  refs/heads/master 70ca2df63 -> f35c8bd54


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/f35c8bd5
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/f35c8bd5
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/f35c8bd5

Branch: refs/heads/master
Commit: f35c8bd546e6d82c605d9f58caa12d3f0bde9e8a
Parents: 70ca2df
Author: rmani <rmani@hortonworks.com>
Authored: Fri Mar 3 11:27:01 2017 -0800
Committer: rmani <rmani@hortonworks.com>
Committed: Tue Mar 7 22:32:16 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/f35c8bd5/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