sentry-commits mailing list archives

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

     [ https://issues.apache.org/jira/browse/SENTRY-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiaomeng Huang updated SENTRY-526:
----------------------------------
    Attachment: SENTRY-526.002.patch

> 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