hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1582979 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
Date Sat, 29 Mar 2014 10:32:56 GMT
Author: tedyu
Date: Sat Mar 29 10:32:56 2014
New Revision: 1582979

URL: http://svn.apache.org/r1582979
Log:
HBASE-10863 Scan doesn't return rows for user who has authorization by visibility label


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java?rev=1582979&r1=1582978&r2=1582979&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
Sat Mar 29 10:32:56 2014
@@ -58,7 +58,7 @@ public class DefaultScanLabelGenerator i
   public List<String> getLabels(User user, Authorizations authorizations) {
     if (authorizations != null) {
       List<String> labels = authorizations.getLabels();
-      String userName = user.getName();
+      String userName = user.getShortName();
       List<String> auths = this.labelsManager.getAuths(userName);
       return dropLabelsNotInUserAuths(labels, auths, userName);
     }



Mime
View raw message