hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2705) HttpFS server should check that upload requests have correct content-type
Date Wed, 21 Dec 2011 06:07:30 GMT

    [ https://issues.apache.org/jira/browse/HDFS-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173887#comment-13173887

Hudson commented on HDFS-2705:

Integrated in Hadoop-Common-0.23-Commit #316 (See [https://builds.apache.org/job/Hadoop-Common-0.23-Commit/316/])
    Merge -r 1221615:1221616 from trunk to branch. FIXES: HDFS-2705

tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1221619
Files : 
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/webapp/WEB-INF/web.xml
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/server/TestCheckUploadContentTypeFilter.java
* /hadoop/common/branches/branch-0.23/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

> 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, 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


View raw message