Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-526

Duplicate grant same but case sensitive privilges will throw exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      When we duplicate grant case sensitive privileges, it will throw exception

      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'.
      

      Please see my test cases in my patch. Before the patch, the two cases will throw exception.

      Attachments

        1. SENTRY-526.002.patch
          8 kB
          Xiaomeng Huang
        2. SENTRY-526.001.patch
          6 kB
          Xiaomeng Huang

        Issue Links

          Activity

            People

              Huang Xiaomeng Xiaomeng Huang
              Huang Xiaomeng Xiaomeng Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: