You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2013/08/26 22:18:21 UTC
svn commit: r1517683 -
/hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb
Author: mbertozzi
Date: Mon Aug 26 20:18:20 2013
New Revision: 1517683
URL: http://svn.apache.org/r1517683
Log:
HBASE-9340 revoke 'user' throws ArrayIndexOutOfBoundsException
Modified:
hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb
Modified: hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb?rev=1517683&r1=1517682&r2=1517683&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb (original)
+++ hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb Mon Aug 26 20:18:20 2013
@@ -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()