Re: Apache2::Dispatch issue

Joe Breeden <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Tue, Jun 8, 2010 at 1:21 PM, Fred Moyer <[email protected]> wrote:

> On Tue, Jun 8, 2010 at 9:10 AM, Joe Breeden <[email protected]> wrote:
> > I'm seeing this in the log on hits that fail:
> >
> > Use of uninitialized value in substitution iterator at
> > /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 350.
> > Use of uninitialized value in string eq at
> > /usr/lib/perl5/site_perl/5.8.8/Apache/Dispatch/Util.pm line 368.
>
> Can you apply this patch and post the output from the failed hits?
>
> Index: lib/Apache/Dispatch/Util.pm
> ===================================================================
> --- lib/Apache/Dispatch/Util.pm (revision 86)
> +++ lib/Apache/Dispatch/Util.pm (working copy)
> @@ -326,6 +326,7 @@
>        my $location;
>
>     # change all the / to ::
> +    $log->debug('uri: ' . $r->uri) if $debug > 1;
>     (my $class_and_method = $r->uri) =~ s!/!::!g;
>
>        if ($newloc) {
>
>
>
I made the change, but didn't see the output. In fact, I don't think any of
the logging output is actually being generated. It may be because my
mod_perl wasn't compiled with the proper switches for this module. I just
used the mod_perl that was configured with the host. I re-read the perldoc
and noticed this:

"This is alpha software, and as such has not been tested on multiple
platforms or environments for security, stability or other concerns. It
requires PERL_DIRECTIVE_HANDLERS=1, PERL_LOG_API=1, PERL_HANDLER=1, and
maybe other hooks to function properly."

Which makes me think I should look at the way mod_perl was compiled on my
box.

But, just in case it helps, I changed the $log->debug to just a print STDERR
and got:

uri: /admin

Thanks for the help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.