hbase-commits mailing list archives

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

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


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

Modified: hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java?rev=1582978&r1=1582977&r2=1582978&view=diff
==============================================================================
--- hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
(original)
+++ hbase/branches/0.98/hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/DefaultScanLabelGenerator.java
Sat Mar 29 10:32:00 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