Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 42816
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: jasonk@cpan.org (no email address)
Cc:
AdminCc:

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



Subject: _parse_PathPrefix_attr causes errors
I've been getting this error on occasion from some controllers since upgrading to 5.71... Can't call method "config" on an undefined value at /usr/local/lib/perl5/site_perl/5.10.0/Catalyst/Controller.pm line 113. I tracked it down to the PathPrefix support, the _parse_PathPrefix_attr method needs to pass $c on to the path_prefix method (as everything else that calls path_prefix does). I tried to commit a fix, but apparently I can't commit there, so a patch is attached instead... -- www.jasonkohles.com
Subject: Catalyst-Controller-PathPrefix.patch
Index: Controller.pm =================================================================== --- Controller.pm (revision 9127) +++ Controller.pm (working copy) @@ -312,8 +312,8 @@ } sub _parse_PathPrefix_attr { - my $self = shift; - return PathPart => $self->path_prefix; + my ( $self, $c ) = @_; + return PathPart => $self->path_prefix( $c ); } sub _parse_ActionClass_attr {
Thanks, applied as r10699