Apache2::Request::param returns () despite parameters in URI, butonly under Strawberry Perl

--0016e6dd95a9003adf0494cafb70
Content-Type: text/plain; charset=UTF-8

Hi everyone,

(This is a cross-post from StackOverflow. I thought there might be more
specialized experience on this list to beg help from. :) )

I'm running mod_perl 2.0.4 on Perl 5.10 on Apache 2.2.17 on Win2k3sp2.

The URI I am typing into my browser is http://myserver/?login=0.

The script being run is:

###


use strict;
use warnings FATAL => 'all';
use 5.01;

my $r = shift;
use Apache2::Request;
my $req = Apache2::Request->new($r);

use Data::Dump qq(pp);
die pp($req->unparsed_uri) . ', ' . pp($req->param) . ', ' .
pp($req->args_status());


###

Under Strawberry Perl, I get:

"/?login=0", (), "No error" at C:/myweb/index.pl line 10.

....but under ActiveState Perl (see below), I get:

"/?login=0", "login", "No error" at C:/myweb/index.pl line 10.

So I know my login parameter is making it in at some point under Strawberry,
because the unparsed URI contains it. Why is it then not being parsed
correctly?

The way I switch between the two is to simply change httpd.conf from saying

LoadFile "C:\strawberry\perl\bin\perl510.dll"
# Apache/2.2.17 (Win32) mod_apreq2-20090110/2.7.1 mod_perl/2.0.4
Perl/v5.10.1

....to this:

LoadFile "C:\Perl\bin\perl510.dll"
# Apache/2.2.17 (Win32) mod_apreq2-20051231/2.6.2-dev mod_perl/2.0.4-dev
Perl/v5.10.1

....and then restart. No other changes, it's repeatable every time switching
between the two.

Any ideas? I'd really like to try switching to Strawberry if possible,
mostly because ActivePerl's DBD::Pg builds are getting stale, and the latest
upgrade to Apache 2.2.17 has been causing random/intermittent Apache service
crashes for us these past couple weeks, I think related to DBD::Pg.

Thanks in advance for any help,
Kev

--0016e6dd95a9003adf0494cafb70
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>Hi everyone,</div><div><br></div><div>(This is a cross-post from Stack=
Overflow. =C2=A0I thought there might be more specialized experience on thi=
s list to beg help from. =C2=A0:) )</div><div><br></div><div>I'm runnin=
g mod_perl 2.0.4 on Perl 5.10 on Apache 2.2.17 on Win2k3sp2.</div>
<div><br></div><div>The URI I am typing into my browser is <a href=3D"http:=
//myserver/?login=3D0">http://myserver/?login=3D0</a>.</div><div><br></div>=
<div>The script being run is:</div><div><br></div><div>###</div><div><br></=
div>
<div><br></div><div>use strict;</div><div>use warnings FATAL =3D> 'a=
ll';</div><div>use 5.01;</div><div><br></div><div>my $r =3D shift;</div=
><div>use Apache2::Request;</div><div>my $req =3D Apache2::Request->new(=
$r);</div>
<div><br></div><div>use Data::Dump qq(pp);</div><div>die pp($req->unpars=
ed_uri) . ', ' . pp($req->param) . ', ' . pp($req->ar=
gs_status());</div><div><br></div><div><br></div><div>###</div><div><br>
</div><div>Under Strawberry Perl, I get:</div><div><br></div><div>=C2=A0=C2=
=A0"/?login=3D0", (), "No error" at C:/myweb/<a href=3D=
"http://index.pl">index.pl</a> line 10.</div><div><br></div><div>...but und=
er ActiveState Perl (see below), I get:</div>
<div><br></div><div>=C2=A0=C2=A0"/?login=3D0", "login",=
"No error" at C:/myweb/<a href=3D"http://index.pl">index.pl</a> =
line 10.</div><div><br></div><div>So I know my login parameter is making it=
in at some point under Strawberry, because the unparsed URI contains it. W=
hy is it then not being parsed correctly?</div>
<div><br></div><div>The way I switch between the two is to simply change ht=
tpd.conf from saying</div><div><br></div><div>LoadFile "C:\strawberry\=
perl\bin\perl510.dll"</div><div># Apache/2.2.17 (Win32) mod_apreq2-200=
90110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1</div>
<div><br></div><div>...to this:</div><div><br></div><div>LoadFile "C:\=
Perl\bin\perl510.dll"</div><div># Apache/2.2.17 (Win32) mod_apreq2-200=
51231/2.6.2-dev mod_perl/2.0.4-dev Perl/v5.10.1</div><div><br></div><div>
....and then restart. No other changes, it's repeatable every time switc=
hing between the two.</div><div><br></div><div>Any ideas? =C2=A0I'd rea=
lly like to try switching to Strawberry if possible, mostly because ActiveP=
erl's DBD::Pg builds are getting stale, and the latest upgrade to Apach=
e 2.2.17 has been causing random/intermittent Apache service crashes for us=
these past couple weeks, I think related to DBD::Pg.</div>
<div><br></div><div>Thanks in advance for any help,</div><div>Kev</div>

--0016e6dd95a9003adf0494cafb70--
Kevin Field [ Do, 11 November 2010 19:17 ] [ ID #2050266 ]

Re: Apache2::Request::param returns () despite parameters in URI,but only under Strawberry Perl

Kevin Field schrieb am 11.11.2010 um 13:17 (-0500):

> This is a cross-post from StackOverflow.

URL?

> Under Strawberry Perl, I get:
>
> "/?login=0", (), "No error" at C:/myweb/index.pl line 10.
>
> ...but under ActiveState Perl (see below), I get:
>
> "/?login=0", "login", "No error" at C:/myweb/index.pl line 10.
>
> So I know my login parameter is making it in at some point under
> Strawberry, because the unparsed URI contains it. Why is it then not
> being parsed correctly?

A bug in the Apache2::Request/mod_apreq2 version shipping with
Strawberry? Seems unlikely, though.

> LoadFile "C:\strawberry\perl\bin\perl510.dll"
> # Apache/2.2.17 (Win32) mod_apreq2-20090110/2.7.1 mod_perl/2.0.4
> Perl/v5.10.1

> LoadFile "C:\Perl\bin\perl510.dll"
> # Apache/2.2.17 (Win32) mod_apreq2-20051231/2.6.2-dev
> mod_perl/2.0.4-dev Perl/v5.10.1

> I'd really like to try switching to Strawberry if possible, mostly
> because ActivePerl's DBD::Pg builds are getting stale, and the latest
> upgrade to Apache 2.2.17 has been causing random/intermittent Apache
> service crashes for us these past couple weeks, I think related to
> DBD::Pg.

Try reporting it on the ActivePerl mailing list.

--
Michael Ludwig
Michael Ludwig [ Do, 11 November 2010 21:59 ] [ ID #2050267 ]

Re: Apache2::Request::param returns () despite parameters in URI, butonly under Strawberry Perl

--001636d34993cc049b0494ce4c22
Content-Type: text/plain; charset=UTF-8

>
> > This is a cross-post from StackOverflow.
>
> URL?
>

Sorry:
http://stackoverflow.com/questions/4140868/apache2requestpar am-returns-despite-parameters-in-uri-but-only-under-stra


> A bug in the Apache2::Request/mod_apreq2 version shipping with
> Strawberry? Seems unlikely, though.
>

This is what I wondered, but the kind of thing that's beyond my ability to
dig into...


> > because ActivePerl's DBD::Pg builds are getting stale, and the latest
> > upgrade to Apache 2.2.17 has been causing random/intermittent Apache
> > service crashes for us these past couple weeks, I think related to
> > DBD::Pg.
>
> Try reporting it on the ActivePerl mailing list.
>

Will do. Thanks, Michael.

Kev

--001636d34993cc049b0494ce4c22
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class=3D"im=
">> This is a cross-post from StackOverflow.<br>
<br>
</div>URL?<br></blockquote><div><br></div><div>Sorry:=C2=A0<a href=3D"http:=
//stackoverflow.com/questions/4140868/apache2requestparam-re turns-despite-p=
arameters-in-uri-but-only-under-stra">http://stackoverflow.c om/questions/41=
40868/apache2requestparam-returns-despite-parameters-in-uri- but-only-under-=
stra</a></div>
<div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im">A bug in the Apache2::Request/mod_apreq2 version shipping=
with</div>
Strawberry? Seems unlikely, though.<br></blockquote><div><br></div><div>Thi=
s is what I wondered, but the kind of thing that's beyond my ability to=
dig into...</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class=3D"im">> because ActivePerl's DBD::Pg builds are getting =
stale, and the latest</div><div class=3D"im">
> upgrade to Apache 2.2.17 has been causing random/intermittent Apache<b=
r>
> service crashes for us these past couple weeks, I think related to<br>
> DBD::Pg.<br>
<br>
</div>Try reporting it on the ActivePerl mailing list.<br></blockquote><div=
><br></div><div>Will do. =C2=A0Thanks, Michael.</div><div><br></div><div>Ke=
v=C2=A0</div></div>

--001636d34993cc049b0494ce4c22--
Kevin Field [ Do, 11 November 2010 23:14 ] [ ID #2050268 ]
Webserver » gmane.comp.apache.mod-perl » Apache2::Request::param returns () despite parameters in URI, butonly under Strawberry Perl

Vorheriges Thema: I think AuthCookie(DBI) is causing segfaults?
Nächstes Thema: [mp2] Test failures with new Perls (patch included)