This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit e42863f2ff7ea43e853df8554cc6461e95ec2136
Author: Madhan Neethiraj <mad...@apache.org>
AuthorDate: Tue Sep 26 21:03:47 2023 -0700

    RANGER-4437: incorrect error log from ResourceMatcher.isMatch()
---
 .../org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java
index 77245eae1..e8d97b24b 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/ResourceMatcher.java
@@ -162,6 +162,10 @@ abstract class ResourceMatcher {
                 ret = matchingScope == 
ResourceElementMatchingScope.SELF_OR_PREFIX;
                 break;
 
+            case NONE:
+                ret = false;
+                break;
+
             default:
                 LOG.error("invalid ResourceElementMatchType: {}}", matchType);
 

Reply via email to