Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mark [...] repixl.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.80032
Fixed in: (no value)



Subject: Cannot set $c->res->content_type in end()
Perl version: 5.14.1 - x86_64-linux OS: Linux dev 2.6.32-24-server #43-Ubuntu SMP Thu Sep 16 16:05:42 UTC 2010 x86_64 GNU/Linux Catalyst: 5.80032 lighttpd (with mod_fastcgi) Symptoms: I first noticed this problem using the setup above, running my app's FCGI server. The server starts up fine, but a request to the root url causes the stack trace below. This is reproducible. Immediately afterwards, I started the Catalyst HTTP server and changed the lighty config - everything worked ok for a while. However, this morning the HTTP server generated a similar stack trace. The error is sometimes triggered via my Root controller's end method (below), but reproducing the error to paste info to create this ticket has it triggered in Catalyst/Action/RenderView.pm. Seems to be essentially the same error though. Stack Trace generated with HTTP server: http://paste.scsys.co.uk/144304 Stack Trace generated with FastCGI server: http://paste.scsys.co.uk/144311 end method from Root.pm (error is the "my $content_type" line): http://paste.scsys.co.uk/144312
From: mark [...] repixl.com
Apologies, my use case broke encapsulation, so I've now solved the problem. However, a type constraint of HTTP::Headers on the attribute could help prevent future issues.