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 03:33:33 GMT

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

Mime
View raw message