Re: p1: BWS

Julian Reschke <julian.reschke@gmx.de> Fri, 19 April 2013 09:36 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5EC8521F9199 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Apr 2013 02:36:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bD8zpoWtLGhQ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 19 Apr 2013 02:36:47 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 90B9D21F902A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 19 Apr 2013 02:36:47 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UT7jG-0002kX-QC for ietf-http-wg-dist@listhub.w3.org; Fri, 19 Apr 2013 09:35:38 +0000
Resent-Date: Fri, 19 Apr 2013 09:35:38 +0000
Resent-Message-Id: <E1UT7jG-0002kX-QC@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1UT7jD-0002jn-P2 for ietf-http-wg@listhub.w3.org; Fri, 19 Apr 2013 09:35:35 +0000
Received: from mout.gmx.net ([212.227.15.18]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1UT7jC-0003zc-Ec for ietf-http-wg@w3.org; Fri, 19 Apr 2013 09:35:35 +0000
Received: from mailout-de.gmx.net ([10.1.76.1]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MFOX4-1UH4Vq2rcy-00ELa3 for <ietf-http-wg@w3.org>; Fri, 19 Apr 2013 11:35:06 +0200
Received: (qmail invoked by alias); 19 Apr 2013 09:35:06 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.105]) [217.91.35.233] by mail.gmx.net (mp001) with SMTP; 19 Apr 2013 11:35:06 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18uPfICsaku+dMEQDXFiD1PIBy71/rDk7YaStwSnU zr9CmuesC28JVH
Message-ID: <51710FC3.9060200@gmx.de>
Date: Fri, 19 Apr 2013 11:34:59 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: Mark Nottingham <mnot@mnot.net>
CC: Roberto Peon <grmocg@gmail.com>, Willy Tarreau <w@1wt.eu>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
References: <DB8598D0-7AD8-4A90-806B-E4C7B65118D7@mnot.net> <516F76CB.20406@treenet.co.nz> <20130418060211.GC13063@1wt.eu> <468FAE72-012D-43EB-A5A7-EAA137687F87@mnot.net> <CAP+FsNdrf-7h=8+68AirD8jJRvhBXf-1uxmXc_3R80418yW2uA@mail.gmail.com> <D258E088-782D-4E16-976C-235F94520964@mnot.net>
In-Reply-To: <D258E088-782D-4E16-976C-235F94520964@mnot.net>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=212.227.15.18; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.450, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UT7jC-0003zc-Ec bee1ce482a25a3732cbd01a27741c021
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p1: BWS
Archived-At: <http://www.w3.org/mid/51710FC3.9060200@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17357
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2013-04-19 00:27, Mark Nottingham wrote:
> We can either:
>
> - make it a MUST
> - document what the exceptional circumstances are that cause the SHOULD (but I don't think it's that kind of SHOULD)
> - downgrade it to an "ought to"
>
> I do note that we say "generate" there (which I missed before, sorry); in our terminology, that means you DON'T need to fix it up when forwarding it; it's only when you're actually creating the element that this applies.
>
> So, I'd suggest we make it a MUST, and change the language slightly to clarify:
>
> "...but it MUST NOT be generated in messages..."

I have no problem with *that* change.

What concerns we much more is the "MUST accept such bad optional 
whitespace and remove it before interpreting the field value or 
forwarding the message downstream" -- that part is fine for parsing the 
message itself (everybody needs to be able to do that), but *not* ok for 
individual field values. We need a distinction here.

> Also, in p2, I'd note that we do NOT allow BWS inside of media type parameters:
>    https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p2-semantics.html#media.type
>
> AIUI (thanks, Julian), this is because many implementations don't accept whitespace there at all. It might be worth noting in the text that this parameter construct is different in that aspect.

I don't know whether it's because of implementations following the spec, 
or the spec following implementations.

Somewhat outdated tests are over here: 
<http://greenbytes.de/tech/tc/httpcontenttype/>

I'm more than happy to require recipients to handle BWS here for 
consistency with other header fields, as long as we tell generators to 
never ever use it.

Best regards, Julian