Anytime I access a component that calls $r->internal_redirect, the browser
just hangs indefinitely. I know that Apache2::SubRequest now has the
internal_redirect method but $r is an Apache2::RequestRec object. How can I
get this to work? My internal_redirect component looks like this:
<%init>
my $url = $m->scomp('/lib/url.mhtml', %ARGS);
$r->internal_redirect($url);
$m->auto_send_headers(0);
$m->clear_buffer;
$m->abort;
</%init>
And my handler looks like this:
sub handler {
my $r = shift;
my $apr = Apache2::Request->new($r);
my $args = $ah->request_args($apr);
my $app = MyWebApp->new(apache_req => $r, args => $args);
$ah->interp->set_global('$App' => $app);
return $app->abort_status if $app->aborted;
return $app->redirect_status if $app->redirected;
my $return = eval { $ah->handle_request($r) };
my $err = $@;
$ah->interp->set_global('$App' => undef);
$app->clean_session;
die $err if $err;
return $return;
}
Let me know if you know how I can get those internal_redirects working
again. Thanks.
James
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users