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

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

                Author: ASF GitHub Bot
            Created on: 29/Jun/19 00:07
            Start Date: 29/Jun/19 00:07
    Worklog Time Spent: 10m 
      Work Description: anuengineer 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_r298778333
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/security/acl/IAccessAuthorizer.java
 ##########
 @@ -56,11 +56,20 @@ boolean checkAccess(IOzoneObj ozoneObject, RequestContext 
context)
     ALL,
     NONE;
     private static int length = ACLType.values().length;
+    private static ACLType[] vals = ACLType.values();
 
     public static int getNoOfAcls() {
       return length;
     }
 
+    public static ACLType getAclTypeFromOrdinal(int ordinal) {
+      if (ordinal > length - 1) {
 
 Review comment:
   We should perhaps add a not less than zero check also , so we can throw 
exception correctly.
 
----------------------------------------------------------------
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: 269636)
    Time Spent: 4h 40m  (was: 4.5h)

> 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: 4h 40m
>  Remaining Estimate: 0h
>




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

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

Reply via email to