You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Mark Vitnell <ma...@swiftdsl.com.au> on 2004/02/06 11:09:49 UTC
upload not working
While installing Embperl/2.0b10, on a new box, I noted that the
upload test was failing.
I installed anyway, and using the sample upload code from perldoc
Embperl found that a file of zero size was created, and debug messages
told me I was trying to 'read() on closed filehandle'.
This was on a Debian sarge box, with Apache-1.3.29, and mod_perl-1.29
and perl-5.8.3, all compiled from source, not using debian packages. I
tried using previous versions of Emperl-2.0b9, mod_perl-1.28, and
apache-1.3.28 - all gave the same failure.
I tried testing on a NetBSD 1.6.1 box with Apache-1.3.28,
Embperl-2.0b10, mod_perl-1.29, and perl-5.8.2. I had success with all
tests for Embperl, and the same code mentioned above for upload worked.
One main difference I could find between the two installations was the
version of CGI.pm installed. It was 3.00 on the NetBSD box, and 3.04 on
the Linux box.
After installing the older 3.00 version of CGI onto the linux box, and
recompiling Embperl, all tests were successful, and the upload code
worked.
I appears that upload_hook was introduced in CGI 3.01.
Should I be changing my code to account for this, or is there a bug in
Embperl?
Regards
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: upload not working
Posted by Gerald Richter <ri...@ecos.de>.
>
> After installing the older 3.00 version of CGI onto the linux box, and
> recompiling Embperl, all tests were successful, and the upload code
> worked.
>
The problem is now fixed in the CVS version of Embperl.
The problem was, that CGI.pm 3.01+ deletes the temporaries files when the
CGI object itself is detroyed, this causes the file to be already deleted
when the actual request runs.
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: upload not working
Posted by Gerald Richter <ri...@ecos.de>.
>
> After installing the older 3.00 version of CGI onto the linux box, and
> recompiling Embperl, all tests were successful, and the upload code
> worked.
>
> I appears that upload_hook was introduced in CGI 3.01.
>
> Should I be changing my code to account for this, or is there a bug
> in Embperl?
>
As workaround use CGI 3.00, I check this issuse and modify EMbperl so that
it will work with CGI 3.01+ also
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org