Re: [alto] Should we allow relative URIs in resource directories?

Wendy Roome <w.roome@alcatel-lucent.com> Fri, 15 February 2013 14:18 UTC

Return-Path: <w.roome@alcatel-lucent.com>
X-Original-To: alto@ietfa.amsl.com
Delivered-To: alto@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3272821F8AA8 for <alto@ietfa.amsl.com>; Fri, 15 Feb 2013 06:18:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.901
X-Spam-Level:
X-Spam-Status: No, score=-9.901 tagged_above=-999 required=5 tests=[AWL=-0.699, BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kbTaspC33U+0 for <alto@ietfa.amsl.com>; Fri, 15 Feb 2013 06:18:50 -0800 (PST)
Received: from ihemail4.lucent.com (ihemail4.lucent.com [135.245.0.39]) by ietfa.amsl.com (Postfix) with ESMTP id 9AEC721F8717 for <alto@ietf.org>; Fri, 15 Feb 2013 06:18:45 -0800 (PST)
Received: from usnavsmail1.ndc.alcatel-lucent.com (usnavsmail1.ndc.alcatel-lucent.com [135.3.39.9]) by ihemail4.lucent.com (8.13.8/IER-o) with ESMTP id r1FEIf3D013436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 15 Feb 2013 08:18:42 -0600 (CST)
Received: from umail.lucent.com (umail-ce2.ndc.lucent.com [135.3.40.63]) by usnavsmail1.ndc.alcatel-lucent.com (8.14.3/8.14.3/GMO) with ESMTP id r1FEIeXK022697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 15 Feb 2013 08:18:41 -0600
Received: from [135.222.152.198] (wdr-i7mbp.mh.lucent.com [135.222.152.198]) by umail.lucent.com (8.13.8/TPES) with ESMTP id r1FEIard017028; Fri, 15 Feb 2013 08:18:38 -0600 (CST)
User-Agent: Microsoft-MacOutlook/14.3.1.130117
Date: Fri, 15 Feb 2013 09:18:41 -0500
From: Wendy Roome <w.roome@alcatel-lucent.com>
To: Richard Alimi <rich@velvetsea.net>, Ben Niven-Jenkins <ben@niven-jenkins.co.uk>
Message-ID: <CD43AC8B.33C2D%w.roome@alcatel-lucent.com>
Thread-Topic: [alto] Should we allow relative URIs in resource directories?
In-Reply-To: <CA+cvDaZJvCwWzDZQx45-MCzpjMaczkbzR84dQM32-Eno8x5M-w@mail.gmail.com>
Mime-version: 1.0
Content-type: multipart/alternative; boundary="B_3443764726_2632357"
X-Scanned-By: MIMEDefang 2.57 on 135.245.2.39
X-Scanned-By: MIMEDefang 2.64 on 135.3.39.9
Cc: "alto@ietf.org" <alto@ietf.org>
Subject: Re: [alto] Should we allow relative URIs in resource directories?
X-BeenThere: alto@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Application-Layer Traffic Optimization \(alto\) WG mailing list" <alto.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/alto>, <mailto:alto-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/alto>
List-Post: <mailto:alto@ietf.org>
List-Help: <mailto:alto-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/alto>, <mailto:alto-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Feb 2013 14:18:51 -0000

To  reinforce that, how about using relative URIs in the 6.7.3 example?  Eg,
replace
        "uri" : "http://alto.example.com/networkmap",
with
        "uri" : "/networkmap",
etc.

- Wendy

From:  Richard Alimi <rich@velvetsea.net>
Date:  Fri, February 15, 2013 01:06
To:  Ben Niven-Jenkins <ben@niven-jenkins.co.uk>
Cc:  Bill Roome <w.roome@alcatel-lucent.com>, "alto@ietf.org"
<alto@ietf.org>
Subject:  Re: [alto] Should we allow relative URIs in resource directories?


On Wed, Feb 13, 2013 at 10:56 PM, Ben Niven-Jenkins
<ben@niven-jenkins.co.uk> wrote:
> Wendy,
> 
> On 13 Feb 2013, at 14:38, Wendy Roome wrote:
> 
>> > RFC 3986 does define relative URIs, so technically that's sufficient. But
>> > I think that's like a lawyer burying some critical information -- like
>> > "double every amount that you owe us" -- in tiny type in a footnote.
>> > Legal, but sleazy.
>> >
>> > The problem is that software libraries with a simple connectToServer(uri)
>> > function require an absolute uri. If the uri might be relative, the client
>> > must first resolve the uri in the context of some absolute base uri. Most
>> > libraries provide a function to do that, but it's easy to forget that step.
>> >
>> > Case in point: My client, which passed all the interop tests, failed when
>> > it contacted a server that returned relative URIs. (And yes, I've since
>> > fixed my client.)
>> >
>> > So if we want to allow relative URIs, we should be more explicit. At the
>> > very least, add this sentence to the end of Ben's revised uri section:
>> >
>> >    Relative URIs should be resolved using the URI of the Information
>> > Resource Directory as the base URI.
> 
> Or a reference to section 5 of RFC 3986 rather than re-specifying its
> semantics.
> 
> Maybe something like:
>    URIs can be relative and MUST be resolved according to section 5 of
>    [RFC3986].

+1 for allowing relative URIs.  If there are no dissenting opinions, we'll
update the draft with Ben's proposed text.
 
> 
> Ben
> 
> 
> _______________________________________________
> alto mailing list
> alto@ietf.org
> https://www.ietf.org/mailman/listinfo/alto