Re: [Uri-review] draft-farrell-decade-ni

Eric Johnson <eric@tibco.com> Mon, 07 May 2012 09:09 UTC

Return-Path: <eric@tibco.com>
X-Original-To: uri-review@ietfa.amsl.com
Delivered-To: uri-review@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 347AB21F8494 for <uri-review@ietfa.amsl.com>; Mon, 7 May 2012 02:09:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.099
X-Spam-Level:
X-Spam-Status: No, score=-4.099 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, GB_I_LETTER=-2, URI_NOVOWEL=0.5]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2KaUDqDmn3IF for <uri-review@ietfa.amsl.com>; Mon, 7 May 2012 02:09:02 -0700 (PDT)
Received: from mx1-app.tibco.com (mx1-app.tibco.com [63.100.100.142]) by ietfa.amsl.com (Postfix) with ESMTP id 4EDF421F8473 for <uri-review@ietf.org>; Mon, 7 May 2012 02:09:02 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.75,543,1330934400"; d="scan'208";a="43003328"
Received: from tibco-5.tibco.com (HELO PA-CASHUB01.na.tibco.com) ([63.100.100.5]) by mx1-app.tibco.com with ESMTP; 07 May 2012 02:08:58 -0700
Received: from Eric-Johnsons-MacBook-Pro.local (10.98.32.22) by PA-CASHUB01.na.tibco.com (10.106.137.46) with Microsoft SMTP Server (TLS) id 14.1.339.1; Mon, 7 May 2012 02:08:56 -0700
Message-ID: <4FA79123.1050900@tibco.com>
Date: Mon, 07 May 2012 11:08:51 +0200
From: Eric Johnson <eric@tibco.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Graham Klyne <GK@ninebynine.org>
References: <4F9EB644.60309@cs.tcd.ie> <4FA39FE9.5010306@tibco.com> <4FA62A44.4060101@ninebynine.org>
In-Reply-To: <4FA62A44.4060101@ninebynine.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [10.98.32.22]
Cc: uri-review@ietf.org, Barry Leiba <barryleiba@computer.org>, "draft-farrell-decade-ni@tools.ietf.org" <draft-farrell-decade-ni@tools.ietf.org>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Subject: Re: [Uri-review] draft-farrell-decade-ni
X-BeenThere: uri-review@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Proposed URI Schemes <uri-review.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uri-review>, <mailto:uri-review-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/uri-review>
List-Post: <mailto:uri-review@ietf.org>
List-Help: <mailto:uri-review-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 09:09:03 -0000

Hi Graham,

I'm not sure I see how your conclusion about treating this as a relative 
URI makes sense.

If "ni://example.com/index.html" is the obvious result of the relative 
computation, but is in fact meaningless in the context of the definition 
of the scheme, then I don't think that's harmless result. The 
expectation of a hierarchical scheme seems to me that you can apply 
standard hierarchical manipulations, and get a new valid URI, even if 
there's no "there" there at the given endpoint.

With the "ni" scheme as proposed, almost the whole universe of relative 
computations implied as allowed because of the "//" will result in URIs 
that are not actually valid according to the scheme definition. That 
seems ... harmful.

For the work I did on the "jms" URI scheme, we also had to address the 
question of an "authority" for resolving some of the URIs, and we were 
able to readily incorporate that into a non-hierarchical scheme.

-Eric.

On 5/6/12 9:37 AM, Graham Klyne wrote:
> On 04/05/2012 10:22, Eric Johnson wrote:
>> I looked at this proposal, and had three points of confusion.
>>
>> a) Why is this being done as a "hierarchical" URI scheme, when the 
>> URI is not,
>> in fact, hierarchical?
>>
>> That is, why ni://example.com/....?
>
> I think the document explains that.
>
> And I even have a possible use-case for this in an application I'm 
> working on - a hashed identifier where further information may be 
> available from the given authority.
>
>> When implementations that manipulate URIs encounter the :// after the 
>> scheme,
>> that should be a signal for them to associate meaning to "relative" 
>> URIs, as in:
>>
>> base URI: 
>> ni://example.com/sha-256;f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk
>>
>> ... what does it mean to do "index.html" relative to said URI?
>
> The answer to that is clear from RFC 3986:  
> ni://example.com/index.html ... even if it's not very useful.
>
>> Can I compute a "sha-512" relative to the given URI? (Answer: no)
>
> I'm not sure I understand the question, but one might want to express 
> an already-known sha-512 with respect to the same base.
>
>> I conclude that this should not be a hierarchical scheme.
>
> I don't see any harm, and some possible (small) benefits.
>
> #g
> -- 
>
>> b) Why isn't this just a URN with a particular namespace identifier?
>>
>> As in:
>>
>> urn:nhi:example.com:sha-256:f4OxZX_x_FO5LcGBSKHWXfwtSx-j1ncoSt3SABJtkGk
>>
>> (where nhi I just made up, but stands for "named hashed id", because 
>> URNs
>> require at least three letters for namespace ids)
>>
>> That seems like a better fit.
>>
>> c) Since there are more known SHA standards, why not declare them all 
>> in this
>> initial proposal, so that sha-384, and sha-512 are already defined?
>>
>> -Eric.
>>
>> On 4/30/12 5:56 PM, Stephen Farrell wrote:
>>> Hi,
>>>
>>> We have a draft [1] that requests two new URI schemes.
>>>
>>> The core WG are likely to want to use these we think
>>> and possibly decade, but they're intended to be generally
>>> useful as well.
>>>
>>> Barry Leiba is planning to AD sponsor this and Alexey
>>> Melnikov will be shepherding so if you can cc them ase
>>> well as the authors on any questions or comments that'd
>>> be good.
>>>
>>> I hope the plan is to IETF LC this soon, once this
>>> review and the .well-known registration review are
>>> done.
>>>
>>> Thanks,
>>> Stephen.
>>>
>>> [1] http://tools.ietf.org/html/draft-farrell-decade-ni-05
>>> _______________________________________________
>>> Uri-review mailing list
>>> Uri-review@ietf.org
>>> https://www.ietf.org/mailman/listinfo/uri-review
>> _______________________________________________
>> Uri-review mailing list
>> Uri-review@ietf.org
>> https://www.ietf.org/mailman/listinfo/uri-review
>>
>