You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2022/01/04 07:39:24 UTC

[ranger] branch ranger-2.3 updated: RANGER-3571: Fixed a bug in GrantRevokeRoleRequest.toString()

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

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


The following commit(s) were added to refs/heads/ranger-2.3 by this push:
     new 6116b41  RANGER-3571: Fixed a bug in GrantRevokeRoleRequest.toString()
6116b41 is described below

commit 6116b415009edf0a48df9f59b66bf85f64caea23
Author: AlexaYuqinD <31...@users.noreply.github.com>
AuthorDate: Mon Jan 3 20:47:09 2022 -0800

    RANGER-3571: Fixed a bug in GrantRevokeRoleRequest.toString()
    
    Fixed a bug in GrantRevokeRoleRequest.java
    
    Signed-off-by: Madhan Neethiraj <ma...@apache.org>
    (cherry picked from commit 9a034ab87ae6d8c5a80d1e35dd0e0fd13a9a8dc2)
---
 .../main/java/org/apache/ranger/plugin/util/GrantRevokeRoleRequest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/util/GrantRevokeRoleRequest.java b/agents-common/src/main/java/org/apache/ranger/plugin/util/GrantRevokeRoleRequest.java
index d5bc57d..04b4e72 100644
--- a/agents-common/src/main/java/org/apache/ranger/plugin/util/GrantRevokeRoleRequest.java
+++ b/agents-common/src/main/java/org/apache/ranger/plugin/util/GrantRevokeRoleRequest.java
@@ -275,7 +275,7 @@ public class GrantRevokeRoleRequest implements Serializable {
 		sb.append("} ");
 
 		sb.append("groups={");
-		if(roles != null) {
+		if(groups != null) {
 			for(String group : groups) {
 				sb.append(group).append(" ");
 			}