Skip Menu |

This queue is for tickets about the Apache-Test CPAN distribution.

Report information
The Basics
Id: 21554
Status: resolved
Priority: 0/
Queue: Apache-Test

People
Owner: pgollucci [...] p6m7g8.com
Requestors: derek [...] ximbiot.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.28
Fixed in: (no value)



Subject: Apache::TestRequest::GET requires mod_apreq2 loaded for mod_perl2.
I think RT #21552 (http://rt.cpan.org/Ticket/Display.html?id=21552) is actually an Apache::TestRequest bug. When running a test that does: $req = GET '/TestApache__basic'; ok( $res->is_success, 'request succeeded' ); The test fails and I get the message: "undefined symbol: apreq_handle_apache2" in the error log. If I add the line: LoadModule apreq_module modules/mod_apreq2.so to httpd.conf, the test passes. I am unsure whether this load needs to be protected for earlier versions of mod_perl.
On Mon Sep 18 15:28:50 2006, DPRICE wrote: Show quoted text
> I think RT #21552 (http://rt.cpan.org/Ticket/Display.html?id=21552) is > actually an Apache::TestRequest bug. When running a test that does:
Okay, part of the issue is that the module in question (Apache::Session::Wrapper) uses part of the apreq2 API, but it seems to me that wanting to use Apache2::Cookie and other apreq2 classes should be common enough to move the fix I came up with for A::S::W RT #21552 <http://rt.cpan.org/Ticket/Display.html?id=21552> into Apache::Test. The fix I wrote overrides the Apache::TestRunPerl::configure function to add a conf line to load mod_apreq2.so when available and mod_perl2 is in use. I think this could reasonably be moved into the A::T autoconfigure functions, perhaps A::TestRunPerl::configure_modperl.
Changing to wishlist since this is a feature request.
Patch included in 1.31 release candidate, thanks!