[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Lower case URLs?
From:       "Petter E. Stokke" <gibreel () project23 ! no>
Date:       2003-08-02 13:09:29
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sat, 2003-08-02 at 11:32, Kevin Krammer wrote:
> On Saturday 02 August 2003 02:14, Petter E. Stokke wrote:
> > On Sat, 2003-08-02 at 02:02, Petter E. Stokke wrote:
> > > If I open Konqueror and hit the link "foo://Wombat/Flarp", when
> > > foobar is run what it receives is this: "foo://wombat/flarp".
> > >
> > > Is it only me, or is something really wrong here?
> >
> > Duh. Actually, the result is "foo://wombat/Flarp". Is that KURL
> > converting the host to lower case?
> 
> I don't know the URI spec but in the usual protocols like http hostnames 
> are case insensitive, so converting to lowercase would be fine.

The key word being "usual". A number of applications depend on URLs that
don't even pretend to be RFC compliant, or even if they are have nothing
to do with the Internet, and it would be a mistake to make assumptions
about the case insensitivity of any part of a URL for which the protocol
isn't known to exhibit this property. Ie. it's safe to convert the host
name of a HTTP URL to lower case, but for unknown protocols this could
seriously break things.

Especially given the kioslave system and its potential multitude of
various protocol implementations, I'd consider this property of KURL (if
that is, as it seems to be, where the problem lies) a Very Bad Thing and
ask that it be reverted, or at least constrained to protocols for which
it's known that converting to lower case would be safe.

-- 
Petter E. Stokke <gibreel@project23.no> http://www.gibreel.net/
PGP key: http://www.gibreel.net/key.asc
Fingerprint: 4FF3 12BD 692A 0FFF 984F  78DA 4776 81FB 1906 3A9F

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic