[Catalyst] Warnings when upgrading Catalyst

Ovid publiustemp-catalyst at yahoo.com
Fri Jun 19 15:07:55 GMT 2009


We're upgrading from Catalyst 5.7015 to 5.80005 and now our test suite
is throwing lots of undef warnings from Catalyst.pm line 1561 in the
_stats_start_execute method.  Specifically:

        if ( my $parent = $c->stack->[-1] ) {
            $c->stats->profile(    # line 1561
                begin  => $action,
                parent => "$parent" . $c->counter->{"$parent"},
                uid    => $uid,
            );
        }

Here are the various values in that 

     $parent = bless( {
       'attributes' => {
         'Private' => [
           undef
         ]
       },
       'class' => 'PIPs::C::Api::V1::Promotion',
       'code' => sub { "DUMMY" },
       'name' => '_ACTION',
       'namespace' => 'api/v1/promotion',
       'reverse' => 'api/v1/promotion/_ACTION'
    }, 'Catalyst::Action' );
    $uid = 'import/response/default1';
    $c->counter->{"$parent"} = undef;
    $c->counter = {
      'api/api_chain' => 1,
      'api/auto' => 1,
      'api/v1/auto' => 1,
      'api/v1/promotion/auto' => 1,
      'api/v1/promotion/begin' => 1,
      'api/v1/promotion/list' => 1,
      'api/v1/v1_chain' => 1,
      'import/response/default' => 1
    };
    "$parent" = 'api/v1/promotion/_ACTION';"

As
you can see, $parent stringifies to a value not present in the
$c->counter hash.  Does anyone recognize this warning?  Is this a
bug or is there something documented somewhere which will tell me how
to fix this?

Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6




More information about the Catalyst mailing list