Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 83567 invoked from network); 22 Mar 2006 20:15:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Mar 2006 20:15:37 -0000 Received: (qmail 48298 invoked by uid 500); 22 Mar 2006 20:15:20 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 48280 invoked by uid 500); 22 Mar 2006 20:15:19 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 48269 invoked by uid 99); 22 Mar 2006 20:15:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 12:15:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.77.29.165] (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2006 12:15:18 -0800 Received: from [192.168.2.160] (c-69-141-1-101.hsd1.pa.comcast.net [69.141.1.101]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id k2MKEvw24189; Wed, 22 Mar 2006 14:14:58 -0600 Message-ID: <4421B03D.1040700@modperlcookbook.org> Date: Wed, 22 Mar 2006 15:14:53 -0500 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Schindl CC: Michael Greenish , modperl@perl.apache.org Subject: Re: external redirect after internal redirect not working References: <20060322135832.32012.qmail@web60417.mail.yahoo.com> <44216DF2.1010104@gmx.at> In-Reply-To: <44216DF2.1010104@gmx.at> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tom Schindl wrote: > This means the when the documentation holds information about situation > where one has to use $r->status(), I would propose that in should add > the use case of filters. > > This has nothing TODO with your problem I only wanted to point out that > not all cases where setting $r->status manually are documented there. you really should never alter $r->status, as apache uses it for internal bookeeping... except for registry scripts :) for registry scripts $r->status is a hack way of telling registry to 'return REDIRECT' since registry itself can't trust the value of the cgi script's return code (since it's an emulation layer). beneath the hood, however, registry discards the $r->status setting and sets it back to whatever it was before registry ran: # handlers shouldn't set $r->status but return it, so we reset the # status after running it my $old_status = $self->{REQ}->status; my $rc = $self->run; my $new_status = $self->{REQ}->status($old_status); return ($rc == Apache2::Const::OK && $old_status != $new_status) ? $new_status : $rc;