Re: [apps-discuss] Retroactive application of draft-ietf-appsawg-uri-scheme-reg - comprehensive review

Matthew Kerwin <matthew@kerwin.net.au> Sat, 11 April 2015 02:40 UTC

Return-Path: <phluid61@gmail.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 914F51A89A9; Fri, 10 Apr 2015 19:40:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.027
X-Spam-Level:
X-Spam-Status: No, score=-1.027 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 kNeqXrjYfoTq; Fri, 10 Apr 2015 19:40:27 -0700 (PDT)
Received: from mail-vn0-x22e.google.com (mail-vn0-x22e.google.com [IPv6:2607:f8b0:400c:c0f::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 055AF1A89A5; Fri, 10 Apr 2015 19:40:27 -0700 (PDT)
Received: by vnbf1 with SMTP id f1so10096692vnb.5; Fri, 10 Apr 2015 19:40:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=m+I1trL8Km72FhC7p21qSRD/CmxKpzg/pPt13m/NV1Y=; b=rUDVmbcsjldQ0Hut/zYN26BTAXzm7I2yoUhdl1q9oBc6w4EaqWfZVV1kxwM0JSTtcq CNTin6fTTOKU1DODFo5ZKM9c1fLAUZzg1tasSlNduLpYcNQo/PskI0fyYX62bEuCg+C9 YmyMtFIh1BBTtVr9/LkPD/8ree7nWhaBGMWvaizRgsuJBX/Jc6E9luu8xMHC2blTtziT frr1Er0a1owVNPkovrXW3SM1enRv3WtCUpRiK2feuBAVJC4THOrww1PyB42sG5qCvn26 mQP0W8Pv7jBCh210prg5UHvvpxHT8yqJZQmbxRgsu+zVgnnTPCuT55IKHCQV5ej5pP+Y jouQ==
MIME-Version: 1.0
X-Received: by 10.60.83.233 with SMTP id t9mr5013263oey.73.1428720026208; Fri, 10 Apr 2015 19:40:26 -0700 (PDT)
Sender: phluid61@gmail.com
Received: by 10.202.178.3 with HTTP; Fri, 10 Apr 2015 19:40:26 -0700 (PDT)
In-Reply-To: <CALaySJJZsCuQHUSMFULfH33ke63_Xrka8OMft2Dp0NPJNKLF5w@mail.gmail.com>
References: <2E49FA112B054FFAED69D8A1@JcK-HP8200.jck.com> <CALaySJ+JdE5YrBuXv343_CfNP4mYxOR94JV4q_Uso4VoWfD=Ng@mail.gmail.com> <723FBC93979E1019101319C5@JcK-HP8200.jck.com> <4EA0B2F8-5109-49EA-8BAF-0199D1640407@gbiv.com> <55274198.5030309@andyet.net> <CA288E99-DE72-4DCF-9BD5-822A9C8F41F9@gbiv.com> <CALaySJJZsCuQHUSMFULfH33ke63_Xrka8OMft2Dp0NPJNKLF5w@mail.gmail.com>
Date: Sat, 11 Apr 2015 12:40:26 +1000
X-Google-Sender-Auth: LBGziRdQGXn5waOEWPYLDSZXq2I
Message-ID: <CACweHNDGVNmREtgnssD13swTXt-H2A-yrqwyv8+W-nvt7Ykh=A@mail.gmail.com>
From: Matthew Kerwin <matthew@kerwin.net.au>
To: Barry Leiba <barryleiba@computer.org>
Content-Type: multipart/alternative; boundary="089e01182c8ea5524c051369cd18"
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/J9c3-QPO-vsfP44UboxJklBnFP8>
Cc: "Roy T. Fielding" <fielding@gbiv.com>, "draft-ietf-appsawg-uri-scheme-reg.all@ietf.org" <draft-ietf-appsawg-uri-scheme-reg.all@ietf.org>, IESG <iesg@ietf.org>, Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Retroactive application of draft-ietf-appsawg-uri-scheme-reg - comprehensive review
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: Sat, 11 Apr 2015 02:40:29 -0000

On 11 April 2015 at 01:38, Barry Leiba <barryleiba@computer.org> wrote:

> > No scheme can prohibit fragments. They are not part of the scheme's
> syntax.
>
> We continue to have a confusion between syntax and semantics here.
>
> I absolutely agree that no scheme can say that fragments are
> syntactically invalid, because the schemes do not control the syntax
> of a URI.
>
> But a scheme can certainly say that fragments make no semantic sense
> within that scheme, and that if a URIs uses that scheme and contains a
> fragment, it is not a well formed URI within that scheme.
>
>
RFC 3986, S3.5: "​The fragment's format and resolution is therefore
dependent on the media type [RFC2046] of a potentially retrieved
representation, even though such a retrieval is only performed if the
URI is dereferenced.  If no such representation exists, then the
semantics of the fragment are considered unknown and are effectively
unconstrained.  Fragment identifier semantics are independent of the
URI scheme and thus cannot be redefined by scheme specifications."

To me that says that schemes cannot touch fragments at all, except
indirectly -- through representation retrieval. In the case of 'http' that
actually makes it the purview of the protocol (not the scheme), however in
'file' it's a bit fuzzier because representation retrieval doesn't have a
protocol to lean on. For URN it's completely obscure to me, because names
aren't inherently dereferenceable (?). I interpret it as: don't mention
fragments at all.



> It's rather like saying that English words are composed of characters
> from the set "abcdefghijklmnopqrstuvwxyz", and, therefore, the string
> "qwx" is a valid piece of an English word (syntax)... but that, in
> fact, no valid English words contain "qwx" (semantics).
>
> That's not a layering violation at all -- it has to be up to the
> scheme to say what the semantic meaning of a fragment is within that
> scheme, or whether fragments have any meaning at all.
>
>
​The analogy is over-simplified. If I were to write "Section 4.8.1 of RFC
1045" in some English prose, the syntax and semantics of English language
may lead us to understand that "RFC 1045" is a technical document, and
"Section ... of ..." is a fragment reference, so the question becomes: what
types of fragments can be referenced within a technical document?

If the 'English language' also defines the structure of 'technical
documents' then it can say that they contain sections, tables, and images,
for example; but if not then there's no way to know that "Quadrant 3 of RFC
6215" is nonsense, even though "Quadrant ... of ..." is also a fragment
reference.

I think it's up to the scheme to see what (if any) representations can
exist, and then those representations have to say what the fragment
semantics mean. The best the scheme can say is: "All representations are
SVG, therefore fragment semantics are defined by the W3C." Or: "There are
no representations, therefore fragments are undefined."


Cheers
-- 
  Matthew Kerwin
  http://matthew.kerwin.net.au/