Re: [apps-discuss] draft-ietf-iri-comparison

"Roy T. Fielding" <fielding@gbiv.com> Tue, 27 January 2015 02:05 UTC

Return-Path: <fielding@gbiv.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B198C1A1B39 for <apps-discuss@ietfa.amsl.com>; Mon, 26 Jan 2015 18:05:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level:
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wO8fpiirGumM for <apps-discuss@ietfa.amsl.com>; Mon, 26 Jan 2015 18:05:43 -0800 (PST)
Received: from homiemail-a111.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 0B5061A008B for <apps-discuss@ietf.org>; Mon, 26 Jan 2015 18:05:42 -0800 (PST)
Received: from homiemail-a111.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a111.g.dreamhost.com (Postfix) with ESMTP id BF0D62005D82E; Mon, 26 Jan 2015 18:05:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=mlNAhiFH6Ps0TLWgb69FwU6aT44=; b=GsfQHEN+mYtvQHqA1XzJgzD/5B9+ 2hE5SHuWNUD5BgVHQ/cGwi1Zg9QOxbYJahsTyDjOVsQARPz0Bn7g3pUkGBwjsV97 znbrHVC6tOxd+Vm65oYjX+E30+LZzkEr6KKlPhPgVykcCFJKp3s9uwJ+OI2g/gvh LbTeEguZrIEqeEg=
Received: from [192.168.1.12] (ip68-228-83-124.oc.oc.cox.net [68.228.83.124]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a111.g.dreamhost.com (Postfix) with ESMTPSA id A73642005D82D; Mon, 26 Jan 2015 18:05:41 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1283)
Content-Type: text/plain; charset="windows-1252"
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <E0FF89B4-6AD0-4F7C-AF41-C60DF30555E1@apple.com>
Date: Mon, 26 Jan 2015 18:05:40 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <84E353AE-D96B-4211-99CB-D08AE17B1B1E@gbiv.com>
References: <54B18B61.8010308@seantek.com> <54B19435.8070401@intertwingly.net> <54B1B211.3050807@seantek.com> <54B1B682.3070609@intertwingly.net> <012001d02d91$6ec42300$4001a8c0@gateway.2wire.net> <54B2781C.4040505@intertwingly.net> <018e01d02dc6$1d03b0a0$4001a8c0@gateway.2wire.net> <54B2CC75.5080900@intertwingly.net> <54B79930.3070009@ninebynine.org> <54B7AEC2.9010109@intertwingly.net> <20150116033032.GD2350@localhost> <DM2PR0201MB096082B3915B85F60EDB617DC34F0@DM2PR0201MB0960.namprd02.prod.outlook.com> <015c01d0362f$1f6f6020$4001a8c0@gateway.2wire.net> <BN3PR0201MB0945D77BAC3FFB5396057D7AC3360@BN3PR0201MB0945.namprd02.prod.outlook.com> <54C65580.2080407@ninebynine.org> <E0FF89B4-6AD0-4F7C-AF41-C60DF30555E1@apple.com>
To: David Singer <singer@apple.com>
X-Mailer: Apple Mail (2.1283)
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/xwizoupnf8KQixztlOOowoml9fE>
Cc: Graham Klyne <GK@ninebynine.org>, "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] draft-ietf-iri-comparison
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Jan 2015 02:05:49 -0000

On Jan 26, 2015, at 10:21 AM, David Singer wrote:
>> On Jan 26, 2015, at 15:56 , Graham Klyne <GK@ninebynine.org> wrote:
>> 
>> IF this issue gets further discussion, I'd be very concerned that a comparison of URI beyond simple character comparison would not be universally implemented.  E.g., I do from time-to-time use URIs as index values for dictionary lookups - that depends implicitly on character-based equality.
>> 
>> Further I don't believe it is possible to completely define URI equivalence of different URI strings in a meaningful way, because the notion of equivalence depends on context of use.  When working with, say, RDF, when it is important to be sure that two references are denoting the same thing, the easy way is to just use the same referring string;  alternatively, use some extrinsic assertion that two different URIs are denoting the same thing.
>> 
>> In other words, why bother?  Just keep it simple.
> 
> I guess it depends on what you mean by simple. 
> 
> The simplest for the receiver is to say it’s byte-by-byte equality.  The simplest for each environment that the URI might pass through is to insist it’s in the normal form for that environment.
> 
> These are in conflict.
> 
> So, if at the terminal the URIs arrive, hypothetically one by a route that wants UTF-8 and escaping, and the other by a route that handles everything in UTF-16, the terminal won’t find byte equality when the user expects it. The URIs need to be put in a canonical form.  Which means that that needs defining, alas.

Technically speaking, what namespaces use is character-by-character
equality.  Hence, that is not a problem.

> What am I missing?

I think people assume there exists some canonical form, and that it
makes some difference to the application that it knows that form (or at
least is able to derive it from a non-canonical URI).

The reality is that a canonical form (if any) is only known by the person
who configures the software to provide a service that is associated with
a given URI.  All other forms are aliases. Some of those aliases might
be mechanically expected (like hostname case), but others could be
just as canonical as the first.

In some cases, the preponderance of use in one form over another causes
the original owner to change their mind about which URI is canonical.

Regardless, what Graham noted is true: the definition of canonical for
caching/reusing a GET is very different from the definition of canonical
for something like namespaces.  That was a deliberate decision, whether
we agree with it or not, so it is fair to say that there is no single
standard for canonicalizing a URI (or URL).

This is, of course, why we have a link relation for canonical.

It is not an algorithm that can be written, in code or in spec,
so it is not a bug that needs fixing in RFC3986 (or anything that
pretends to supplant it).  The URI spec defines normalization of
URIs in ways that are not scheme-specific.  The scheme specs are
supposed to define what can be normalized within each scheme.

....Roy

p.s.  Am I the only one that finds it incredibly annoying that the
      APPS area uses this umbrella list for technical discussions about
      topics for which we still have the original working group mailing
      list active, archived, and populated with folks still capable of
      answering these questions?  Ya know,

         "http://lists.w3.org/Archives/Public/uri/"
         "http://lists.w3.org/Archives/Public/public-iri/"