Re: [apps-discuss] draft-kerwin-file-scheme and hosts

Bjoern Hoehrmann <derhoermi@gmx.net> Sun, 11 January 2015 00:11 UTC

Return-Path: <derhoermi@gmx.net>
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 318811A1A22 for <apps-discuss@ietfa.amsl.com>; Sat, 10 Jan 2015 16:11:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 qieoY7c4YSCV for <apps-discuss@ietfa.amsl.com>; Sat, 10 Jan 2015 16:11:13 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 89BC41A0231 for <apps-discuss@ietf.org>; Sat, 10 Jan 2015 16:11:13 -0800 (PST)
Received: from netb ([89.204.137.193]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LcBPV-1XSkQT0hnR-00jcBd; Sun, 11 Jan 2015 01:11:02 +0100
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: Sam Ruby <rubys@intertwingly.net>
Date: Sun, 11 Jan 2015 01:10:58 +0100
Message-ID: <rdf3batbqpql6mt62e2qc84m1haspvvgkg@hive.bjoern.hoehrmann.de>
References: <CAL0qLwYrAGk-gpfMKigy8C8CCzdA4NhQv60UdUmBtXdkQF10SA@mail.gmail.com> <54922C81.4030908@intertwingly.net> <CACweHNDT4iNmDyGkvDBa08apPcaQC7hoAQ2gFZxYE-8wFiDrvg@mail.gmail.com> <5494C6AF.4070902@intertwingly.net> <CACweHNB04C8a2NefHnx0wxZSRw7KOyBzPPuuniEi=uvgQ5M5pg@mail.gmail.com> <2e33balagh0scqtgaf87vh48vc8l9jm7g7@hive.bjoern.hoehrmann.de> <54B19221.2080203@intertwingly.net>
In-Reply-To: <54B19221.2080203@intertwingly.net>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:eu87zywoFPm1YADBKcJyFhdv+vEXm6nvQ1BgJpcLZvRLixWFD/x eczYqE4nYjAYvWTJUxMsbLk6GlYV0YPaqYVzZVHcRy2s9EGosSR8Fff3sHp1XKNaMIm45lf gdCLXPvHJ/zp7AATvopl6xXPlIbsDSQ21FVJniKT9S05qs5xMpcF7X6Tv2ppDbxx4ooeT/k t8+/IaXg2lNIWa79Ecy7Q==
X-UI-Out-Filterresults: notjunk:1;
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/2JnO13poJwjbgFGyr57zOf3fYWA>
Cc: IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] draft-kerwin-file-scheme and hosts
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: Sun, 11 Jan 2015 00:11:19 -0000

* Sam Ruby wrote:
>On 01/10/2015 03:40 PM, Bjoern Hoehrmann wrote:
>> * Matthew Kerwin wrote:
>>> On 20 December 2014 at 10:45, Sam Ruby <rubys@intertwingly.net> wrote:
>>
>>>> file://[2001::1]/foo
>>>
>>> I thought this already worked with RFC 3986..? See the "IP-literal"
>>> construct in <https://tools.ietf.org/html/rfc3986#section-3.2.2>, which is
>>> used in "host".
>
>My point was that it works with RFC 3986, but doesn't work with 
>draft-kerwin-file-scheme.  I encourage you to look at section 2.2 of RFC 
>4291.
>
>There is a very simple fix for this.  I believe that what you want to 
>refer to instead is section 2 of RFC 6874.

Per https://tools.ietf.org/html/draft-kerwin-file-scheme-13 the string
parses as

  ["file-URI", [
    ["f-scheme", [], 0, 4],
    ["f-hier-part", [
      ["auth-path", [
        ["f-auth", [
          ["host", [
            ["IP-literal", [
              ["IPv6address", [
                ["h16", [
                  ["HEXDIG", [
                    ["DIGIT", [], 8, 9]], 8, 9],
                  ["HEXDIG", [
                    ["DIGIT", [], 9, 10]], 9, 10],
                  ["HEXDIG", [
                    ["DIGIT", [], 10, 11]], 10, 11],
                  ["HEXDIG", [
                    ["DIGIT", [], 11, 12]], 11, 12]], 8, 12],
                ["h16", [
                  ["HEXDIG", [
                    ["DIGIT", [], 14, 15]], 14, 15]], 14, 15]], 8, 15]],
7, 16]], 7, 16]], 7, 16],
        ["path-absolute", [
          ["segment-nz", [
            ["pchar", [
              ["unreserved", [
                ["ALPHA", [], 17, 18]], 17, 18]], 17, 18],
            ["pchar", [
              ["unreserved", [
                ["ALPHA", [], 18, 19]], 18, 19]], 18, 19],
            ["pchar", [
              ["unreserved", [
                ["ALPHA", [], 19, 20]], 19, 20]], 19, 20]], 17, 20]],
                  16, 20]], 7, 20]], 5, 20]], 0, 20]

where `host` comes from RFC 3986. I do not see anything in the draft
calling for a different interpretation of `IPv6address` than what RFC
3986 calls for, so I am not sure what does not work here.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
D-10243 Berlin · PGP Pub. KeyID: 0xA4357E78 · http://www.bjoernsworld.de
 Available for hire in Berlin (early 2015)  · http://www.websitedev.de/