Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 28439
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

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



Subject: my urllist is silently ignored
I use a local repository. My urllist contains ONLY my local repository. However, CPAN still tries to go to ftp.perl.org??? cpan[6]> o conf urllist Debug(CPAN,CPAN.pm,269): line[o|conf|urllist] urllist 0 [file:///disk1/src/CPAN] 1 [file:///disk1/src/CPAN] Type 'o conf' to view all configuration items cpan[7]> m LWP Debug(CPAN,CPAN.pm,269): line[m|LWP] LWP not available LWP not available LWP not available LWP not available Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Could not connect to host 'ftp.perl.org' with Net::FTP Fetching with Net::FTP ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz.gz ^CCaught SIGINT, trying to continue Could not connect to host 'ftp.perl.org' with Net::FTP LWP not available No objects of type Module found for argument LWP -- - - Martin 'Kingpin' Thurn
Subject: Re: [rt.cpan.org #28439] my urllist is silently ignored
Date: Mon, 23 Jul 2007 13:29:09 -0700
To: bug-CPAN [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Martin Thurn via RT wrote: Show quoted text
> I use a local repository. My urllist contains ONLY my local repository. > However, CPAN still tries to go to ftp.perl.org??? > > cpan[6]> o conf urllist > Debug(CPAN,CPAN.pm,269): line[o|conf|urllist] > urllist > 0 [file:///disk1/src/CPAN] > 1 [file:///disk1/src/CPAN] > Type 'o conf' to view all configuration items > > cpan[7]> m LWP > Debug(CPAN,CPAN.pm,269): line[m|LWP] > LWP not available
^^^^^^^^^^^^^^^^^ CPAN tries to use LWP for URLs. If it can't find that it has a special case fallback for FTP. Before all this it has special code to try and handle file URIs which your URL passed through without it being recognized. * Are you sure /disk1/src/CPAN/authors/01mailrc.txt.gz exists? * If not, can you rerun your attempt but this time invoking the CPAN shell as: perl -MCPAN -e '$CPAN::DEBUG = 512; shell' retry your command and send the output?
Sorry, my fault, I had the wrong path in my urllist. It's working fine now. -- - - Martin 'Kingpin' Thurn
From: MSCHWERN [...] cpan.org
On Thu Jul 26 11:59:52 2007, MTHURN wrote: Show quoted text
> Sorry, my fault, I had the wrong path in my urllist. It's working
fine now. I'm going to co-opt this bug, I don't think the real problem is resolved. You had to talk to the developers to find out a simple configuration mistake. There's obviously a problem with the error message. It would be nice if CPAN.pm let the user know why it rejects a file URL.
Subject: Re: [rt.cpan.org #28439] my urllist is silently ignored
Date: Sat, 28 Jul 2007 03:12:54 +0200
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Thu, 26 Jul 2007 13:07:36 -0400, "Michael G Schwern via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> Queue: CPAN > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28439 >
Show quoted text
> On Thu Jul 26 11:59:52 2007, MTHURN wrote:
>> Sorry, my fault, I had the wrong path in my urllist. It's working
> fine now.
Show quoted text
> I'm going to co-opt this bug, I don't think the real problem is resolved.
Show quoted text
> You had to talk to the developers to find out a simple configuration > mistake. There's obviously a problem with the error message. It would > be nice if CPAN.pm let the user know why it rejects a file URL.
Thanks for report and analysis. Fixed in repository in rev. 2067 -- andreas
And fixed in 1.91_55 which I uploaded to CPAN yesterday. Thanks again,