[ https://issues.apache.org/jira/browse/HDFS-6217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978922#comment-13978922 ]
Kihwal Lee commented on HDFS-6217: ---------------------------------- I see. Even if we change {{PutOpParam}} and {{PostOpParam}}, conditionals on op type are still needed... I am now convinced the proposed patch is best we can do without requiring major changes. +1 > Webhdfs PUT operations may not work via a http proxy > ---------------------------------------------------- > > Key: HDFS-6217 > URL: https://issues.apache.org/jira/browse/HDFS-6217 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: webhdfs > Affects Versions: 2.0.0-alpha, 3.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-6217.patch > > > Most of webhdfs's PUT operations have no message body. The HTTP/1.1 spec is > fuzzy in how PUT requests with no body should be handled. If the request > does not specify chunking or Content-Length, the server _may_ consider the > request to have no body. However, popular proxies such as Apache Traffic > Server will reject PUT requests with no body unless Content-Length: 0 is > specified. -- This message was sent by Atlassian JIRA (v6.2#6252)