Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D311D18B40 for ; Wed, 8 Jul 2015 10:34:04 +0000 (UTC) Received: (qmail 92988 invoked by uid 500); 8 Jul 2015 10:34:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 92964 invoked by uid 500); 8 Jul 2015 10:34:04 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 92954 invoked by uid 99); 8 Jul 2015 10:34:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2015 10:34:04 +0000 Date: Wed, 8 Jul 2015 10:34:04 +0000 (UTC) From: "Mariusz Strzelecki (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-11205) Unable to create table being in read-only database 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/HIVE-11205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariusz Strzelecki updated HIVE-11205: -------------------------------------- Affects Version/s: 1.2.1 > Unable to create table being in read-only database > -------------------------------------------------- > > Key: HIVE-11205 > URL: https://issues.apache.org/jira/browse/HIVE-11205 > Project: Hive > Issue Type: Bug > Affects Versions: 1.2.0, 1.2.1 > Reporter: Mariusz Strzelecki > Assignee: Mariusz Strzelecki > Attachments: HIVE-11205.patch > > > With enabled Legacy Authorization I cannot create table being in database that is read-only to me. For example: > {noformat} > > use ro_db; > No rows affected (1.222 seconds) > > create table rw_db.test (s string); > Error: Error while compiling statement: No privilege 'Create' found for outputs { database:ro_db} (state=42000,code=403) > > use rw_db; > No rows affected (0.407 seconds) > > create table rw_db.test (s string); > No rows affected (2.216 seconds) > {noformat} > This happens because doAuthorization method checks write permissions against current database and then againts output database. Check for current database is not needed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)