Subject: | upload fails under mod_perl |
Hi,
Recently upgraded my mod_perl2 environment and switched to Perl 5.8.3 and as such upgraded CGI to version 3.01.
Since then the upload from a webform running under mod_perl failed.
Strangely enough moving the same testprogram from the mod_perl folder into the /cgi-bin folder did 'cure' the problem.
I've tracked down the error to a change in line 3753 in the 'find_tempdir' routine of CGI.pm:
line 3753 reads: undef $TMPDIRECTORY;
Having this removes the possibility to set your own $TMPDIRECTORY in case of a 'special' user environment.
Normally this could be done using line 26:
#$CGITempFile::TMPDIRECTORY = '/usr/tmp';
which is normally commented out.
I would ask that line 3753 is removed.
(don't know what the logic was behind it)
So that the possibility to set your own fixed TMPDIRECTORY is restored.
Remark: In case you wonder what is special to my user environment, well here is the explanaition:
in my case the $ENV{TMPDIR} did not work as on my machine this reads as: C:\DOCUME~1\bart\LOCALS~1\Temp. And I was logged in as bart.grafikon, but $ENV{TMPDIR} was pointing to the local user 'bart' and not the domain user 'bart'
My environment is:
- Win2000 SP2
- Apache 2.0.47
- mod_perl 1.999.22
- perl 5.8.3
Kind Regards,
Bart
Message body is not shown because it is too large.