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


The following commit(s) were added to refs/heads/master by this push:
     new 9ad41a7ca RANGER-4398: updated resource ID to start from 1, instead of 
0 - #2
9ad41a7ca is described below

commit 9ad41a7ca62a998f5d8d7a63b89a0301f029c10f
Author: Madhan Neethiraj <mad...@apache.org>
AuthorDate: Thu Sep 21 22:46:01 2023 -0700

    RANGER-4398: updated resource ID to start from 1, instead of 0 - #2
---
 .../java/org/apache/ranger/plugin/util/RangerSecurityZoneHelper.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerSecurityZoneHelper.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerSecurityZoneHelper.java
index 460b55e1e..ffd1693a1 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerSecurityZoneHelper.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerSecurityZoneHelper.java
@@ -187,7 +187,7 @@ public class RangerSecurityZoneHelper {
         private final String                               currentUser;
         private final List<HashMap<String, List<String>>>  resources;
         private final List<RangerSecurityZoneResourceBase> resourcesBaseInfo;
-        private       long                                 nextResourceId = 0;
+        private       long                                 nextResourceId = 1;
 
         public RangerSecurityZoneServiceHelper(RangerSecurityZoneService 
zoneService, String currentUser) {
             this.zoneService = zoneService;

Reply via email to