ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject ranger git commit: RANGER-2262 : Improvement of export to excel from report listing page for Oracle database
Date Tue, 23 Oct 2018 13:58:48 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-1.2 088a9c42d -> c5959f34a


RANGER-2262 : Improvement of export to excel from report listing page for Oracle database


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

Branch: refs/heads/ranger-1.2
Commit: c5959f34ac4921f79f895e33f1d0189271085bde
Parents: 088a9c4
Author: Nikhil P <nikhil.purbhe@gmail.com>
Authored: Mon Oct 22 18:04:07 2018 +0530
Committer: Pradeep <pradeep@apache.org>
Committed: Tue Oct 23 19:28:33 2018 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/ranger/biz/ServiceDBStore.java | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/c5959f34/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
index 5dfe446..55d2d9b 100644
--- a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
+++ b/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
@@ -3588,12 +3588,16 @@ public class ServiceDBStore extends AbstractServiceStore {
 			if (CollectionUtils.isNotEmpty(groups)) {
 				groupNames = groupNames + groups.toString();
 				StringTokenizer groupToken = new StringTokenizer(groupNames, "[]");
-				groupNames = groupToken.nextToken().toString();
+				while(groupToken.hasMoreTokens()) {
+					groupNames = groupToken.nextToken().toString();
+				}
 			}
 			if (CollectionUtils.isNotEmpty(users)) {
 				userNames = userNames + users.toString();
 				StringTokenizer userToken = new StringTokenizer(userNames, "[]");
-				userNames = userToken.nextToken().toString();
+				while(userToken.hasMoreTokens()) {
+					userNames = userToken.nextToken().toString();
+				}
 			}
                         String conditionValue = "";
                         for(RangerPolicyItemCondition conditions : conditionsList ){
@@ -3640,7 +3644,9 @@ public class ServiceDBStore extends AbstractServiceStore {
                 if (CollectionUtils.isNotEmpty(policyLabels)) {
                         policyLabelNames = policyLabelNames + policyLabels.toString();
                         StringTokenizer policyLabelToken = new StringTokenizer(policyLabelNames,
"[]");
-                        policyLabelNames = policyLabelToken.nextToken().toString();
+                        while(policyLabelToken.hasMoreTokens()) {
+                        	policyLabelNames = policyLabelToken.nextToken().toString();
+                        }
                 }
 		cell.setCellValue(policyStatus);
                 cell = row.createCell(8);


Mime
View raw message