Return-Path: Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: (qmail 81294 invoked from network); 13 Nov 2009 05:44:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 05:44:11 -0000 Received: (qmail 94103 invoked by uid 500); 13 Nov 2009 05:44:10 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 94012 invoked by uid 500); 13 Nov 2009 05:44:10 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 94004 invoked by uid 99); 13 Nov 2009 05:44:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 05:44:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 05:44:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AF5C234C1EF for ; Thu, 12 Nov 2009 21:43:39 -0800 (PST) Message-ID: <434189176.1258091019619.JavaMail.jira@brutus> Date: Fri, 13 Nov 2009 05:43:39 +0000 (UTC) From: "Asankha C. Perera (JIRA)" To: dev@synapse.apache.org Subject: [jira] Reopened: (SYNAPSE-587) NHTTP Transport Does Not Handle Responses With No Content-Type Header Properly In-Reply-To: <853758553.1254383063592.JavaMail.jira@brutus> 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/SYNAPSE-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Asankha C. Perera reopened SYNAPSE-587: --------------------------------------- Hi Hiranya This fix has broken the raw HTTP support Synapse had.. The HTTP spec talks only about "message containing an entity-body..." but there are responses etc that does not contain an entity body, in which case this creates a serious bug as shown in http://markmail.org/thread/o33ypagpv7txikrb Could you fix this back to ensure that REST/POX and raw HTTP support will work as before? thanks asankha > NHTTP Transport Does Not Handle Responses With No Content-Type Header Properly > ------------------------------------------------------------------------------ > > Key: SYNAPSE-587 > URL: https://issues.apache.org/jira/browse/SYNAPSE-587 > Project: Synapse > Issue Type: Bug > Components: Transports > Affects Versions: 1.2, NIGHTLY > Environment: Any > Reporter: Hiranya Jayathilaka > Assignee: Hiranya Jayathilaka > Fix For: 1.3 > > > Currently the NHTTP transport would assume an empty payload for response messages which do not have the HTTP Content-Type header. According to the HTTP/1.1 specification this should be handled as follows. > > Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream". > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org