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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 272
Download (untitled) / with headers
text/plain 272b
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)
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-22009-1228598424-1872.32202-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 452
Download (untitled) / with headers
text/plain 452b
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
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=
In-Reply-To: <rt-3.6.HEAD-22009-1228598424-1872.32202-6-0 [...] rt.cpan.org>
References: <RT-Ticket-32202 [...] rt.cpan.org> <rt-3.6.HEAD-22009-1228598424-1872.32202-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 5C6D74D8045 for <bug-Cgi-Simple [...] rt.cpan.org>; Mon, 8 Dec 2008 03:05:52 -0500 (EST)
Received: (qmail 16279 invoked by uid 103); 8 Dec 2008 08:05:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 8 Dec 2008 08:05:52 -0000
Received: from v019309.home.net.pl (HELO v019309.home.net.pl) (62.129.236.5) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with SMTP; Mon, 08 Dec 2008 00:05:48 -0800
Received: from aakv11.neoplus.adsl.tpnet.pl (HELO ?192.168.100.4?) (haueck.magraf [...] home [...] 83.5.25.11) by m076.home.net.pl with SMTP; Mon, 8 Dec 2008 08:05:41 -0000
Delivered-To: cpan-bug+Cgi-Simple [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #32202] Uploading files with the same name
User-Agent: IceDove 1.5.0.14eol (X11/20080724)
Return-Path: <haueck [...] rafalkozik.eu>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Cgi-Simple [...] rt.cpan.org
Date: Mon, 08 Dec 2008 09:06:40 +0100
X-Spam-Level: *
Message-Id: <493CD590.6040506 [...] rafalkozik.eu>
To: bug-Cgi-Simple [...] rt.cpan.org
Content-Transfer-Encoding: 8bit
From: Rafał Kozik <haueck [...] rafalkozik.eu>
RT-Message-ID: <rt-3.6.HEAD-22019-1228723559-890.32202-0-0 [...] rt.cpan.org>
Content-Length: 873
Download (untitled) / with headers
text/plain 873b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-2264-1236456759-964.32202-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 243
Download (untitled) / with headers
text/plain 243b
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!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.