Package: libcatalyst-perl
Version: 5.30-1
Severity: normal

Hi Florian,

If you use $c->forward('Some::Class'), Catalyst/Dispatcher.pm handles
this request. In line 152, it tests whether 'Some::Class' is a known
component by running:

        unless ( $c->components->{$command} ) {
        
where $c->components->{$command} would be an object. In weird
circumstances (stringify?), this object might evaluate to FALSE,
although it exists. A fix for this, in my case, is to write:

        unless ( exists $c->components->{$command} ) {

which is probably what the upstream author meant.


This bug caused me to spend several hours wondering what's wrong with
Catalyst::Model::CDBI::CRUD, and nearly made me give up on Catalyst :-)


Bis dann,

Joachim

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.otto
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libcatalyst-perl depends on:
ii  libclass-accessor-perl        0.19-2     Automated accessor generator
ii  libclass-data-inheritable-per 0.02-1     Inheritable, overridable class dat
ii  libhtml-parser-perl           3.45-2     A collection of modules that parse
ii  libmodule-pluggable-fast-perl 0.16-1     Fast plugins with instantiation
ii  libpath-class-perl            0.12-1     Cross-platform path specification 
ii  libtemplate-perl              2.14-1     template processing system written
ii  libtext-asciitable-perl       0.15-1     Perm module to create a table usin
ii  libtree-simple-perl           1.15-1     A simple tree object
ii  libtree-simple-visitorfactory 0.05-1     A collection of dispensing visitor
ii  libuniversal-exports-perl     0.03-7     Lightweight, universal exporting o
ii  liburi-perl                   1.35-1     Manipulates and accesses URI strin
ii  libwww-perl                   5.803-4    WWW client/server library for Perl
ii  perl                          5.8.7-4    Larry Wall's Practical Extraction 

Versions of packages libcatalyst-perl recommends:
pn  libapache-mod-perl | libapach <none>     (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to