Re: [mp2] Problem with custom config in Location

[prev] [thread] [next] [Date index for 2005/05/20]

From: Stas Bekman
Subject: Re: [mp2] Problem with custom config in Location
Date: 14:43 on 20 May 2005
Herve Guillemet wrote:
> 
> 
> On Thu, 19 May 2005, Stas Bekman wrote:
> 
>> Herve Guillemet wrote:
>>
>>>
>>> 1. Problem Description:
>>>
>>> A custom apache config directive defined in a <Location> together with
>>> a PerlResponseHandler makes the request handling crash.
>>
>>
>> Herve, have you considered to check the error_log before reporting a 
>> problem? Your code is improperly written and the error_log should have 
>> told you that. In the future please check that file first. Thank you.
>>
>> Please find an attached tarball with a testing setup that works.
> 
> 
> Hi Stas,
> 
> I have indeed forgotten to mention that there was absolutely nothing in 
> the error_log, nor in the access_log, about the crashed request.

Please mention that in the future :)

> Thanks for your answer and the testing setup . But this still does not 
> work in my environment. No core generated.
> 
> make test
[...]
> t/bug....skipped
>         all skipped: no reason given

as you can see the test wasn't run, it was skipped. You need to install 
LWP from CPAN. But this test should work w/o LWP too. Please try with this 
patch

diff -u bug.t.orig bug.t
--- bug.t.orig  2005-05-20 10:39:16.000000000 -0400
+++ bug.t       2005-05-20 10:39:31.000000000 -0400
@@ -5,7 +5,7 @@
  use Apache::TestRequest;
  use Apache::TestUtil;

-plan tests => 1, have_lwp;
+plan tests => 1;
  {
      my $response = GET '/test';


        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

[mp2] Problem with custom config in Location
Herve Guillemet 19:41 on 19 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 07:57 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Stas Bekman 14:43 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 16:09 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 23:16 on 20 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 13:52 on 21 May 2005

Re: [mp2] Problem with custom config in Location
Herve Guillemet 20:30 on 21 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52