Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: ARISTOTLE [...] cpan.org
Cc:
AdminCc:

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



Subject: $c->finalize_headers gets called multiple times
I have had the following in my Cat app for a long time: sub MyApp::finalize_headers { my $c = shift; # ... # log request and response status to database # disconnect from DB return $c->next::method; } Recently I upgraded Catalyst to 5.90014 and found that this gets called twice, which caused an erroneous duplicate attempt to log the request, which would immediately fall over because the DBH was already disconnected, causing Cat to die inside the engine. Unfortunately I did not make a note of which exact Catalyst version I was using before, so I cannot say exactly which release broke it. But I know I was on a 5.9 series release before. I talked with t0m on IRC who instructed me to add return if $c->res->finalized_headers; to the top of the method, and with that I’m back in business. But this was not necessary before; t0m said it is a regression. He asked me to file a ticket, so here it is.
I have pushed a change which I think should/may fix this. 89ba65d in git. Is there any chance you can test it out and get back to me about if this corrects the behavior change you're seeing?
Ping! Any news here with the latest Catalyst version?
On Sat Jul 07 16:41:53 2012, BOBTFISH wrote: Show quoted text
> Ping! Any news here with the latest Catalyst version?
Works fine now! Thanks for the quick fix.
Thanks for testing and reporting the issue!
On Thu Jul 12 12:01:42 2012, BOBTFISH wrote: Show quoted text
> Thanks for testing and reporting the issue!
I think this is good, closing