Re: [hybi] ws: and wss: schemes

Julian Reschke <julian.reschke@gmx.de> Thu, 17 September 2009 10:34 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0F6C53A6976 for <hybi@core3.amsl.com>; Thu, 17 Sep 2009 03:34:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.645
X-Spam-Level:
X-Spam-Status: No, score=-4.645 tagged_above=-999 required=5 tests=[AWL=-2.046, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pLt8hEKhQGgB for <hybi@core3.amsl.com>; Thu, 17 Sep 2009 03:34:31 -0700 (PDT)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by core3.amsl.com (Postfix) with SMTP id B21613A67ED for <hybi@ietf.org>; Thu, 17 Sep 2009 03:34:30 -0700 (PDT)
Received: (qmail invoked by alias); 17 Sep 2009 10:35:20 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.117]) [217.91.35.233] by mail.gmx.net (mp043) with SMTP; 17 Sep 2009 12:35:20 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+cgI8m53ucfBFFaxtB9UP/uK+86A/+Xdou7H9p50 bQ0GHvY7/UHelz
Message-ID: <4AB2109E.3030401@gmx.de>
Date: Thu, 17 Sep 2009 12:34:06 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: Ian Hickson <ian@hixie.ch>
References: <Pine.LNX.4.62.0908070531430.28566@hixie.dreamhostps.com> <1249651007.25446.8934.camel@dbooth-laptop> <0B450D619CC0486E8BD51C31FBA214AD@POCZTOWIEC> <20090812021926.GC19298@shareable.org> <AB9A0CF094F04D39BC7DC5DEAFF7FC1C@POCZTOWIEC> <4AA8A2CE.3000801@it.aoyama.ac.jp> <34660A8503164BE88641374ADF2BF1A3@POCZTOWIEC> <20090910124618.GB32178@shareable.org> <11DFA16908CB4B7D8AF0F45975DE425A@POCZTOWIEC> <20090910224151.GA17387@shareable.org> <Pine.LNX.4.62.0909170834040.14605@hixie.dreamhostps.com> <4AB205B8.9090005@gmx.de> <Pine.LNX.4.62.0909171012140.20271@hixie.dreamhostps.com>
In-Reply-To: <Pine.LNX.4.62.0909171012140.20271@hixie.dreamhostps.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-FuHaFi: 0.5
Cc: URI <uri@w3.org>, hybi@ietf.org, uri-review@ietf.org, "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Subject: Re: [hybi] ws: and wss: schemes
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Sep 2009 10:34:32 -0000

Ian Hickson wrote:
> ...
>> I meant Section 3.1, which essentially is useless, as it replicates 
>> what's said in the ABNF in the registration template.
> 
> The ABNF doesn't say how you parse the URI, it says how you check if it's 
> valid. Section 3.1 doesn't say how you parse the URI, it says how you 

Actually, unless it's ambiguous, an ABNF *does* define how to parse.

> apply the algorithm from [WebAddresses] in a way that extracts the fields 
> you need to use Web Sockets.

As far as I can tell, it's pretty stand-alone, except for a reference to 
the "resolve the URL" algorithm, which doesn't seem to make sense here.

>>>> I hear that by specifying an algorithm you want to exclude certain
>>>> standard things like fragments, and include error handling; but I think
>>>> ABNF + prose would be much easier to understand.
>>> Please send such feedback to Larry; I am no longer editing those algorithms.
>> I'm still talking about WebSockets, Part 3.1.
> 
> I have no idea how ABNF could possibly be used in section 3.1. Could you 
> show an example of what you mean?

Just use the same ABNF, state which parts define the resource name (and 
what it means), and be done with it.

>>>> Furthermore, fragment identifiers are orthogonal to the URI scheme, 
>>>> see 
>>>> <http://greenbytes.de/tech/webdav/rfc3986.html#rfc.section.3.5.p.2>:
>>>>
>>>> "Fragment identifier semantics are independent of the URI scheme and 
>>>> thus cannot be redefined by scheme specifications."
>>> I've no idea to what you are referring here. Where are fragment 
>>> identifiers even mentioned in the Web Socket protocol spec?
>> You did mention them on IRC 
>> (<http://krijnhoetmer.nl/irc-logs/whatwg/20090904#l-1007>):
>>
>>> # [23:26] <Hixie> annevk3: and i want the frag-id case to be invalid 
>>> before conversion
>> What I'm trying to explain is you can't make frag-ids "invalid", even by 
>> the way you specify the parsing.
> 
> Ok.
> 
> I encourage you to review the actual spec, and not my comments on IRC.

That conversation seemed to explain why you are including all that 
specification text that IMHO is useless. I was just pointing out that, 
if the reason is to exclude fragment IDs, this is not going to have the 
effect you seem to intend.

Best regards, Julian