sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SENTRY-526) Duplicate grant same but case sensitive privilges will throw exception
Date Thu, 20 Nov 2014 05:56:33 GMT

    [ https://issues.apache.org/jira/browse/SENTRY-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14219045#comment-14219045
] 

Arun Suresh commented on SENTRY-526:
------------------------------------

Committed to master

Pre-commit build : https://builds.apache.org/view/S-Z/view/Sentry/job/PreCommit-SENTRY-Build/39/

Commit message :

Repository: incubator-sentry
Updated Branches:
  refs/heads/master fa26a0b4f -> a8c878ab5

SENTRY-526: Fix SentryStore so that Duplicate grant with same privilge but different case
is handled correctly

Branch: refs/heads/master
Commit: a8c878ab5f1b9fbfb28f7d985946913b155ebd64
Parents: fa26a0b
Author: Arun Suresh <asuresh@cloudera.com>
Authored: Wed Nov 19 21:53:21 2014 -0800
Committer: Arun Suresh <asuresh@cloudera.com>
Committed: Wed Nov 19 21:53:50 2014 -0800



> 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)

Mime
View raw message