You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ankit Singhal (JIRA)" <ji...@apache.org> on 2018/05/25 00:33:00 UTC
[jira] [Created] (HBASE-20645) Fix security_available method in
security.rb
Ankit Singhal created HBASE-20645:
-------------------------------------
Summary: Fix security_available method in security.rb
Key: HBASE-20645
URL: https://issues.apache.org/jira/browse/HBASE-20645
Project: HBase
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Ankit Singhal
Assignee: Ankit Singhal
Attachments: HBASE-20645.patch
"exists?" method expects parameter tableName to be String but ACL_TABLE_NAME is of org.apache.hadoop.hbase.TableName form.
{code}
raise(ArgumentError, 'DISABLED: Security features are not available') unless \
exists?(org.apache.hadoop.hbase.security.access.AccessControlLists::ACL_TABLE_NAME.getNameAsString)
{code}
Impact of the bug:-
So , if a user is running any security related command(revoke,user_permission) and there is an exception(MasterNotRunning) while checking security capabilities, then instead of seeing the underlying exception, user is seeing
{code}
ERROR: no method 'valueOf' for arguments (org.apache.hadoop.hbase.TableName) on Java::OrgApacheHadoopHbase::TableName
available overloads:
(java.lang.String)
(byte[])
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)