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

HttpFS server should check that upload requests have correct content-type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1, 2.0.0-alpha
    • Fix Version/s: 0.23.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The append/create requests should require 'application/octet-stream' as content-type when uploading data. This is to prevent the default content-type form-encoded (used as default by some HTTP libraries) to be used or text based content-types to be used.

      If the form-encoded content type is used, then Jersey tries to process the upload stream as parameters
      If a test base content-type is used, HTTP proxies/gateways could do attempt some transcoding on the stream thus corrupting the data.

        Attachments

        1. HDFS-2705.patch
          9 kB
          Alejandro Abdelnur
        2. HDFS-2705.patch
          10 kB
          Alejandro Abdelnur
        3. HDFS-2705.patch
          10 kB
          Alejandro Abdelnur

          Issue Links

            Activity

              People

              • Assignee:
                tucu00 Alejandro Abdelnur
                Reporter:
                tucu00 Alejandro Abdelnur
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: