Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11498

HIVE Authorization v2 should not check permission for dummy entity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0, 2.0.0
    • Fix Version/s: 1.2.1, 1.3.0, 2.0.0
    • Component/s: Authorization
    • Labels:
      None

      Description

      The queries like SELECT 1+1;, The target table and database will set to _dummy_database _dummy_table, authorization should skip these kinds of databases or tables.

      For authz v1. it has skip them.

      eg1. Source code at github

      for (WriteEntity write : outputs) {
              if (write.isDummy() || write.isPathType()) {
                continue;
              }
      

      eg2. Source code at github

      for (ReadEntity read : inputs) {
              if (read.isDummy() || read.isPathType()) {
                continue;
              }
             ...
              }
      

      ...

      This patch will fix authz v2.

        Attachments

        1. HIVE-11498.003.patch
          2 kB
          Dapeng Sun
        2. HIVE-11498.002.patch
          2 kB
          Dapeng Sun
        3. HIVE-11498.001.patch
          3 kB
          Dapeng Sun

          Issue Links

            Activity

              People

              • Assignee:
                dapengsun Dapeng Sun
                Reporter:
                dapengsun Dapeng Sun
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: