Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33DAB17C9C for ; Thu, 2 Oct 2014 01:35:12 +0000 (UTC) Received: (qmail 15262 invoked by uid 500); 2 Oct 2014 01:35:11 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 15053 invoked by uid 500); 2 Oct 2014 01:35:11 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 15037 invoked by uid 99); 2 Oct 2014 01:35:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2014 01:35:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 38BD7A0B2F4; Thu, 2 Oct 2014 01:35:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mbertozzi@apache.org To: commits@hbase.apache.org Date: Thu, 02 Oct 2014 01:35:12 -0000 Message-Id: <9115ebbc179549af8b9c597430b7e5bc@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] git commit: HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu) HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e00492b2 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e00492b2 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e00492b2 Branch: refs/heads/branch-1 Commit: e00492b2c68b8e09510097a976a4c0d6178c33d4 Parents: 947f09a Author: Matteo Bertozzi Authored: Thu Oct 2 02:31:02 2014 +0100 Committer: Matteo Bertozzi Committed: Thu Oct 2 02:32:25 2014 +0100 ---------------------------------------------------------------------- hbase-shell/src/main/ruby/hbase/table.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e00492b2/hbase-shell/src/main/ruby/hbase/table.rb ---------------------------------------------------------------------- diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb index cc4f2a7..a83c56a 100644 --- a/hbase-shell/src/main/ruby/hbase/table.rb +++ b/hbase-shell/src/main/ruby/hbase/table.rb @@ -169,7 +169,11 @@ EOF # Delete a row def _deleteall_internal(row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {}) - raise ArgumentError, "Row Not Found" if _get_internal(row).nil? + # delete operation doesn't need read permission. Retaining the read check for + # meta table as a part of HBASE-5837. + if is_meta_table? + raise ArgumentError, "Row Not Found" if _get_internal(row).nil? + end temptimestamp = timestamp if temptimestamp.kind_of?(Hash) timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP