This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
49688
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Normal
Broken in:
1.9402
Fixed in:
1.9600



Subject: path with volume letter (on win32) not recognized in urllist
On a win32 strawberry system, if urllist contains a path like "file:D:/My/Minicpan", that path is not taken into account. Reason : in FTP.pm : if ($CPAN::META->has_inst('URI::URL')) { my $u = URI::URL->new($url); $l = $u->path; there $l contains "/D:/My/Minicpan/..." (note the initial slash). Then at line 554 the test -f $l fails. The initial slash only occurs with the URI::URL subclass; if using the parent class URI instead, the method yields a path "D:/My/Minicpan/..." without initial slash. I don't really know if this is a bug or a feature of URI::URL. Anyway CPAN::FTP should probably do something around it.
Thank you for the report. It's a known bug in CPAN.pm and has been fixed in the repository (twice, actually). The proper fix was to use $u->dir instead of $u-path. http://github.com/andk/cpanpm/commit/67934df9263a856151fdc15515bf6add1e23778d This will be part of the next release of CPAN.pm -- David


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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