You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2020/03/06 17:37:22 UTC
[hadoop-ozone] branch master updated: HDDS-3132. NPE when create
RPC client. (#646)
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 <sa...@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