Skip Menu |
 

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 111619
Status: open
Priority: 0/
Queue: File-Fetch

People
Owner: Nobody in particular
Requestors: bcontreras [...] eead.csic.es
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-4.201 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] autolearn=ham
X-Ironport-Anti-Spam-Result: A2HFAwC2UK9W/wsNqMBdhAxtAYhXswpBIodgEAEBAQEBAQEBAoEHgi0JASwMCjIBAQEBAQEBAQEBAR4CHgMvRQQLAQVAKQ0CBRYLAgsDAgECAVgGAgEBiCWta45te4UUhwuCKoI0gToFjSWJSo1LgVuHRBeFOocOg16DUjeBYQELgitpAQEBAYh5AQEB
X-Spam-Flag: NO
Ironport-PHDR: 9a23:jYFvTx24bzOwCVu2smDT+DRfVm0co7zxezQtwd8ZsegRLvad9pjvdHbS+e9qxAeQG96LtLQd06GN7ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6NyZ3vnLvss7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYhuglv/Jkfe26Ov1gDO8QMDNzOX06ocPqsRSGQwaT7Xs0SHlQmQJBBU7C9h6pcI32t37QrPd732GxOsvqV70uUC/qyqBxRR7ygW9TPTU+9n3Nh9Z5l4pWrRut4RdkwoWSbZrDZ6k2Rb/UYd5PHTkJZc1WTSEUR9rkYg==
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <56AF5174.4070904 [...] eead.csic.es>
X-Ironport-Anti-Spam-Filtered: true
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Ironport-Av: E=Sophos;i="5.22,380,1449529200"; d="scan'208";a="13331597"
X-Spam-Score: -4.201
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 82A4F24037D for <cpan-bug+file-fetch [...] hipster.bestpractical.com>; Mon, 1 Feb 2016 07:37:35 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9MJFoozk5hGy for <cpan-bug+file-fetch [...] hipster.bestpractical.com>; Mon, 1 Feb 2016 07:37:34 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B083A24032E for <bug-file-fetch [...] rt.cpan.org>; Mon, 1 Feb 2016 07:37:33 -0500 (EST)
Received: (qmail 12130 invoked by alias); 1 Feb 2016 12:37:32 -0000
Received: from smtpout.csic.es (HELO ironport5.csic.es) (161.111.10.145) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 01 Feb 2016 04:37:25 -0800
Received: from unknown (HELO estafeta.csic.es) ([192.168.13.11]) by balan5.csic.es with ESMTP; 01 Feb 2016 13:37:09 +0100
Received: from [172.18.9.155] (fw.eead.csic.es [161.111.227.1]) by estafeta.csic.es (Postfix) with ESMTPSA id 30BCB4B5B4 for <bug-file-fetch [...] rt.cpan.org>; Mon, 1 Feb 2016 13:37:09 +0100 (CET)
Delivered-To: cpan-bug+file-fetch [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
Subject: problem with filename in File::Fetch ?
Return-Path: <bcontreras [...] eead.csic.es>
X-RT-Mail-Extension: file-fetch
X-Original-To: cpan-bug+file-fetch [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Mon, 1 Feb 2016 13:37:08 +0100
X-Spam-Level:
To: bug-file-fetch [...] rt.cpan.org
X-Ipas-Result: A2HFAwC2UK9W/wsNqMBdhAxtAYhXswpBIodgEAEBAQEBAQEBAoEHgi0JASwMCjIBAQEBAQEBAQEBAR4CHgMvRQQLAQVAKQ0CBRYLAgsDAgECAVgGAgEBiCWta45te4UUhwuCKoI0gToFjSWJSo1LgVuHRBeFOocOg16DUjeBYQELgitpAQEBAYh5AQEB
Content-Transfer-Encoding: 8bit
From: Bruno Contreras Moreira <bcontreras [...] eead.csic.es>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 832
Download (untitled) / with headers
text/plain 832b
Hi, I have been using File::Fetch and seem to have found a problem when handling a URL which does not contain a file name, but rather some params. This is the code: my $ff = File::Fetch->new(uri=>"http://www.ncbi.nlm.nih.gov/Traces/wgs/?download=NC_010159.1.gbff.gz"); my $content; if($ff->fetch( to => \$content )){ # ... } This fails on my system, even using to => '/tmp', with a message such as: "Cannot rename 'FileFetch.HhO9er/-2296' to 'FileFetch.HhO9er/': Not a directory" As I am not able to control the name of the output file I cannot proceed, thanks for your support, Bruno -- Bruno Contreras Moreira Investigador ARAID Estación Experimental de Aula Dei / CSIC Av.Montañana 1.005, 50059 Zaragoza (España) Tel:(+34) 976716089 Fax:(+34) 976716145 bcontreras@eead.csic.es http://www.eead.csic.es/compbio
MIME-Version: 1.0
In-Reply-To: <56AF5174.4070904 [...] eead.csic.es>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <56AF5174.4070904 [...] eead.csic.es>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-24057-1454540505-154.111619-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 828
Download (untitled) / with headers
text/plain 828b
On 2016-02-01 07:37:37, bcontreras@eead.csic.es wrote: Show quoted text
> Hi, I have been using File::Fetch and seem to have found a problem > when > handling a URL which does not contain a file name, but rather some > params. > This is the code: > > my $ff = > File::Fetch- > > my $content; > if($ff->fetch( to => \$content )){ > # ... > } > > This fails on my system, even using to => '/tmp', with a message such > as: > > "Cannot rename 'FileFetch.HhO9er/-2296' to 'FileFetch.HhO9er/': Not a > directory" > > As I am not able to control the name of the output file I cannot > proceed,
I can reproduce the problem with File::Fetch 0.32, but bot with 0.48. Maybe this change fixed it: https://metacpan.org/source/BINGOS/File-Fetch-0.48/CHANGES#L31


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.