song XinCun created HBASE-24176:
-----------------------------------
Summary: user_permission '.*' command failed to show all table
permissions
Key: HBASE-24176
URL: https://issues.apache.org/jira/browse/HBASE-24176
Project: HBase
Issue Type: Bug
Reporter: song XinCun
Assignee: song XinCun
When we grant somebody global permission, then we use '.*' as the argument of
user_permission to show all table permissions, the following exception occurred:
{code:java}
hbase(main):001:0> grant 'user3', 'RW'
Took 0.4144 seconds
hbase(main):002:0> user_permission
User
Namespace,Table,Family,Qualifier:Permission
user2 ,,,: [Permission:
actions=READ,WRITE]
user3 ,,,: [Permission:
actions=READ,WRITE]
hbaseadmin ,,,: [Permission:
actions=READ,WRITE,EXEC,CREATE,ADMIN]
3 row(s)
Took 0.0445 seconds
hbase(main):003:0> user_permission '.*'
User
Namespace,Table,Family,Qualifier:Permission
user1 default,t1,,: [Permission:
actions=READ,WRITE]
hbaseadmin default,t1,,: [Permission:
actions=READ,WRITE,EXEC,CREATE,ADMIN]
ERROR: failed to coerce
org.apache.hadoop.hbase.security.access.GlobalPermission to
org.apache.hadoop.hbase.security.access.TablePermissionFor usage try 'help
"user_permission"'Took 0.0940 seconds
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
