Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79B4891B8 for ; Tue, 27 Sep 2011 23:55:09 +0000 (UTC) Received: (qmail 94827 invoked by uid 500); 27 Sep 2011 23:55:09 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 94790 invoked by uid 500); 27 Sep 2011 23:55:09 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 94776 invoked by uid 99); 27 Sep 2011 23:55:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 23:55:09 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Tue, 27 Sep 2011 23:55:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 786CB289C1E for ; Tue, 27 Sep 2011 23:54:45 +0000 (UTC) Date: Tue, 27 Sep 2011 23:54:45 +0000 (UTC) From: "David Lutterkort (Resolved) (JIRA)" To: deltacloud-dev@incubator.apache.org Message-ID: <752934874.1720.1317167685495.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <979216499.657.1297992312156.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DTACLOUD-18) Missing Host header not handled 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/DTACLOUD-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Lutterkort resolved DTACLOUD-18. -------------------------------------- Resolution: Fixed Fixed with the patch from dims, svn r1176662 > Missing Host header not handled > ------------------------------- > > Key: DTACLOUD-18 > URL: https://issues.apache.org/jira/browse/DTACLOUD-18 > Project: DeltaCloud > Issue Type: Bug > Reporter: David Lutterkort > Assignee: David Lutterkort > Priority: Minor > > According to HTTP 1.1[1], requests must have a Host header. If the header is missing, the response should be a '400 Bad request' > Right now, we carry on and produce improper results, since URL's embedded in responses either do not contain the port number, or have port number 0. Example: > > curl -H 'Host:' http://localhost:3001/api > > > > ... > > Thanks to Lili Nader for persisting in getting to the bottom of this. > [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html -- 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