Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17040

Namenode web UI should set content type to application/octet-stream when uploading a file

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • ui

    Description

      When uploading a file using WebHDFS the Namenode web UI, it will set the content type to application/x-www-form-urlencoded, as this is the default used by jQuery

      https://github.com/apache/hadoop/blob/160b9fc3c9255024c00d487b7fcdf5ea59a42781/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js#L516

      This causes knox to urlencode the request body so that uploading a CVS file 1,2,3 will result 1%2C2%2C3.

      Instead of application/x-www-form-urlencoded I think the encoding should be set to application/octet-stream.

      Attachments

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              amagyar Attila Magyar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: