Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20645

Fix security_available method in security.rb

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 3.0.0-alpha-1, 2.1.0, 2.0.1
    • None
    • None
    • Reviewed

    Description

      "exists?" method expects parameter tableName to be String but ACL_TABLE_NAME is of org.apache.hadoop.hbase.TableName form.

      raise(ArgumentError, 'DISABLED: Security features are not available') unless \
                exists?(org.apache.hadoop.hbase.security.access.AccessControlLists::ACL_TABLE_NAME.getNameAsString)
      

      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

      ERROR: no method 'valueOf' for arguments (org.apache.hadoop.hbase.TableName) on Java::OrgApacheHadoopHbase::TableName
        available overloads:
          (java.lang.String)
          (byte[])
      

      Attachments

        1. HBASE-20645.patch
          0.8 kB
          Ankit Singhal

        Activity

          People

            ankit@apache.org Ankit Singhal
            ankit@apache.org Ankit Singhal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: