Skip Menu |

This queue is for tickets about the Catalyst CPAN distribution.

Report information
The Basics
Id: 12696
Status: resolved
Priority: 0/
Queue: Catalyst

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

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



Subject: Can't call method "uri" on an uninitialised value...
I get this weird bug using Devel::ebug that I traced to Catalyst::Engine::Test::Run. The bug is hit when HTTP::Response::base tries to call $self->request->uri, without checking that the response object has been linked to a request. Simple patch: --- Catalyst-5.10/lib/Catalyst/Engine/Test.pm 2005-04-23 21:13:48.000000000 +1200 +++ /mv/local/lib/perl5/site_perl/5.8.4/Catalyst/Engine/Test.pm 2005-05-05 17:14:03.000000000 +1200 @@ -237,6 +237,8 @@ $class->handler($http); + $http->response->request($request); + return $http->response; }