From d003a429b4d0924220592f1d205763ba6fad69b0 Mon Sep 17 00:00:00 2001 From: mbertozzi Date: Mon, 26 Aug 2013 20:18:21 +0000 Subject: [PATCH] HBASE-9340 revoke 'user' throws ArrayIndexOutOfBoundsException git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1517684 13f79535-47bb-0310-9956-ffa450edef68 --- hbase-server/src/main/ruby/hbase/security.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/ruby/hbase/security.rb b/hbase-server/src/main/ruby/hbase/security.rb index 67f586dbee1..e370ca9671e 100644 --- a/hbase-server/src/main/ruby/hbase/security.rb +++ b/hbase-server/src/main/ruby/hbase/security.rb @@ -141,8 +141,8 @@ module Hbase end else # invoke cp endpoint to perform access controlse - org.apache.hadoop.hbase.protobuf.ProtobufUtil.revoke( - protocol, user) + perm = org.apache.hadoop.hbase.security.access.Permission.new(''.to_java_bytes) + org.apache.hadoop.hbase.protobuf.ProtobufUtil.revoke(protocol, user, perm.getActions()) end ensure meta_table.close()