[Catalyst] "Internal redirect"

Sean Davis sdavis2 at mail.nih.gov
Mon Jan 9 15:06:00 CET 2006


I have a controller method (do_edit) where I do this (catalyst 5.60, macos
X):

$c->log->debug('Forwarding to edit for invalid input: ');

$c->req->action(undef);

$c->forward('/dog/edit');

$c->log->debug('Forwarding to edit for invalid input: ');

However, in my log, I get what is shown below.  I do not end up with the
output of /dog/edit, as I expected.  Instead, I get the output for my "list"
method.  More importantly, in my log, you can see that I actually get to the
second "Forwarding to edit for invalid input:" code.  Why is this?  Why does
the "/dog/edit" not take over at this point?

Thanks,
Sean


[Mon Jan  9 08:55:19 2006] [catalyst] [debug] "POST" request for
"dog/do_edit" from "127.0.0.1"
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] Path is "dog/do_edit"
[Mon Jan  9 08:55:19 2006] [catalyst] [info] 0
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] validity: 0
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] Forwarding to edit for invalid
input: 
[Mon Jan  9 08:55:19 2006] [catalyst] [info]
[Mon Jan  9 08:55:19 2006] [catalyst] [info]
Rose::HTML::Form::Field::Submit=HASH(0x1d63e4c)
Rose::HTML::Form::Field::DateTime::Split::MonthDayYear=HASH(0x1d62c60)
Rose::HTML::Form::Field::Text=HASH(0x1d62c84)
Rose::HTML::Form::Field::Hidden=HASH(0x3322fa0)
Rose::HTML::Form::Field::Text=HASH(0x1d62d2c)
Rose::HTML::Form::Field::Text=HASH(0x1d62dd4)
Rose::HTML::Form::Field::Text=HASH(0x1d62e7c)
Rose::HTML::Form::Field::Text=HASH(0x1d62f24)
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] Forwarding to edit for invalid
input: 
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] Rendering template "dog.html"
[Mon Jan  9 08:55:19 2006] [catalyst] [debug] Redirecting to "list"
[Mon Jan  9 08:55:19 2006] [catalyst] [info] Request took 0.163348s
(6.122/s)
.------------------------------------------------------------------+--------
---.
| Action                                                           | Time
|
+------------------------------------------------------------------+--------
---+
| /dog/edit                                                        |
0.004782s |
| /dog/do_edit                                                     |
0.146065s |
| DogDB::View::TT->process                                         |
0.003752s |
| /end                                                             |
0.004568s |
'------------------------------------------------------------------+--------
---'






More information about the Catalyst mailing list