Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 82770 invoked from network); 17 Feb 2006 16:20:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 16:20:37 -0000 Received: (qmail 64407 invoked by uid 500); 17 Feb 2006 16:20:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 64328 invoked by uid 500); 17 Feb 2006 16:20:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 64316 invoked by uid 99); 17 Feb 2006 16:20:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 08:20:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 08:20:11 -0800 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id k1HGJoON006897 for ; Fri, 17 Feb 2006 11:19:50 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id k1HGJn119333 for ; Fri, 17 Feb 2006 11:19:49 -0500 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.4/8.13.4/Submit) id k1HGJnE4014538 for dev@httpd.apache.org; Fri, 17 Feb 2006 16:19:49 GMT Date: Fri, 17 Feb 2006 16:19:49 +0000 From: Joe Orton To: dev@httpd.apache.org Subject: Re: filters that change r->status[_line] Message-ID: <20060217161949.GB21071@redhat.com> Mail-Followup-To: dev@httpd.apache.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Fri, Feb 17, 2006 at 11:03:54AM -0500, Jeff Trawick wrote: > On 2/16/06, Jeff Trawick wrote: ... > > The range support right now isn't smart enough to clear r->status_line > > when it sets a new status code (206, 416). That needs to be fixed to > > avoid breaking range requests for modules which set r->status_line > > even for non-error responses. I'm not sure I understand this. The range filter would only confuse things if some module set r->status_line but *not* r->status, right? (because the range filter only takes effect if r->status == 200). But that would be a rather odd thing for a module to do, surely, or am I missing the point? > *Any filter* that modifies r->status should clear (or set) r->status_line. > > Apache could do something to remove the requirement... > > * if Apache has built-in support for r->status, use apache status line > ("200 OK") > * elsif r->status_line is set, use that ("200 GOODYGOODY") > * else use 500 status line That seems reasonable to me. > (If the filter changed r->status to a code with no built-in support, > the filter had to set r->status_line ANYWAY) > > No idea here what depends on modules being able to override Apache's > status lines... PHP exposes this at least, and suffered from the same problem with an "unknown" r->status requiring r->status_line to be set (though this was fixed PHP side). joe