From commits-return-4241-apmail-sentry-commits-archive=sentry.apache.org@sentry.incubator.apache.org Thu Nov 20 03:36:29 2014 Return-Path: X-Original-To: apmail-sentry-commits-archive@minotaur.apache.org Delivered-To: apmail-sentry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5A4110D97 for ; Thu, 20 Nov 2014 03:36:28 +0000 (UTC) Received: (qmail 30737 invoked by uid 500); 20 Nov 2014 03:36:28 -0000 Delivered-To: apmail-sentry-commits-archive@sentry.apache.org Received: (qmail 30677 invoked by uid 500); 20 Nov 2014 03:36:28 -0000 Mailing-List: contact commits-help@sentry.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.incubator.apache.org Delivered-To: mailing list commits@sentry.incubator.apache.org Received: (qmail 30668 invoked by uid 99); 20 Nov 2014 03:36:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 03:36:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Nov 2014 03:36:05 +0000 Received: (qmail 29063 invoked by uid 99); 20 Nov 2014 03:33:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 03:33:33 +0000 Date: Thu, 20 Nov 2014 03:33:33 +0000 (UTC) From: "Arun Suresh (JIRA)" To: commits@sentry.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SENTRY-526) Duplicate grant same but case sensitive privilges will throw exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SENTRY-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218949#comment-14218949 ] Arun Suresh commented on SENTRY-526: ------------------------------------ Thanks for working on this [~Huang Xiaomeng] +1 The patch looks good... Will kick off a Precommit build and commit once it comes back fine.. > Duplicate grant same but case sensitive privilges will throw exception > ---------------------------------------------------------------------- > > Key: SENTRY-526 > URL: https://issues.apache.org/jira/browse/SENTRY-526 > Project: Sentry > Issue Type: Bug > Reporter: Xiaomeng Huang > Assignee: Xiaomeng Huang > Attachments: SENTRY-526.001.patch, SENTRY-526.002.patch > > > When we duplicate grant case sensitive privileges, it will throw exception > {code} > java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'PRIVILEGE_INDEX' defined on 'SENTRY_DB_PRIVILEGE'. > {code} > Please see my test cases in my patch. Before the patch, the two cases will throw exception. -- This message was sent by Atlassian JIRA (v6.3.4#6332)