smengcl opened a new pull request, #3298:
URL: https://github.com/apache/ozone/pull/3298

   ## What changes were proposed in this pull request?
   
   Currently if a bucket is created using S3 API via S3 Gateway, the bucket 
owner is always set to "s3g" (whoever S3 Gateway authenticated itself as to the 
Ozone Manager).
   
   ```bash
   $ ozone sh bucket list /tenant1
   [ {
     "metadata" : { },
     "volumeName" : "s3v",
     "name" : "bucket1",
     "storageType" : "DISK",
     "versioning" : false,
     "usedBytes" : 0,
     "usedNamespace" : 0,
     "creationTime" : "2022-04-07T14:51:49.053Z",
     "modificationTime" : "2022-04-07T14:51:49.053Z",
     "quotaInBytes" : -1,
     "quotaInNamespace" : -1,
     "bucketLayout" : "OBJECT_STORE",
     "owner" : "s3g",  <---
     "link" : false
   } ]
   ```
   
   This bucket owner field should be set to the user behind the accessId (short 
name) as this should be the intended behavior.
   
   ```bash
   $ ozone sh bucket list /tenant1
   [ {
   ...
     "bucketLayout" : "OBJECT_STORE",
     "owner" : "hive",  <---
     "link" : false
   } ]
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6574
   
   ## How was this patch tested?
   
   - [x] Add an acceptance test case
   - [ ] All existing tests shall pass


-- 
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