xichen01 commented on PR #4188:
URL: https://github.com/apache/ozone/pull/4188#issuecomment-1956382067

   > > @smengcl @errose28 Is it sufficient for S3 to use the AWS `Access ID` 
directly as the `Owner` of the Object (one-to-one `Access ID` and `Owner` of 
the Object)
   > 
   > @xichen01 Uh preferrably not. `accessId` should be mapped to a user name 
(similar idea to `ugi.getShortUserName()`) before it can be used in the `owner` 
field:
   > 
   > 
https://github.com/apache/ozone/blob/cce2f969a85323441c476aaeaf27d45b081b0c2f/hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java#L417-L420
   
   @sumitagrawl. Thank for your suggestion.
   How to map the `accessId` to a `user name`. Are you saying we should use 
`Displayname` as the `owner` of the Ozone key?
   The AWS S3 Owner is the `ID` and `Displayname`, while the Ozone Owner is 
simply a string.
   ```java
   public class S3Owner {
   
     public static final S3Owner
         NOT_SUPPORTED_OWNER = new S3Owner("NOT-SUPPORTED", "Not Supported");
   
     @XmlElement(name = "DisplayName")
     private String displayName;
   
     @XmlElement(name = "ID")
     private String id;
   
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to