Sounds reasonable.
Based on your anaIysis,  I added

   warn "reach last line of WebGUI.pm";

into the handler before the last line.

sub handler{
                ... ...
                else {
                $r->set_handlers(PerlResponseHandler => \&contentHandler);
                $r->set_handlers(PerlTransHandler => sub { return Apache2::Const
::OK});
        }
        warn "reach last line of WebGUI.pm";
        return Apache2::Const::DECLINED;
}

then I got these two lines of log message like this,
[Wed Feb  8 20:45:57 2006] -e: got last line of WebGUI.pm at
/data/WebGUI/lib/WebGUI.pm line 65.
[Wed Feb 08 20:45:57 2006] [info] [client 10.0.0.1] Module bug? 
Request filename is missing for URI /

You may notice that the "Module bug?" message written out after the
debug message I added, so I think, the info is not caused by
PerlTransHander. True?


On 2/8/06, Torsten Foertsch <[EMAIL PROTECTED]> wrote:
> On Wednesday 08 February 2006 07:13, Ken Perl wrote:
> > I see a info in the error.log when I access the uri / and works fine,
> > [Wed Feb 08 13:22:35 2006] [info] [client 10.0.0.1] Module bug?
> > Request filename is missing for URI /
> >
> > Is the info reported by modperl2? anything wrong?
>
> You have written a translation handler that doesn't set $r->filename and
> returns OK, right?
>
> The info you are seeing is generated by the core-maptostorage handler. You can
> avoid it either
>
> a) by setting $r->filename prior to maptostorage or
>
> b) by returning DECLINED from your translation handler and thus letting the
> core translation handler figure the filename out or
>
> c) by inserting a PerlMapToStorage handler that returns OK and thus skipping
> the core-maptostorage handler.
>
> Torsten
>
>
>


--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"[EMAIL PROTECTED]
")'

Reply via email to