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

<darrel.miller@gmail.com> Sun, 18 January 2015 01:49 UTC

Return-Path: <darrel.miller@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 324991ACE2A for <apps-discuss@ietfa.amsl.com>; Sat, 17 Jan 2015 17:49:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.018
X-Spam-Level:
X-Spam-Status: No, score=-1.018 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_FONT_FACE_BAD=0.981, 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 PrehUSPG72FC for <apps-discuss@ietfa.amsl.com>; Sat, 17 Jan 2015 17:49:24 -0800 (PST)
Received: from mail-qg0-x22c.google.com (mail-qg0-x22c.google.com [IPv6:2607:f8b0:400d:c04::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 60C7C1ACD96 for <apps-discuss@ietf.org>; Sat, 17 Jan 2015 17:49:24 -0800 (PST)
Received: by mail-qg0-f44.google.com with SMTP id l89so12452718qgf.3 for <apps-discuss@ietf.org>; Sat, 17 Jan 2015 17:49:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:mime-version:from:to:cc:subject:importance:date :in-reply-to:references:content-type; bh=ztEYLRggdzPOihYx+rCdcXwvGTlKB6iO098ZVmDYL5M=; b=t2WWP5arVnkdi6s1SgPGteb8xZ+A0r6z3RIuHnswBG0rIYfShB3LeWdcBvWiXjpm7g T/LEjP1SV3Udo3K+vhiKO4JOonEsZR3rbB7xYMT/8qDl2bcLxB819Vu4adm5iqsjD5DH 4n/tAR3LOM8ruPbmBxtRZi0lOU1JKjKS8qb0YE0MkRwhE9ETZDu+Llp+GCth+WVVGCqW O0aN6ioI5Clg4WFQDCKi3viCMiJnIJAvOjEP58eh2pgdC/sbJyf7iUQC7Xm/eDYQ5Lz0 DzulEvkIKIBOJfSn9Zuacl0EDTF4R/oXcX2xVrUkONhrZEGK2NTtHDz7yqZmqZO1V31N jNUw==
X-Received: by 10.140.100.248 with SMTP id s111mr35583566qge.44.1421545763604; Sat, 17 Jan 2015 17:49:23 -0800 (PST)
Received: from Pecan (bas11-montreal02-1128535737.dsl.bell.ca. [67.68.22.185]) by mx.google.com with ESMTPSA id l10sm4108263qay.22.2015.01.17.17.49.22 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Jan 2015 17:49:22 -0800 (PST)
Message-ID: <54bb1122.4aa6e00a.410f.ffff88b3@mx.google.com>
MIME-Version: 1.0
From: darrel.miller@gmail.com
To: Sam Ruby <rubys@intertwingly.net>, mike amundsen <mamund@yahoo.com>
Importance: Normal
Date: Sun, 18 Jan 2015 01:08:59 +0000
In-Reply-To: <54BAC447.7030706@intertwingly.net>
References: <20140926010029.26660.82167.idtracker@ietfa.amsl.com> <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> <f5boaq0gdw5.fsf@troutbeck.inf.ed.ac.uk> <54B806A2.8020803@intertwingly.net> <CAKHUCzzN4Eu6R_f2Sf8EtiAp-8w3ds5Yp3-PBHK+B0wGRxEtmw@mail.gmail.com> <54b9381b.8ca1e00a.243f.ffffcae4@mx.google.com> <98A81DE7-1845-46EC-A3EB-F00438863ECB@seantek.com> <54B93F2A.5070900@intertwingly.net> <54BA7EE2.1040102@ninebynine.org> <54BAB143.1080006@intertwingly.net> <CAPW_8m6ju6QFmp_pvby72KXYAyOCOVOvhbf9VfP384=5QKFwUA@mail.gmail.com>, <54BAC447.7030706@intertwingly.net>
Content-Type: multipart/alternative; boundary="_6256A262-4134-4E04-86E7-F3E49BFB5969_"
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/ozpI9sjfOTYkwXLFwON0EbJasMY>
Cc: IETF Apps Discuss <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: Sun, 18 Jan 2015 01:49:26 -0000




From: Sam Ruby

> I have trouble with the words "existing *spec-compliant* implementations".

> Either that term is meaningless, or I have yet to find one.



>I've taken a look at a lot of libraries that produce and consume URIs 
>(some call them URLs, but lets not worry about that for the moment).  I 
>have yet to find one that is spec compliant.



Again I can only speak for the tests that you are doing on the csharp implementation, but the test results are far from conclusive when it comes to comparing against RFC 3986.  From looking at your makefile, I’m making a guess that you are using mono to build the csharp code.  The System.Uri class is actually part of the .net framework.  Currently there are multiple versions/editions of the .net framework in addition to the mono version.  Even within the Microsoft .net framework there are configuration settings that control URI parsing behavior


You can turn on IRI compliant parsing with a global setting.  http://msdn.microsoft.com/en-us/library/bb882600(v=vs.110).aspx  The default of this global setting was changed from false to true on the move from .Net 4.0 to 4.5.


You can also configure all kinds of other behavior related to URI parsing

http://msdn.microsoft.com/en-us/library/bb882619%28v=vs.110%29.aspx


My reason for bringing up these details is because I believe that declaring RFC 3986 invalid because implementations don't match its behavior is self-defeating.  IMHO, a spec should be a goal that implementations aim for, not a reflection of the behavior of an implementation that currently has the biggest market share.


Having said all this, I will try and run your tests on various versions of Microsoft’s .net framework and see how much the results deviate.  I did try running your C# tests, but they are based on a JSON file that I believe gets created by some javascript that I didn’t find.  My js skills are less than stellar!


Darrel