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

WebHCat statusdir parameter doesn't properly handle Unicode characters when using relative path

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: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 3.0.0
    • WebHCat
    • None

    Description

      curl http://.....:20111/templeton/v1/hive?user.name=hive -d execute="select count(*) from default.all100k" -d statusdir="/user/hive/düsseldorf7"
      
      curl http://....:20111/templeton/v1/hive?user.name=hive -d execute="select count(*) from default.all100k" -d statusdir="/user/hive/䶴狝A﨩O"
      

      will create statusdirs like so

      /user/hive/düsseldorf-1
      drwxr-xr-x   - hive hive          0 2017-06-01 19:01 /user/hive/düsseldorf7
      drwxr-xr-x   - hive hive          0 2017-06-01 19:08 /user/hive/䶴狝A﨩O
      

      but

      curl http://.....:20111/templeton/v1/hive?user.name=hive -d execute="select count(*) from default.all100k" -d statusdir="düsseldorf7"
      
      curl http://....:20111/templeton/v1/hive?user.name=hive -d execute="select count(*) from default.all100k" -d statusdir="䶴狝A﨩O"
      

      Will create

      drwxr-xr-x   - hive hive          0 2017-06-01 00:27 /user/hive/d%C3%BCsseldorf7
      drwxr-xr-x   - hive hive          0 2017-06-01 22:33 /user/hive/%E4%B6%B4%E7%8B%9DA%EF%A8%A9O
      

      Attachments

        1. HIVE-16808.01.patch
          3 kB
          Eugene Koifman
        2. HIVE-16808.02.patch
          5 kB
          Eugene Koifman
        3. HIVE-16808.03.patch
          4 kB
          Eugene Koifman

        Activity

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

          People

            ekoifman Eugene Koifman Assign to me
            ekoifman Eugene Koifman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment