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:27 UTC

svn commit: r1517666 - /hbase/branches/0.95/hbase-server/src/main/ruby/hbase/security.rb

Author: mbertozzi
Date: Mon Aug 26 19:57:27 2013
New Revision: 1517666

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

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=1517666&r1=1517665&r2=1517666&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 19:57:27 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