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

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

                Author: ASF GitHub Bot
            Created on: 03/Oct/19 23:40
            Start Date: 03/Oct/19 23:40
    Worklog Time Spent: 10m 
      Work Description: bharatviswa504 commented on pull request #1528: 
HDDS-2181. Ozone Manager should send correct ACL type in ACL requests…
URL: https://github.com/apache/hadoop/pull/1528#discussion_r331295902
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java
 ##########
 @@ -112,11 +115,20 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
     IOException exception = null;
     OmKeyInfo omKeyInfo = null;
     OMClientResponse omClientResponse = null;
+    boolean bucketLockAcquired = false;
 
     OMMetadataManager omMetadataManager = ozoneManager.getMetadataManager();
     try {
       // check Acl
-      checkKeyAcls(ozoneManager, volumeName, bucketName, keyName,
+      // Native authorizer requires client id as part of keyname to check
+      // write ACL on key. Add client id to key name if ozone native
+      // authorizer is configured.
+      Configuration config = new OzoneConfiguration();
+      String keyNameForAclCheck = keyName;
+      if (OmUtils.isNativeAuthorizerEnabled(config)) {
 
 Review comment:
   Can you add a little explanation of why this special case is needed?
 
----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 323068)
    Time Spent: 4h 40m  (was: 4.5h)

> Ozone Manager should send correct ACL type in ACL requests to Authorizer
> ------------------------------------------------------------------------
>
>                 Key: HDDS-2181
>                 URL: https://issues.apache.org/jira/browse/HDDS-2181
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Manager
>    Affects Versions: 0.4.1
>            Reporter: Vivek Ratnavel Subramanian
>            Assignee: Vivek Ratnavel Subramanian
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h 40m
>  Remaining Estimate: 0h
>
> Currently, Ozone manager sends "WRITE" as ACLType for key create, key delete 
> and bucket create operation. Fix the acl type in all requests to the 
> authorizer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to