You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/03/24 13:31:26 UTC

[GitHub] [hadoop-ozone] smengcl edited a comment on issue #582: HDDS-3047. ObjectStore#listVolumesByUser and CreateVolumeHandler#call should get user's full principal name instead of login name by default

smengcl edited a comment on issue #582: HDDS-3047. ObjectStore#listVolumesByUser and CreateVolumeHandler#call should get user's full principal name instead of login name by default
URL: https://github.com/apache/hadoop-ozone/pull/582#issuecomment-603239297
 
 
   Added robot test to verify the fix.
   
   So without the change in `CreateVolumeHandler`, `Check volume from ozonefs` step will fail because `admin` field is short user name (mapped by `auth_to_local` from `testuser/scm@EXAMPLE.COM` into `root`):
   ```
   Check volume from ozonefs                                             | FAIL |
   '{
     "metadata" : { },
     "name" : "fstest",
     "admin" : "root",
     "owner" : "testuser/scm@EXAMPLE.COM",
     "creationTime" : "2020-03-24T13:24:58.505Z",
     "acls" : [ {
       "type" : "USER",
       "name" : "testuser/scm@EXAMPLE.COM",
       "aclScope" : "ACCESS",
       "aclList" : [ "ALL" ]
     }, {
       "type" : "GROUP",
       "name" : "root",
       "aclScope" : "ACCESS",
       "aclList" : [ "ALL" ]
     } ],
     "quota" : 109951162777600
   }
   {
     "metadata" : { },
     "name" : "fstest2",
     "admin" : "root",
     "owner" : "testuser/scm@EXAMPLE.COM",
     "creationTime" : "2020-03-24T13:25:02.525Z",
     "acls" : [ {
       "type" : "USER",
       "name" : "testuser/scm@EXAMPLE.COM",
       "aclScope" : "ACCESS",
       "aclList" : [ "ALL" ]
     }, {
       "type" : "GROUP",
       "name" : "root",
       "aclScope" : "ACCESS",
       "aclList" : [ "ALL" ]
     } ],
     "quota" : 109951162777600
   }' does not contain '"admin" : "testuser/scm@EXAMPLE.COM"'
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org