Re: [apps-discuss] Scope of RFC3986 and successor - what is a URI?

Sam Ruby <rubys@intertwingly.net> Thu, 15 January 2015 15:32 UTC

Return-Path: <rubys@intertwingly.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 280FD1B2C5B for <apps-discuss@ietfa.amsl.com>; Thu, 15 Jan 2015 07:32:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 t_0PiVOULSRs for <apps-discuss@ietfa.amsl.com>; Thu, 15 Jan 2015 07:32:12 -0800 (PST)
Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by ietfa.amsl.com (Postfix) with ESMTP id 65EBF1B2C59 for <apps-discuss@ietf.org>; Thu, 15 Jan 2015 07:32:07 -0800 (PST)
Received: from [98.27.51.253] ([98.27.51.253:44544] helo=rubix) by cdptpa-oedge01 (envelope-from <rubys@intertwingly.net>) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 32/6C-18452-67DD7B45; Thu, 15 Jan 2015 15:32:06 +0000
Received: from [192.168.1.102] (unknown [192.168.1.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rubys) by rubix (Postfix) with ESMTPSA id 9A0DC140CA1; Thu, 15 Jan 2015 10:32:06 -0500 (EST)
Message-ID: <54B7DD76.1010707@intertwingly.net>
Date: Thu, 15 Jan 2015 10:32:06 -0500
From: Sam Ruby <rubys@intertwingly.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: Julian Reschke <julian.reschke@gmx.de>
References: <20140926010029.26660.82167.idtracker@ietfa.amsl.com> <CACweHNBN_Bv=jeXQ_VwXi2HzHKNEwZJ1NiF-BJJo_9-mhO60gQ@mail.gmail.com> <54A557E1.6050502@intertwingly.net> <CACweHNCQZg1U1u8U=-f6h0+BPnp6Wr_T=r_wGiPAbhTbuMCGWQ@mail.gmail.com> <54A94109.5010901@intertwingly.net> <00cf01d02cc7$d5dba4c0$4001a8c0@gateway.2wire.net> <54B16C2B.9050604@seantek.com> <54B17BBE.4000900@intertwingly.net> <54B18B61.8010308@seantek.com> <54B19435.8070401@intertwingly.net> <54B1B211.3050807@seantek.com> <54B1B682.3070609@intertwingly.net> <012001d02d91$6ec42300$4001a8c0@gateway.2wire.net> <54B2781C.4040505@intertwingly.net> <018e01d02dc6$1d03b0a0$4001a8c0@gateway.2wire.net> <54B2CC75.5080900@intertwingly.net> <54B79930.3070009@ninebynine.org> <54B7AEC2.9010109@intertwingly.net> <CAKHUCzz=jZAF-i2_pwGpkER5vNhv95CMwdBCMwigPJ0FA_t4_A@mail.gmail.com> <54B7BD4A.1090803@intertwingly.net> <54B7CF28.7060408@gmx.de> <54B7D605.2060307@intertwingly.net> <54B7D87F.7070402@gmx.de>
In-Reply-To: <54B7D87F.7070402@gmx.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-RR-Connecting-IP: 107.14.168.118:25
X-Cloudmark-Score: 0
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/DuHSIsKkWx0Qt6w9tXVjNO80LmQ>
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Scope of RFC3986 and successor - what is a URI?
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: Thu, 15 Jan 2015 15:32:14 -0000

On 01/15/2015 10:10 AM, Julian Reschke wrote:
> On 2015-01-15 16:00, Sam Ruby wrote:
>> On 01/15/2015 09:31 AM, Julian Reschke wrote:
>>> On 2015-01-15 14:14, Sam Ruby wrote:
>>>> ...
>>>>
>>>> Meanwhile, I do know that there are a number of implementations that
>>>> claim to be RFC 3986 compliant that do not percent encode non-ASCII
>>>> characters contained in fragments.
>>>> ...
>>>
>>> That is a case of "garbage in, garbage out", no? (where "garbage" means
>>> "not a valid URI").
>>>
>>> Or do you have a case where a library accepted a RFC3986-valid fragment
>>> identifier containing percent-escapes and *removed* that escaping?
>>
>> Just so that we are understanding one another: this is a case where some
>> software (in particular a browser) attempted to produce valid URIs per
>> RFC 3986 and things broke as a result.
>
> A broken recipient didn't work, right. What needs to be fixed is the
> recipient, then.

That indeed is one point of view.  Another point of view is that a 
sender attempted to follow a broken standard, and what needs to be fixed 
is the standard.

I'm not saying which point of view is right, I'm merely pointing out 
that there are different points of view.

In order to make progress, it would be helpful if everyone involved 
recognized that there are multiple, valid, points of view.

>>  From this perspective, percent encoding square brackets in query
>> strings is the thing that is broken.  And observing that parsers will
>> retain that brokenness isn't helpful.
>
> So, you're actually asking for two things, right?
>
> 1) allow raw "[" and "]" in queries (and paths, presumably)

I'd like to have that discussion for queries at least.

> 2) stop requiring recipients to remove percent-encoding before comparison

I don't believe I've asked to have that discussion.

> 1) is an interesting discussion to have; it maybe true that the URI spec
> is too defensive, as "[" and "]" are only special in the authority part.
>
> What scares me are the implications of 2) though.

Again, I don't see why 2) is necessary.

>> One possible outcome: this will be yet another case where following RFC
>> 3986 is not recommended.  I intend to capture a list of such cases, and
>> produce a recommendation of what should be done instead.
>
> Can you clarify what you think about 2)? If you don't make that change
> as well, that recipient will continue to be broken.

You seem to be assuming a lot, and it will take peeling back a number of 
layers of the onion to get to where we are understanding each other.

For starters, RFC 3986 essentially punts on topics like normalization 
and comparison:

https://tools.ietf.org/html/rfc3986#page-38

In particular, it explicitly acknoledges the possibility of simple 
string comparison:

https://tools.ietf.org/html/rfc3986#section-6.2.1

I conclude that RFC 3986, as it is currently written, does NOT require 
recipients to remove percent-encoding before comparison, and as such, 
I'm curious as to why you are suggesting that this requirement be removed?

>>> Whose definition of "URL" *does* include "Justin Bieber"?
>>
>> I've been told on this very mailing list just a few days ago that folks
>> have been confusing this very thing:
>>
>> http://www.ietf.org/mail-archive/web/apps-discuss/current/msg13648.html
>>
>> It is replies like that one, and your comment below that is causing me
>> to rapidly lose interest in trying to build on RFC 3986.
>
> I re-read Sean's mail and still don't get what you're referring to.

Here's the quote: "Folks are confusing the "web browser text box at the 
top" with URIs."  It continues with an example: 'For example if you type 
"? ietf"'

- Sam Ruby