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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment