hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2606) webhdfs client filesystem impl must set the content-type header for create/append
Date Mon, 05 Dec 2011 18:24:39 GMT

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

Alejandro Abdelnur commented on HDFS-2606:
------------------------------------------

The thing is that the Jersey is processing eagerly that content-type as form input. 

The correct thing to do is that the server should reject a request that does not have a application/octet-stream
content type. This ensure the data is not modified in transit by proxies. Other content-types
(such as text based ones) don't guarantee this.


                
> webhdfs client filesystem impl must set the content-type header for create/append
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-2606
>                 URL: https://issues.apache.org/jira/browse/HDFS-2606
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>    Affects Versions: 0.24.0, 0.23.1
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>            Priority: Critical
>             Fix For: 0.24.0, 0.23.1
>
>         Attachments: HDFS-2606.patch
>
>
> Currently the content-type header is not being set and for some reason for append it
is being set to the form encoded content type making jersey parameter parsing fail.
> For this and to avoid any kind of proxy transcoding the content-type should be set to
binary.
> {code}
>   conn.setRequestProperty("Content-Type", "application/octet-stream");
> {code}

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

        

Mime
View raw message