[
https://issues.apache.org/jira/browse/HDFS-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172554#comment-13172554
]
Hadoop QA commented on HDFS-2705:
---------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12507949/HDFS-2705.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 2 new or modified tests.
-1 javadoc. The javadoc tool appears to have generated 20 warning messages.
+1 javac. The applied patch does not increase the total number of javac
compiler warnings.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
-1 findbugs. The patch appears to cause Findbugs (version 1.3.9) to fail.
+1 release audit. The applied patch does not increase the total number of
release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.hdfs.TestFileAppend2
org.apache.hadoop.hdfs.TestDatanodeDeath
+1 contrib tests. The patch passed contrib unit tests.
Test results:
https://builds.apache.org/job/PreCommit-HDFS-Build/1726//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1726//console
This message is automatically generated.
> 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
>
> Attachments: HDFS-2705.patch, HDFS-2705.patch
>
>
> 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