[ 
https://issues.apache.org/jira/browse/HBASE-12511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14252267#comment-14252267
 ] 

Enis Soztutar edited comment on HBASE-12511 at 12/18/14 10:42 PM:
------------------------------------------------------------------

I've rebased the patch, and changed TestNamespaceCommands to be more extensive 
and a lot more readable. The test implements this logic: 

{code}
createNamespace        : superuser | global(A)
deleteNamespace        : superuser | global(A) | NS(A)
modifyNamespace        : superuser | global(A) | NS(A)
getNamespaceDescriptor : superuser | global(A) | NS(A)
listNamespaces         : All access*
createTable            : superuser | global(C) | NS(C)
grant 
  NS Permission        : superuser | global(A) | NS(A)
revoke 
  NS Permission        : superuser | global(A) | NS(A)
getPerms 
  NS permissions       : superuser | global(A) | NS(A)

* Returned list will only show what you can call getNamespaceDescriptor()
{code}


was (Author: enis):
I've rebased the patch, and changed TestNamespaceCommands to be more extensive 
and a lot more readable. The test implements this logic: 

{code}
createNamespace        : superuser | global(A)
deleteNamespace        : superuser | global(A) | NS(A)
modifyNamespace        : superuser | global(A) | NS(A)
getNamespaceDescriptor : superuser | global(A) | NS(A)
listNamespaces         : All access*
createTable            : superuser | global(C) | NS(C)
grant 
  NS Permission        : superuser | global(A)
revoke 
  NS Permission        : superuser | global(A)
getPerms 
  NS permissions       : superuser | global(A)

* Returned list will only show what you can call getNamespaceDescriptor()
{code}

> namespace permissions - add support from table creation privilege in a 
> namespace 'C'
> ------------------------------------------------------------------------------------
>
>                 Key: HBASE-12511
>                 URL: https://issues.apache.org/jira/browse/HBASE-12511
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Francis Liu
>            Assignee: Huaiyu Zhu
>            Priority: Blocker
>             Fix For: 1.0.0
>
>         Attachments: HBASE-12511.patch, HBASE-12511.patch, HBASE-12511.patch, 
> HBASE-12511.patch, hbase-12511_v5.patch, hbase-12511_v6.patch, 
> hbase-12511_v7.patch
>
>
> As discussed in namespace permission Jira. A user granted a 'C' on a 
> namespace enables a user to create tables within the namespace. 'C' on a 
> namespace does not enable a user to create/drop the namespace.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to