Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB4F87E48 for ; Wed, 30 Nov 2011 00:18:03 +0000 (UTC) Received: (qmail 79336 invoked by uid 500); 30 Nov 2011 00:18:03 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 79296 invoked by uid 500); 30 Nov 2011 00:18:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 79288 invoked by uid 99); 30 Nov 2011 00:18:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 00:18:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 00:18:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4C2F8A7C68 for ; Wed, 30 Nov 2011 00:17:40 +0000 (UTC) Date: Wed, 30 Nov 2011 00:17:40 +0000 (UTC) From: "Alejandro Abdelnur (Updated) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <436908874.24056.1322612260313.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1008898946.24043.1322612139926.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-2606) webhdfs client filesystem impl must set the content-type header for create/append MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alejandro Abdelnur updated HDFS-2606: ------------------------------------- Status: Patch Available (was: Open) > 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