ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ab...@apache.org
Subject ranger git commit: RANGER-2045: Hive table columns with no explicit allow policy are listed with 'desc table' command - fix regression
Date Sat, 07 Apr 2018 18:04:09 GMT
Repository: ranger
Updated Branches:
  refs/heads/master e65a3e812 -> fe854a061


RANGER-2045: Hive table columns with no explicit allow policy are listed with 'desc table'
command - fix regression


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

Branch: refs/heads/master
Commit: fe854a061e0948f27437fb5d9e6f24f0cac0f372
Parents: e65a3e8
Author: Abhay Kulkarni <akulkarni@hortonworks.com>
Authored: Sat Apr 7 09:38:54 2018 -0700
Committer: Abhay Kulkarni <akulkarni@hortonworks.com>
Committed: Sat Apr 7 09:38:54 2018 -0700

----------------------------------------------------------------------
 .../plugin/policyevaluator/RangerDefaultPolicyEvaluator.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/fe854a06/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
----------------------------------------------------------------------
diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
index 56dc0f6..c539cc0 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
@@ -216,7 +216,7 @@ public class RangerDefaultPolicyEvaluator extends RangerAbstractPolicyEvaluator
 					if (request.isAccessTypeAny()) {
 						isMatched = matchType != RangerPolicyResourceMatcher.MatchType.NONE;
 					} else if (request.getResourceMatchingScope() == RangerAccessRequest.ResourceMatchingScope.SELF_OR_DESCENDANTS)
{
-						isMatched = matchType == RangerPolicyResourceMatcher.MatchType.SELF || matchType ==
RangerPolicyResourceMatcher.MatchType.DESCENDANT;
+						isMatched = matchType != RangerPolicyResourceMatcher.MatchType.NONE;
 					} else {
 						isMatched = matchType == RangerPolicyResourceMatcher.MatchType.SELF || matchType ==
RangerPolicyResourceMatcher.MatchType.ANCESTOR;
 					}


Mime
View raw message