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

hive.security.command.whitelist doesn't work for 'reload function'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • Authorization
    • None

    Description

      Right now the 'reload function' is handled specially in HiveCommand#find:

              return null;
            } else if(command.length > 1 && "reload".equalsIgnoreCase(command[0])
                && "function".equalsIgnoreCase(command[1])) {
              //special handling for SQL "reload function"
              return null;
            }
      

      However, this means the hive.security.command.whitelist doesn't work for the command. It's better to first do the privilege check and then the rest.

      Attachments

        1. HIVE-15252.1.patch
          2 kB
          Chao Sun

        Issue Links

          Activity

            People

              csun Chao Sun
              csun Chao Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: