Re: [apps-discuss] Fun with URLs and regex

Mark Nottingham <mnot@mnot.net> Wed, 28 January 2015 22:54 UTC

Return-Path: <mnot@mnot.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 67C171A1B82 for <apps-discuss@ietfa.amsl.com>; Wed, 28 Jan 2015 14:54:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level:
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 65MqRYxzKy8z for <apps-discuss@ietfa.amsl.com>; Wed, 28 Jan 2015 14:54:39 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (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 141031A1B7A for <apps-discuss@ietf.org>; Wed, 28 Jan 2015 14:54:39 -0800 (PST)
Received: from [192.168.1.83] (unknown [118.209.44.193]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 9C72022E261; Wed, 28 Jan 2015 17:54:32 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <837DAA83-546E-425A-AD13-003F743B54A9@gbiv.com>
Date: Thu, 29 Jan 2015 09:54:28 +1100
Content-Transfer-Encoding: quoted-printable
Message-Id: <0FC6548B-1BC7-43C1-B421-6174F70D14D8@mnot.net>
References: <C5B10293-E6F6-4348-9782-C9C00A4476CE@mnot.net> <CACweHNBVOrVMesB7HOjPNHe5FtzL1k9XDGAHUXAx5DbOSYv5jA@mail.gmail.com> <A1E5B0EC-FAD5-4178-8C7B-540BEB61DC06@mnot.net> <54AEB660.1020701@intertwingly.net> <F122ADA8-4A96-4F88-BB9F-3C5C6A544067@mnot.net> <54C84872.5040902@intertwingly.net> <EF1E36FA-6A30-4A65-9520-5A31571EE445@mnot.net> <54C95132.2060402@gmx.de> <154ABFBB-AB8C-447A-89A3-D1746EFBF1C6@gbiv.com> <54C95AF7.6030703@gmx.de> <837DAA83-546E-425A-AD13-003F743B54A9@gbiv.com>
To: Roy Fielding <fielding@gbiv.com>
X-Mailer: Apple Mail (2.1993)
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/AKfeG-33rY3i_XtT-2hncDn9Uq4>
Cc: "Julian F. Reschke" <julian.reschke@gmx.de>, IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Fun with URLs and regex
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: Wed, 28 Jan 2015 22:54:41 -0000

On 29 Jan 2015, at 9:06 am, Roy T. Fielding <fielding@gbiv.com> wrote:
> 
> On Jan 28, 2015, at 1:56 PM, Julian Reschke wrote:
>> On 2015-01-28 22:40, Roy T. Fielding wrote:
>>> On Jan 28, 2015, at 1:14 PM, Julian Reschke wrote:
>>>> On 2015-01-28 06:36, Mark Nottingham wrote:
>>>>> ... which brings about another interesting observation -- only http and https define fragments in their syntax; the other schemes do not.
>>>>> ...
>>>> 
>>>> It's because you asked for that in <https://lists.w3.org/Archives/Public/ietf-http-wg/2013AprJun/0187.html>, and apparently were successful in convincing Roy.
>>> 
>>> It is a very very very old debate regarding whether the fragment is part
>>> of a URI or something attached to the end of a URI, but that was resolved
>>> in RFC3986 (since the only thing that really matters here is that a fragment
>>> is going to be parsed as such regardless of the scheme).
>>> 
>>> HTTP was merely updated to reflect what STD66 calls a URI.
>> 
>> I agree that the fragment is part of the URI; the question, as far as I understand, is whether the *scheme* definition should include the fragment, given the fact that you can attach a fragment to any URI anyway.
> 
> The answer is "no".  http://tools.ietf.org/html/rfc3986#section-4.3
> 
> I don't know how I got beaten into submission on that for RFC7230.

I followed the e-mail discussion, resulting issue to the ultimate commit:
   <http://trac.tools.ietf.org/wg/httpbis/trac/changeset/2279>

I wouldn't call it a beating -- you didn't seem to need much convincing at all :)

That aside, it looks like we need an errata here...

It does look like draft-ietf-appsawg-uri-scheme-reg clarifies this, which is gratifying.

Cheers,

--
Mark Nottingham   https://www.mnot.net/