[Catalyst] Warnings when upgrading Catalyst
Ovid
publiustemp-catalyst at yahoo.com
Mon Jun 22 09:26:58 GMT 2009
Nobody has a clue on this one? I've no idea how the relative values get set and I'm not looking forward to a long slog through the guts of Catalyst to understand what's happening here :)
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
----- Original Message ----
> From: Ovid <publiustemp-catalyst at yahoo.com>
> To: Cat Herders <catalyst at lists.scsys.co.uk>
> Sent: Friday, 19 June, 2009 16:07:55
> Subject: [Catalyst] Warnings when upgrading Catalyst
>
>
> 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
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list