HttpFS server should check that upload requests have correct content-type -------------------------------------------------------------------------
Key: HDFS-2705 URL: https://issues.apache.org/jira/browse/HDFS-2705 Project: Hadoop HDFS Issue Type: Bug Affects Versions: 0.24.0, 0.23.1 Reporter: Alejandro Abdelnur Assignee: Alejandro Abdelnur Fix For: 0.24.0, 0.23.1 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira