Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MojoMojo CPAN distribution.

Report information
The Basics
Id: 46941
Status: resolved
Priority: 0/
Queue: MojoMojo

People
Owner: Nobody in particular
Requestors: kmx [...] volny.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Failed tests with Catalyst 5.80005
Date: Mon, 15 Jun 2009 07:06:08 +0200
To: bug-MojoMojo [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Hi, I have experienced the following error (with many occurrences) during Mojomojo (0.999029) tests: t/01app.t ....................... 1/2 # Failed test 'use Catalyst::Test;' # at t/01app.t line 7. # Tried to use 'Catalyst::Test'. # Error: Could not load class (MojoMojo) because : Invalid Args('') for action attachment/defaultaction (use 'Args' or 'Args(<number>)' at D:/strawberry/perl/site/lib/Catalyst/Dispatcher.pm line 536 I am using catalyst::Runtime 5.80005 and it seems to be the problem. I think that this patch http://dev.catalystframework.org/svnweb/Catalyst/revision/?rev=10430 is the reason for the above described issue as it has introduced stricter checking of Args arguments for Chained actions. -- kmx
Subject: Re: [rt.cpan.org #46941] AutoReply: Failed tests with Catalyst 5.80005
Date: Mon, 22 Jun 2009 14:52:38 +0200
To: bug-MojoMojo [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
here is the patch that solves this issue: --- MojoMojo-0.999029/lib/MojoMojo/Controller/Attachment.pm 2009-04-22 11:46:40.000000000 +0200 +++ MojoMojo-0.999029p/lib/MojoMojo/Controller/Attachment.pm 2009-06-22 13:51:44.177393000 +0200 @@ -101,7 +101,7 @@ $c->detach('default') unless ( $c->stash->{att} ); } -sub defaultaction : PathPart('') Chained('attachment') Args('') { +sub defaultaction : PathPart('') Chained('attachment') Args { my ( $self, $c ) = @_; $c->forward('view'); } -- kmx
The Args('') issue has been fix and the fix is included in the current CPAN release.