You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kurt Newman <kn...@globaldataguard.com> on 2004/12/23 00:04:35 UTC
CGI apps receiving incomplete POST parameters
I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl 1.99 on
RedHat 9.
The issue I'm having are for those applications that attempt to POST
data (e.g. from a form) that are, for the most part, pretty large (e.g.
46kB). Unfortunately, with this newer version, the applications aren't
receiving the full POST'd parameters.
To best describe what I'm talking about, here are two examples. For
each one, you'll see some version information along with a form that
have 500 pre-checked boxes. (each has large value names to help increase
the POST size). To test this, go to the very end of the form and click
'Submit Query'.
Working (Apache 1.3.x using mod_perl 1.26):
https://www.globaldataguard.net/perl/mycheckbox.cgi
Broken (Apache 2.0.40 using mod_perl 1.99):
https://www.globaldataguard.net:5043/perl/mycheckbox.cgi
Each version will attempt to print out their entire parameter list using
CGi.pm's Dump() subroutine. The "working" version will print out a
complete paramter list, whereas the "broken" version arbitrarily lops
off the data.
To ensure that it wasn't some odd code behavior or even the web server,
I took the same mycheckbox.cgi code and reconfigured the webserver to
use mod_cgi (instead of mod_perl). When I do this, all works as
intended (except for it not being under mod_perl of course).
Thank you,
Kurt
Re: CGI apps receiving incomplete POST parameters
Posted by Kurt Newman <kn...@globaldataguard.com>.
Upgrading to a newer version of mod_perl solved my problem.
Thank you for the help.
Kurt
On Wed, 2004-12-22 at 19:05 -0500, Stas Bekman wrote:
> Kurt Newman wrote:
> > I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl 1.99 on
> > RedHat 9.
>
> Kurt, there is no mp1.99. There is 1.99_xx. that xx has a very big
> significance, since many problems were fixed between 1.99_01 and 1.99_18.
>
> 1) Please upgrade to the latest mp2 version, which is: 1.99_18 (aka
> 2.0.0-RC1)
> http://perl.apache.org/download/index.html
>
>
> 2) If the problem persists, please read how a proper bug report should be
> submitted:
> http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>
> Thanks
>
Re: CGI apps receiving incomplete POST parameters
Posted by Perrin Harkins <pe...@elem.com>.
Kurt Newman wrote:
> Sorry about that. I thought the '_xx' part of the version was some
> RedHat specific thing. I'm currently using 1.99_07-dev that's supplied
> with the RedHat 9 distribution.
Unfortunately, that one is years out of date now. Upgrading will very
likely fix your problem, and upgrading apache will fix some security
holes discovered since Red Hat 9 came out. Hopefully, with the 2.0
release right around the corner, new distributions will soon be carrying
a reliable and well-tested version of mod_perl.
- Perrin
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: CGI apps receiving incomplete POST parameters
Posted by Kurt Newman <kn...@globaldataguard.com>.
Sorry about that. I thought the '_xx' part of the version was some
RedHat specific thing. I'm currently using 1.99_07-dev that's supplied
with the RedHat 9 distribution.
Upgrading to the latest mod_perl (v1.99_18) will be a task that I'll hit
up today since this involves me recompiling apache using 2.0.47 amongst
other things. Apparently 1.99_18 is incompatible with 2.0.40.
On Wed, 2004-12-22 at 19:05 -0500, Stas Bekman wrote:
> Kurt Newman wrote:
> > I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl 1.99 on
> > RedHat 9.
>
> Kurt, there is no mp1.99. There is 1.99_xx. that xx has a very big
> significance, since many problems were fixed between 1.99_01 and 1.99_18.
>
> 1) Please upgrade to the latest mp2 version, which is: 1.99_18 (aka
> 2.0.0-RC1)
> http://perl.apache.org/download/index.html
>
>
> 2) If the problem persists, please read how a proper bug report should be
> submitted:
> http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>
> Thanks
>
Re: CGI apps receiving incomplete POST parameters
Posted by Stas Bekman <st...@stason.org>.
Kurt Newman wrote:
> I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl 1.99 on
> RedHat 9.
Kurt, there is no mp1.99. There is 1.99_xx. that xx has a very big
significance, since many problems were fixed between 1.99_01 and 1.99_18.
1) Please upgrade to the latest mp2 version, which is: 1.99_18 (aka
2.0.0-RC1)
http://perl.apache.org/download/index.html
2) If the problem persists, please read how a proper bug report should be
submitted:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
Thanks
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: CGI apps receiving incomplete POST parameters
Posted by Kurt Newman <kn...@globaldataguard.com>.
The current timeout period of the Apache 2.0.40 web server is 300
seconds (which I believe is the default). Increasing it to 600 has not
helped.
On Wed, 2004-12-22 at 16:23 -0800, Jay Scherrer wrote:
> What would happen if you extended the time out period of the server?
>
> Jay Scherrer
Re: CGI apps receiving incomplete POST parameters
Posted by Jay Scherrer <ja...@scherrer.com>.
What would happen if you extended the time out period of the server?
Jay Scherrer
On Wednesday 22 December 2004 03:04 pm, Kurt Newman wrote:
> I've recently converted from Apache 1.3.x to Apache 2.0/mod_perl
> 1.99 on RedHat 9.
>
> The issue I'm having are for those applications that attempt to
> POST data (e.g. from a form) that are, for the most part, pretty
> large (e.g. 46kB). Unfortunately, with this newer version, the
> applications aren't receiving the full POST'd parameters.
>
> To best describe what I'm talking about, here are two examples.
> For each one, you'll see some version information along with a form
> that have 500 pre-checked boxes. (each has large value names to
> help increase the POST size). To test this, go to the very end of
> the form and click 'Submit Query'.
>
> Working (Apache 1.3.x using mod_perl 1.26):
> https://www.globaldataguard.net/perl/mycheckbox.cgi
>
> Broken (Apache 2.0.40 using mod_perl 1.99):
> https://www.globaldataguard.net:5043/perl/mycheckbox.cgi
>
> Each version will attempt to print out their entire parameter list
> using CGi.pm's Dump() subroutine. The "working" version will print
> out a complete paramter list, whereas the "broken" version
> arbitrarily lops off the data.
>
> To ensure that it wasn't some odd code behavior or even the web
> server, I took the same mycheckbox.cgi code and reconfigured the
> webserver to use mod_cgi (instead of mod_perl). When I do this,
> all works as intended (except for it not being under mod_perl of
> course).
>
> Thank you,
> Kurt
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html