[
https://issues.apache.org/jira/browse/HBASE-15877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
li xiang updated HBASE-15877:
-----------------------------
Description:
Re-create:
1. Get into hbase shell
2. create_namespace 'ns1'
3. grant 'u1', 'RWX', '@ns1'
4. create 'ns1:t1', 'cf11'
5. grant 'u2', 'RC', 'ns1:t1'
6. user_permission 'ns1:t1'
The output of user_permission only lists u2
{code}
hbase(main):010:0* user_permission 'ns1:t1'
User Namespace,Table,Family,Qualifier:Permission
u2 ns1,ns1:t1,,: [Permission: actions=READ,CREATE]
(code}
u1 should be listed because t1 belongs to ns1, and u1 has the permissions to
access ns1
was:
Re-create:
1. Get into hbase shell
2. create_namespace 'ns1'
3. grant 'u1', 'RWX', '@ns1'
4. create 'ns1:t1', 'cf11'
5. grant 'u2', 'RC', 'ns1:t1'
6. user_permission 'ns1:t1'
The output of user_permission only lists u2
{code}
hbase(main):010:0* user_permission 'ns1:t1'
User Namespace,Table,Family,Qualifier:Permission
u2 ns1,ns1:t1,,: [Permission: actions=READ,CREATE]
...
(code}
u1 should be listed because t1 belongs to ns1, and u1 has the permissions to
access ns1
> user_permission does not list the permissions from namespace the table
> belongs to
> ---------------------------------------------------------------------------------
>
> Key: HBASE-15877
> URL: https://issues.apache.org/jira/browse/HBASE-15877
> Project: HBase
> Issue Type: Bug
> Components: security
> Affects Versions: 1.2.1
> Reporter: li xiang
> Priority: Minor
>
> Re-create:
> 1. Get into hbase shell
> 2. create_namespace 'ns1'
> 3. grant 'u1', 'RWX', '@ns1'
> 4. create 'ns1:t1', 'cf11'
> 5. grant 'u2', 'RC', 'ns1:t1'
> 6. user_permission 'ns1:t1'
> The output of user_permission only lists u2
> {code}
> hbase(main):010:0* user_permission 'ns1:t1'
> User Namespace,Table,Family,Qualifier:Permission
>
> u2 ns1,ns1:t1,,: [Permission: actions=READ,CREATE]
>
> (code}
> u1 should be listed because t1 belongs to ns1, and u1 has the permissions to
> access ns1
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)