[ 
https://issues.apache.org/jira/browse/HDDS-1611?focusedWorklogId=268883&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-268883
 ]

ASF GitHub Bot logged work on HDDS-1611:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jun/19 21:56
            Start Date: 27/Jun/19 21:56
    Worklog Time Spent: 10m 
      Work Description: hadoop-yetus commented on pull request #973: HDDS-1611. 
Evaluate ACL on volume bucket key and prefix to authorize access. Contributed 
by Ajay Kumar.
URL: https://github.com/apache/hadoop/pull/973#discussion_r298385934
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/S3BucketManagerImpl.java
 ##########
 @@ -159,13 +162,17 @@ public boolean createOzoneVolumeIfNeeded(String userName)
     boolean newVolumeCreate = true;
     String ozoneVolumeName = formatOzoneVolumeName(userName);
     try {
-      OmVolumeArgs args =
+      OmVolumeArgs.Builder builder =
           OmVolumeArgs.newBuilder()
               .setAdminName(S3_ADMIN_NAME)
               .setOwnerName(userName)
               .setVolume(ozoneVolumeName)
-              .setQuotaInBytes(OzoneConsts.MAX_QUOTA_IN_BYTES)
-              .build();
+              .setQuotaInBytes(OzoneConsts.MAX_QUOTA_IN_BYTES);
+      for (OzoneAcl acl : getDefaultAcls()) {
+        builder.addOzoneAcls(OzoneAcl.toProtobuf(acl));
+      }
 
 Review comment:
   whitespace:end of line
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 268883)
    Time Spent: 3.5h  (was: 3h 20m)

> Evaluate ACL on volume bucket key and prefix to authorize access 
> -----------------------------------------------------------------
>
>                 Key: HDDS-1611
>                 URL: https://issues.apache.org/jira/browse/HDDS-1611
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Xiaoyu Yao
>            Assignee: Ajay Kumar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to