You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Raphael Ferguson <fe...@alum.rpi.edu> on 2004/11/16 12:56:19 UTC
Upload/POST fails repeatedly with mod_perl 1.29 and 1.27
Hello all,
when attempting to post a form with enctype="multipart/form-data" for
file uploading, I receive the following errors in my error_log and the
upload fails:
[Tue Nov 16 00:20:49 2004] [error] [client xx.xx.xx.xx] [libapreq] file
upload forbidden
[Tue Nov 16 00:20:49 2004] [error] Apache::RequestNotes encountered a
parsing error!
[Tue Nov 16 00:20:49 2004] [error] [client xx.xx.xx.xx] Invalid method
in request -------------------------some key number here--
I have tried setting DISABLE_UPLOADS => 0 in the Apache::Registry
script, and I have tried setting 'PerlSetVar DisableUploads 0' in the
httpd.conf. Neither seems to work.
I also tried rebuilding apache/mod_perl and reinstalling libapreq and
Apache::RequestNotes, all to no avail.
By browsing the archives the only answer I could come up with was
someone suggested downgrading CGI.pm, but in this case I am not using
CGI.pm.
Also, there is another issue which may be related. POST requests seem
to work for me according to the access log:
xx.xx.xx.xx - - [16/Nov/2004:06:10:18 -0500] "POST /search/search.pl
HTTP/1.1" 200 823
but after the request, the POSTed values never show up
in the param() of CGI.pm or Apache::Request. GET requests names and
values work, but not POST. These POSTed values are very small, but
just in case I set MaxPostSize in httpd.conf to 10240. That didn't
help either. There is no evidence of this problem in the error log.
Both of these issues did not occur so long as I was running Redhat
7.2. When I moved to Fedora Core 2 final, the problems showed up.
Different versions of apache (1.3.27 and 1.3.33) and mod_perl (1.27 and
1.29) made no difference. I'm using Apache::Request version 1.3 and
Apache::RequestNotes 0.06 with Perl 5.8.3.
Your help would be greatly appreciated.
Re: Upload/POST fails repeatedly with mod_perl 1.29 and 1.27
Posted by Stas Bekman <st...@stason.org>.
Raphael Ferguson wrote:
[...]
> but after the request, the POSTed values never show up
> in the param() of CGI.pm or Apache::Request. GET requests names and
> values work, but not POST. These POSTed values are very small, but
> just in case I set MaxPostSize in httpd.conf to 10240. That didn't
> help either. There is no evidence of this problem in the error log.
Smells like either a disk space shortage problem. Or inability to find the
TMP directory. Try defining TMPDIR env var before starting the server and
see if it makes any difference. But I could be wrong. It's the easiest to
add print statements or step through with debugger to see what's going
wrong. Unfortunately none of these modules have a proper debug framework
which can be enabled to make the debug easier.
--
__________________________________________________________________
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