Re: [art] Question regarding RFC 8089
Mark Nottingham <mnot@mnot.net> Tue, 18 December 2018 08:47 UTC
Return-Path: <mnot@mnot.net>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80351127598 for <art@ietfa.amsl.com>; Tue, 18 Dec 2018 00:47:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=lkt5vBuj; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=sTIMFNx8
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 aI1933t4ahrj for <art@ietfa.amsl.com>; Tue, 18 Dec 2018 00:47:39 -0800 (PST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E49B131125 for <art@ietf.org>; Tue, 18 Dec 2018 00:47:39 -0800 (PST)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id A15381156; Tue, 18 Dec 2018 03:47:35 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 18 Dec 2018 03:47:36 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=I qA9ZiUyzot3EP2mIJbZ+YarkEKjExIQqHSa5QJU0R4=; b=lkt5vBuj4VCE+8aOp SoPgZlJF0eOFCFeunvI6nEunLZ9Newft4I52t+9h2z2JK2BhP/7Knputbjf48dGz RoBIO5FgjnTdwVsOUB/GDBHnL49AOjQkKPKFXzCSpJzH2JhE8AmW9A4clBYiCUxg T2V/J0xfC2vnePpYHxXC8izTTrdEMrUrSKAOIfzckpJ0kDloNpw/Ox9d0iSUzQza 3P8OOPu1Nla0q+M8nJOXFp/+RMZIWG1uxgb+jhKQkKh+8pGziXLd0w0ij4HRzm87 OipJWWZ1q08Xpi+N8YmG2wGd+Le/wbSPTT8u2kMqLeFdBuuUJl1UhHj/q6tqtbaL x8dKQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=IqA9ZiUyzot3EP2mIJbZ+YarkEKjExIQqHSa5QJU0 R4=; b=sTIMFNx8C3SAmSpNxyNdJxRwIKwp0E0daVzqobYgWTFkOvzCzyeKx/iBF 9hX2p8I4Da/FgmlR7wFP9gANBmG3pAGNa9VWRl8RVyUzG9BwdIpABpqTMEezSEYT ieTtNVOLa870rdeCm5qU1RDO2TovOpo+ZkzeQeSVLLOy7mdG9uZ8fiT/hGuQmjsH ElIt3jod3XP0vW4vc2uodM8G7UwM8Uv++4X123ZZ8ismw+AwXV4Ekz9BGTw0XWZG Is2cnvvE1MjBPArQJWJPqIwP3FjAFHlVhjEFoNVXkfB0jtEnpWhHOHAPDQhAnfgM cayTNbW1Ccq6t9qPDVX/kY0JSQ1dA==
X-ME-Sender: <xms:JbQYXPX4pLeFtheSGXL_tmVi0dJOnc9mTZDGxNnGiKPgZCBVMcPC5w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeigedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjg ffgffkfhfvofesthejmhdthhdtvdenucfhrhhomhepofgrrhhkucfpohhtthhinhhghhgr mhcuoehmnhhothesmhhnohhtrdhnvghtqeenucffohhmrghinhepfihhrghtfihgrdhorh hgpdhgihhthhhusgdrtghomhdpihgvthhfrdhorhhgpdhmnhhothdrnhgvthenucfkphep udeggedrudefiedrudejhedrvdeknecurfgrrhgrmhepmhgrihhlfhhrohhmpehmnhhoth esmhhnohhtrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:JbQYXEYudMMwDG1Wqt5aCtftn-lwaN4POCoLqrrIRzwx9d1IPI_-Bw> <xmx:JbQYXPkcPL_6RAFGScYEkeT-HPeK8zR_6T2xoPQd9Wq6SEH79ufyVA> <xmx:JbQYXId1yz76m_lL6BVnLvtqEqpJ6ePEXO2S9sOW71G8x56s-Bu_wA> <xmx:J7QYXEGw_H2lXwW-OryQCyZfUKFAZVrT7Knmj5Y1vXv5iw9KlugnYw>
Received: from attitudadjuster.mnot.net (unknown [144.136.175.28]) by mail.messagingengine.com (Postfix) with ESMTPA id E338EE4535; Tue, 18 Dec 2018 03:47:30 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <1FC45B47B703AED3FAE346F4@PSB>
Date: Tue, 18 Dec 2018 19:47:28 +1100
Cc: "Julian F. Reschke" <julian.reschke@gmx.de>, "General Area Review Team (gen-art@ietf.org)" <art@ietf.org>, Matthew Kerwin <matthew@kerwin.net.au>, Stephan Bergmann <sbergman@redhat.com>
Content-Transfer-Encoding: 7bit
Message-Id: <DB2582C3-FCE9-4E42-B373-37173CEDD040@mnot.net>
References: <f49638dc-4a0e-e03d-7e91-b968a1217679@redhat.com> <CACweHNBps_O0JqAUFj5FD3V+LzbTWUKNKuFzKk82WR+33b8seA@mail.gmail.com> <45967886-f3f4-12b8-75b7-2b9199e59bfa@gmx.de> <114E58B9-0CB4-4B98-B6C8-D2B84879EE6B@mnot.net> <1FC45B47B703AED3FAE346F4@PSB>
To: John C Klensin <john-ietf@jck.com>
X-Mailer: Apple Mail (2.3445.100.39)
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/m_K0udpSADX15oXxPhlihP9TECE>
Subject: Re: [art] Question regarding RFC 8089
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Dec 2018 08:47:44 -0000
Hi John, I think that's correct -- and a worthy clarification for existing schemes. Cheers, > On 18 Dec 2018, at 7:17 pm, John C Klensin <john-ietf@jck.com> wrote: > > However, Mark, it seems to me to be entirely appropriate, and > consistent with 3986, for a scheme definition to state whether > or not a fragment identifier is permitted. That is very > different from specifying the details of the syntax or semantics > of that identifier if it is allowed and it is not clear to me > from reading 3986 whether the default, if the scheme definition > doesn't say anything, is "yes" or "no". > > john > > > --On Tuesday, December 18, 2018 09:09 +1100 Mark Nottingham > <mnot@mnot.net> wrote: > >> To add a bit - >> >> URI scheme definitions are supposed *not* to define fragment >> identifiers, since their interpretation is dependent upon the >> media type, not the scheme. >> >> This has caused confusion in the past; see >> <https://github.com/httpwg/http-core/issues/103>. >> >> Cheers, >> >> >>> On 18 Dec 2018, at 9:04 am, Julian Reschke >>> <julian.reschke@gmx.de> wrote: >>> >>> On 2018-12-17 22:57, Matthew Kerwin wrote: >>>> On Tue, 18 Dec 2018 at 03:15, Stephan Bergmann >>>> <sbergman@redhat.com> wrote: >>>>> >>>>> Is it intentionally so that file URIs do not support >>>>> neither a query nor a fragment part? At least, that is how >>>>> I read RFC 8089 section 2 in combination with RFC 3986 >>>>> section 3. >>>>> >>>> I would say: a bit yes, a bit no. There was definitely no >>>> support for query or fragment in RFC 1630 nor 1738, and we >>>> never explicitly *added* support in 8089. >>>> The two goals of RFC 8089 were: to publish an RFC for file >>>> URIs with unambiguous status, and to align the >>>> syntax/definition with RFC 3986. According to the letter of >>>> the law (i.e. RFC 3986): "The query component contains >>>> non-hierarchical data that, along with data in the path >>>> component, serves to identify a resource..." So as far as >>>> aligning with that definition, it wouldn't have made sense >>>> to add a query component. Files are identified by purely >>>> hierarchical data. As to the fragment, it's a bit murky, but >>>> the way I read RFC 3986, section 3.5, "The fragment's format >>>> and resolution is ... dependent on the media type of a >>>> potentially retrieved representation..." Since the resource >>>> representation retrieved by dereferencing a file URI doesn't >>>> have a media type (heuristics notwithstanding) it doesn't >>>> make sense to include a fragment component in the URI >>>> scheme, since it would always be undefined. >>>> All that said, file URI syntax is now a subset of the >>>> generic syntax, so you're technically able to parse a file >>>> URI with query and/or fragment components. If that's useful >>>> for you -- e.g. if you are confident that your media type >>>> heuristics are good enough to make fragment components >>>> workable -- then nothing stops you. Clearly the browsers >>>> support it; although I don't know what it would mean for >>>> something like cURL or urllib to have to deal with a query >>>> component, so I don't know how it could be added to the >>>> scheme definition. You could always just go with >>>> https://url.spec.whatwg.org/ instead... A little bit of >>>> whataboutism occurs to me: what about data URIs? They *do* >>>> have media type information, but don't define fragments in >>>> the URI scheme. >>>> ... >>> >>> URI schemes do not *need* to define fragment handling. It's >>> inherent once the media type has been determined. >>> >>> Best regards, Julian >>> >>> _______________________________________________ >>> art mailing list >>> art@ietf.org >>> https://www.ietf.org/mailman/listinfo/art >> >> -- >> Mark Nottingham https://www.mnot.net/ >> >> _______________________________________________ >> art mailing list >> art@ietf.org >> https://www.ietf.org/mailman/listinfo/art > > > > -- Mark Nottingham https://www.mnot.net/
- [art] Question regarding RFC 8089 Stephan Bergmann
- Re: [art] Question regarding RFC 8089 Chris Lilley
- Re: [art] Question regarding RFC 8089 Matthew Kerwin
- Re: [art] Question regarding RFC 8089 Julian Reschke
- Re: [art] Question regarding RFC 8089 Mark Nottingham
- Re: [art] Question regarding RFC 8089 John C Klensin
- Re: [art] Question regarding RFC 8089 Mark Nottingham
- Re: [art] Question regarding RFC 8089 Martin J. Dürst
- Re: [art] Question regarding RFC 8089 Julian Reschke
- Re: [art] Question regarding RFC 8089 Adam Roach
- Re: [art] Question regarding RFC 8089 John C Klensin
- Re: [art] Question regarding RFC 8089 Paul Kyzivat
- Re: [art] Question regarding RFC 8089 John C Klensin
- Re: [art] Question regarding RFC 8089 Dale R. Worley
- Re: [art] Question regarding RFC 8089 Roy T. Fielding
- Re: [art] Question regarding RFC 8089 Dale R. Worley
- Re: [art] Question regarding RFC 8089 Martin J. Dürst
- Re: [art] Question regarding RFC 8089 Roy T. Fielding
- Re: [art] Question regarding RFC 8089 Larry Masinter
- Re: [art] Question regarding RFC 8089 Roy T. Fielding
- Re: [art] Question regarding RFC 8089 Graham Klyne