hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [4/6] git commit: Amend HBASE-11438 [Visibility Controller] Support UTF8 character as Visibility Labels; Fix failing tests
Date Thu, 14 Aug 2014 18:45:26 GMT
Amend HBASE-11438 [Visibility Controller] Support UTF8 character as Visibility Labels; Fix
failing tests

String(byte[]) constructor may not select UTF8 aware conversion
depending on environment


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/819b06d6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/819b06d6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/819b06d6

Branch: refs/heads/master
Commit: 819b06d62145cdcda0a755497a1bedff0e68a450
Parents: 1e55bdb
Author: Andrew Purtell <apurtell@apache.org>
Authored: Thu Aug 14 11:43:45 2014 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Thu Aug 14 11:44:09 2014 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/security/visibility/ExpressionParser.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/819b06d6/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/ExpressionParser.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/ExpressionParser.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/ExpressionParser.java
index bb17b48..cfbc97d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/ExpressionParser.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/ExpressionParser.java
@@ -87,7 +87,7 @@ public class ExpressionParser {
           // If we don't do this way then we may have to handle while checking the authorizations.
           // Better to do it here.
           byte[] array = com.google.common.primitives.Bytes.toArray(list);
-          String leafExp = new String(array).trim();
+          String leafExp = Bytes.toString(array).trim();
           if (leafExp.isEmpty()) {
             throw new ParseException("Error parsing expression " + expS + " at column : "
+ index);
           }


Mime
View raw message