Further to my previous email (as below), i have noticed that
if i set the document_root to something that does not exist
(eg. "/blahblah") - then in the PerlCleanupHandler, the document root (before reset) is
set to "/blahblah" - if i had set it to something that existed, then was i set it to 
is not maintained!!!

I have also tried to putting in handlers of every sort and logging what they see, and
PerlAccessHandler, PerlTypeHandler and PerlFixupHandler all see the correct document 
root (the one i have set), the PerlHandler
invoked after the PerlFixupHandler and everything thereafter, do not see the document 
root i had set. 

a very confused, 

simran.


On Fri, 2003-10-17 at 22:12, Frank Maas wrote:
> >> Can it be that a subrequest (issued (by chance?) to the same child)
> >> is messing things up? You might try adding a warn to the
> >> CleanupHandler.
> >
> > I guess it could be... what should i be logging for in the
> > CleanupHandler? (aka, what should i print to see if its a subrequest,
> > and if it is, where it was called form?).
> 
> I think a simple logmessage would help already, but you might want to
> try
> 
>       print STDERR 'Cleanup handler called for '.($r->is_initial_req() ?
> 'initial' : 'sub').' request for '.$r->uri().'. Document root was
> '.$r->document_root();
> 
> and this before you reset document_root...


Tried the above, and i get the following output:

Cleanup handler called for initial request for 
/auto/thumbnail/images/fluorescence6.jpg. Document root was 
/home/simran/netchant/www/simran-sb/docs at 
/home/simran/netchant/lib/NetChant/Component/SB/Handlers.pm line 157.

The document root should have been: /home/simran/netchant/www/simran-sb/docs.stage
The document root however was     : /home/simran/netchant/www/simran-sb/docs

So it looks like the request is "initial" - however, something else is 
resetting the document_root. I don't have any place in my code (anywhere) where i touch
the document_root (other than when i am setting it to docs.stage or in the 
PerlCleanupHandler)
so its a strange one indeed... 

simran.


Reply via email to