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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 3.0.0
    • Component/s: WebHCat
    • Labels:
      None
    • Target Version/s:

      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.03.patch
          4 kB
          Eugene Koifman
        2. HIVE-16808.02.patch
          5 kB
          Eugene Koifman
        3. HIVE-16808.01.patch
          3 kB
          Eugene Koifman

          Activity

            People

            • Assignee:
              ekoifman Eugene Koifman
              Reporter:
              ekoifman Eugene Koifman
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: