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 21:57:26 UTC

svn commit: r1517665 - /hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb

Author: mbertozzi
Date: Mon Aug 26 19:57:25 2013
New Revision: 1517665

URL: http://svn.apache.org/r1517665
Log:
HBASE-9337 shell 'user_permission' throws no method 'toStringBinary' for (o.a.h.h.TableName)

Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb?rev=1517665&r1=1517664&r2=1517665&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/security.rb Mon Aug 26 19:57:25 2013
@@ -187,7 +187,7 @@ module Hbase
       count  = 0
       perms.each do |value|
         user_name = String.from_java_bytes(value.getUser)
-        table = (value.getTable != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getTable) : ''
+        table = (value.getTable != nil) ? value.getTable.toString() : ''
         family = (value.getFamily != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getFamily) : ''
         qualifier = (value.getQualifier != nil) ? org.apache.hadoop.hbase.util.Bytes::toStringBinary(value.getQualifier) : ''
 
@@ -201,7 +201,7 @@ module Hbase
         end
         count += 1
       end
-      
+
       return ((block_given?) ? count : res)
     end