You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "whbing (via GitHub)" <gi...@apache.org> on 2023/05/20 16:02:58 UTC

[GitHub] [ozone] whbing commented on a diff in pull request #4738: HDDS-8653. Let directory inherit bucket default ACLs

whbing commented on code in PR #4738:
URL: https://github.com/apache/ozone/pull/4738#discussion_r1199629346


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMDirectoryCreateRequestWithFSO.java:
##########
@@ -172,7 +171,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
             omPathInfo.getLeafNodeName(),
             keyArgs, omPathInfo.getLeafNodeObjectId(),
             omPathInfo.getLastKnownParentId(), trxnLogIndex,
-            OzoneAclUtil.fromProtobuf(keyArgs.getAclsList()));
+            inheritDefaultAcls(keyArgs, omBucketInfo.getAcls()));

Review Comment:
   > If ancestor directory exists, the new directories should inherit from that ancestor instead of the bucket. I think `omPathInfo` has the information about the ancestor or bucket in both cases.
   
   @adoroszlai  Thanks for suggestion. I have a little doubt. If ancestor directory exists, will `both DEFAULT and ACCESS ACLs` be inherited, or only the `DEFAULT acl` will be inherited?
   
   
   
   
   
   
   
   
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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