Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7348A17A71 for ; Mon, 20 Oct 2014 23:31:34 +0000 (UTC) Received: (qmail 60914 invoked by uid 500); 20 Oct 2014 23:31:34 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 60870 invoked by uid 500); 20 Oct 2014 23:31:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 60859 invoked by uid 99); 20 Oct 2014 23:31:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2014 23:31:34 +0000 Date: Mon, 20 Oct 2014 23:31:34 +0000 (UTC) From: "Jerry He (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12302) VisibilityClient getAuths does not propagate remote service exception correctly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-12302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14177649#comment-14177649 ] Jerry He commented on HBASE-12302: ---------------------------------- Attached a patch that seems to fix the problem. After the patch: {code} hbase(main):001:0> get_auths 'user2' ERROR: org.apache.hadoop.hbase.security.AccessDeniedException: User 'biadmin is not authorized to perform this action. {code} The java client also propagates the correct exception. > VisibilityClient getAuths does not propagate remote service exception correctly > ------------------------------------------------------------------------------- > > Key: HBASE-12302 > URL: https://issues.apache.org/jira/browse/HBASE-12302 > Project: HBase > Issue Type: Bug > Components: Client, security > Affects Versions: 2.0.0, 0.98.7 > Reporter: Jerry He > Assignee: Jerry He > Priority: Minor > Fix For: 2.0.0, 0.98.8 > > Attachments: HBASE-12302-master.patch > > > From hbase shell, run 'get_auths' with a non-superuser: > {code} > hbase(main):002:0> get_auths 'user2' > ERROR: > Here is some help for this command: > Get the visibility labels set for a particular user > Syntax : get_auths 'user1' > For example: > hbase> get_auths 'user1' > {code} > We should expect a AccessDeniedException from the server. > From a Java client, AccessDeniedException was dumped out, but the end exception is > {code} > java.util.NoSuchElementException > at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1124) > at java.util.TreeMap$ValueIterator.next(TreeMap.java:1171) > at org.apache.hadoop.hbase.security.visibility.VisibilityClient.getAuths(VisibilityClient.java:148) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)