[Catalyst] Implementation bug in Catalyst::Request

Kieren Diment diment at gmail.com
Wed Oct 18 14:34:38 CEST 2006


On 18/10/06, Kieren Diment <diment at gmail.com> wrote:
>
>
>
> On 18/10/06, Toby Corkindale <tjc at wintrmute.net> wrote:
> >
> > Bug in Catalyst::Request.
> > It says:
> >   $req->action
> >        Returns the requested action as a Catalyst::Action object.
>
>
>
>
> That is what happens.  However it is stringifies to the path.
>
> debugger output:
>
> ~/Desktop/dev/Catalyst/trunk/Catalyst-Helper-FastCGI/t/lib/FcgiTest$ perl
> -d script/fcgitest_server.pl
>


Argh!  no you're right!  This ain't a documentation but this is an
implementation bug.  Can someone fix it so that it does $c->req->action does
the same as $c->action.

I dropped the request.

~/Desktop/dev/Catalyst/trunk/Catalyst-Helper-FastCGI/t/lib/FcgiTest$ perl -d
script/fcgitest_server.pl

Loading DB routines from perl5db.pl version 1.28
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(script/fcgitest_server.pl:15):
15:     my $debug               DB<1> c
You can connect to your server at http://zaphod.local:3000
FcgiTest::Controller::Root::local_action(/Users/kd/Desktop/dev/Catalyst/trunk/Catalyst-Helper-FastCGI/t/lib/FcgiTest/script/../lib/FcgiTest/Controller/Root.pm:22):
22:         $c->res->body('hit localaction');
  DB<1> x $c->req->action
0  'local_action'
  DB<2> p $c->req->action
local_action
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20061018/7ca1337b/attachment.htm 


More information about the Catalyst mailing list