Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 48761
Status: resolved
Priority: 0/
Queue: URI

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

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



Subject: URI::file does not roundtrip in Win32 correctly.
Test output shown below: C:\Documents and Settings\Curtis>perl -MURI::file -e "print URI::file->new('C:\minicpan')->path()" /C:/minicpan (this is on a Strawberry Perl 5.10.0.6, with the current production version of URI in it. Would you like me to pull down your git repository and see if I can't correct this?)
I think it behaves as it should. The path() method returns the URI path component. You need to call the file() method to get a Windows file path back.
On Mon Aug 17 12:02:27 2009, GAAS wrote: Show quoted text
> I think it behaves as it should. The path() method returns the URI > path component. You need > to call the file() method to get a Windows file path back.
I'm showing the simple case to illustrate the problem. How I found it: I'm passing in file:///C:/minicpan/ (which is what's output by URI::file->new()) to CPAN in my urllist. CPAN calls URI->new($urllist)->path() to get the path to look for the CPAN mirror in, and gets back a path starting with /C:/..., which obviously creates problems. That's what the problem really is - I've mentioned this to DAGOLDEN, and he may be changing CPAN.pm like you mentioned. --Curtis