hadoop-ozone-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adorosz...@apache.org
Subject [hadoop-ozone] branch master updated: HDDS-3132. NPE when create RPC client. (#646)
Date Fri, 06 Mar 2020 17:37:22 GMT
This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 48eb4cc  HDDS-3132. NPE when create RPC client. (#646)
48eb4cc is described below

commit 48eb4cc91e0302ffec6dccfb4d0f089163d1425f
Author: Sammi Chen <sammichen@apache.org>
AuthorDate: Sat Mar 7 01:37:16 2020 +0800

    HDDS-3132. NPE when create RPC client. (#646)
---
 .../main/java/org/apache/hadoop/ozone/security/acl/OzoneAclConfig.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/OzoneAclConfig.java
b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/OzoneAclConfig.java
index 246756e..75dee0b 100644
--- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/OzoneAclConfig.java
+++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/OzoneAclConfig.java
@@ -49,6 +49,9 @@ public class OzoneAclConfig {
   private String groupDefaultRights;
 
   public ACLType getUserDefaultRights() {
+    if (userDefaultRights == null) {
+      return ACLType.ALL;
+    }
     return ACLType.valueOf(userDefaultRights);
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org


Mime
View raw message