Skip Menu |

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 32202
Status: rejected
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: haueck [...] rafalkozik.eu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.1
  • 1.103
Fixed in: (no value)



Subject: Uploading files with the same name
When I try to upload two files (residing in a different directories) with the same name I get the following error: No filehandle for 'filename'. Are uploads enabled ($DISABLE_UPLOADS = 0)? Is $POST_MAX big enough? CGI::Simple 1.103 Perl 5.8.8 on Debian Etch (2.6.18-4)
On Wed Jan 09 11:08:34 2008, haueck wrote: Show quoted text
> When I try to upload two files (residing in a different directories) > with the same name I get the following error: > > No filehandle for 'filename'. Are uploads enabled ($DISABLE_UPLOADS = > 0)? Is $POST_MAX big enough?
haueck, Sorry for the delayed response. Were you able to find a solution on your to this? My first question would be to reality-check the values for $DISABLE_UPLOADS and $POST_MAX
Subject: Re: [rt.cpan.org #32202] Uploading files with the same name
Date: Mon, 08 Dec 2008 09:06:40 +0100
To: bug-Cgi-Simple [...] rt.cpan.org
From: Rafał Kozik <haueck [...] rafalkozik.eu>
MARKSTOS via RT napisał(a): Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=32202 > > > On Wed Jan 09 11:08:34 2008, haueck wrote: >
>> When I try to upload two files (residing in a different directories) >> with the same name I get the following error: >> >> No filehandle for 'filename'. Are uploads enabled ($DISABLE_UPLOADS = >> 0)? Is $POST_MAX big enough? >>
> > haueck, > > Sorry for the delayed response. Were you able to find a solution on your > to this? My first question would be to reality-check the values for > $DISABLE_UPLOADS and $POST_MAX > > >
Hello, $DISABLE_UPLOADS and $POST_MAX are set correctly (0,-1), otherwise uploading wouldn't work at all. The problem is that file handles are kept in a hash with only a filename (not a full path) as a key , so it's impossible to send two files with the same name. Best regards, Rafal Kozik
I can confirm the problem - but I can't see how it can be fixed without changing the API - and I don't want to introduce an incompatible change. Having said that I'm open to suggestions - but for now I'm going to reject this ticket. Thanks!