Skip Menu |
 

This queue is for tickets about the IO-All-LWP CPAN distribution.

Report information
The Basics
Id: 47172
Status: open
Priority: 0/
Queue: IO-All-LWP

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

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



Subject: Support for file URLs
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 31
I'd like support for file URLs.
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-13950-1245473751-1203.47172-4-0 [...] rt.cpan.org>
References: <RT-Ticket-47172 [...] rt.cpan.org> <rt-3.6.HEAD-13950-1245473751-1203.47172-4-0 [...] rt.cpan.org>
Message-ID: <4805c38b0906200735t3b6c92e9r8396e60e7202db42 [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id B0BEF4D8113 for <bug-IO-All-LWP [...] rt.cpan.org>; Sat, 20 Jun 2009 10:35:40 -0400 (EDT)
Received: (qmail 18064 invoked by uid 103); 20 Jun 2009 14:35:40 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Jun 2009 14:35:40 -0000
Received: from mail-ew0-f218.google.com (HELO mail-ew0-f218.google.com) (209.85.219.218) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Sat, 20 Jun 2009 07:35:34 -0700
Received: by ewy18 with SMTP id 18so2838872ewy.45 for <bug-IO-All-LWP [...] rt.cpan.org>; Sat, 20 Jun 2009 07:35:31 -0700 (PDT)
Received: by 10.211.199.11 with SMTP id b11mr4589279ebq.87.1245508530924; Sat, 20 Jun 2009 07:35:30 -0700 (PDT)
Delivered-To: cpan-bug+IO-All-LWP [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #47172] Support for file URLs
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=NcbQEyyXGRQjAlklof4SYIMJHUGE+f/80SF36hr+YcWttUHUzo1bm6shggYIDBlh0s 4xZTFv+h0+ANM74tfOY6v3eR+lMa8t1vUHwrblGxp/JPEhe3CkEI+FtaFiHUNTam3+sU ral9q6eOg8BsN1daBooehYdk5hTilZOEEBVfs=
Return-Path: <ivan.tubert [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UoMTmt5UsuzjTwsE7wJR4JbCsBW16QOEJboWeqalRfM=; b=tXSCsb6ZZF2riHnywequyIjE9jco8+clwikkDLLBvxT6K3VGFYoDvkCgKKgkInsDds 3TjmPyPSbJE1kJzcht1IzMmVSifnbGNq62DNMC5cWXEycpmKWAlKpqdfBKc1vEMfs8CI ke4cUuJjEzdPEfMr2RxHuqzoyhE66ZTwDdJxA=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-IO-All-LWP [...] rt.cpan.org
X-Google-Sender-Auth: 3fa2a2e5d9640df2
Date: Sat, 20 Jun 2009 10:35:30 -0400
Sender: ivan.tubert [...] gmail.com
X-Spam-Level: *
To: bug-IO-All-LWP [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Ivan Tubert-Brohman <itub [...] cpan.org>
RT-Message-ID: <rt-3.6.HEAD-13950-1245508550-37.47172-0-0 [...] rt.cpan.org>
Content-Length: 1346
Download (untitled) / with headers
text/plain 1.3k
I think this would require changes to IO::All as well (Ingy, are you reading this?). The normal way of doing this would be to create a module called IO::All::FILE, similar to IO::All::FTP etc. This is trivial and can be done in five minutes. This module should be loaded automatically by IO::All when it sees a file URL. The problem is that there exists already a module called IO::All::File (note the case difference), which causes two problems. One is that this could be a mess in case-insensitive filesystems. But second and perhaps more important is that IO::All tries to load IO::All::File before it tries to load IO::All::FILE. A quick hack for dealing with that is to swap the if and elsif in IO::All::autoload_class() to give higher precedence to all-caps module names. But perhaps Ingy has a more elegant solution in mind. Cheers, Ivan On Sat, Jun 20, 2009 at 12:55 AM, Michael G Schwern via RT<bug-IO-All-LWP@rt.cpan.org> wrote: Show quoted text
> Sat Jun 20 00:55:50 2009: Request 47172 was acted upon. > Transaction: Ticket created by MSCHWERN >       Queue: IO-All-LWP >     Subject: Support for file URLs >   Broken in: 0.14 >    Severity: Wishlist >       Owner: Nobody >  Requestors: mschwern@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47172 > > > > I'd like support for file URLs. >


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.