[Catalyst] Catalyst patch

Alan Humphrey alan.humphrey at comcast.net
Fri Aug 4 23:41:53 CEST 2006


Ah, too good to be true.  It fixed one case, but now forwarding is broken.

Anybody with a better idea of the internals have a better fix?

- Alan

-----Original Message-----
From: catalyst-bounces at lists.rawmode.org
[mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Alan Humphrey
Sent: Friday, August 04, 2006 2:30 PM
To: 'The elegant MVC web framework'
Subject: [Catalyst] Catalyst patch

Problem: Trying to use the Authentication::Store::DBIC plugin the wrong
user_class kept getting loaded.  I specified Engoi::Model::Schema::Members
and got Engoi::Model::Schema::MembersRoles.

Cause: The regex match in Catalyst::_comp_search returned on a successful
partial match instead of only on a complete match.

Solution:

397c397
<             return $c->components->{$component} if $component =~
/^$name$/i;
---
>             return $c->components->{$component} if $component =~ /$name/i;


I don't know if that changes causes side effects, but it works for me.

- Alan


_______________________________________________
List: Catalyst at lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list