Re: trouble with using $r->lookup_uri()

2003-06-03 Thread Ryan Muldoon
Aaron,

It looks like this did the trickmy module doesn't quite work yet,
but it isn't segfaulting anymore.  Thanks!

--Ryan

On Fri, 2003-05-30 at 22:24, Aaron Ross wrote:
> > my $uri = $r->uri;
> > my $subr = $r->lookup_uri($uri);
> 
> Is this recursing? the subrequest will run all phases but the content
> handler, so
> i would think you'll need to add
> 
> return unless $r->is_main();
> 
> or something like it at the beginning of the routine.
> 
> -- Aaron
> 
> 


RE: trouble with using $r->lookup_uri()

2003-06-02 Thread Frank Maas
> I'm trying to write a authentication handler using mod_perl, and am
> encountering some difficulty.  I have isolated my problem to the usage
> of the lookup_uri($uri) function call - whenever I call it, my module
> segfaults.  I have tested the input with both a variable string, and
> just a quoted string, and get the same result.

I don't know whether this will help you, but don't just focus on this
handler. I encountered problems using lookup_uri myself, because I did not
bear in mind that ->lookup_uri goes through a request cycle itself, thus
calling a far lot of the handlers defined for that uri. However it is not
a complete request, so things like ->pnotes etc. can fail. See
http://marc.theaimsgroup.com/?l=apache-modperl&m=105118150200822&w=2 for
my 'diary'.

--Frank


Re: trouble with using $r->lookup_uri()

2003-05-31 Thread Aaron Ross
> my $uri = $r->uri;
> my $subr = $r->lookup_uri($uri);

Is this recursing? the subrequest will run all phases but the content
handler, so
i would think you'll need to add

return unless $r->is_main();

or something like it at the beginning of the routine.

-- Aaron