Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-338

Sentry policy import tool adds non-compatible comments to grant privilege statements

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      The policy file to SQL tool generates grant statements with inline comments prefixed with '#'.
      For example,

      GRANT ALL ON TABLE tab1 TO ROLE junior_analyst_role; # server=server1, database=default
      

      Beeline doesn't support that syntax and fails to execute the script.

        Attachments

        1. SENTRY-338.patch
          2 kB
          Ashish Singh

          Issue Links

            Activity

              People

              • Assignee:
                singhashish Ashish Singh
                Reporter:
                prasadm Prasad Suresh Mujumdar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: