Re: [Technical Errata Reported] RFC7230 (4667)

Alex Rousskov <rousskov@measurement-factory.com> Thu, 18 August 2016 15:27 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 6598212D99A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 18 Aug 2016 08:27:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.168
X-Spam-Level:
X-Spam-Status: No, score=-8.168 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.247, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 rQ2pIc1R0snG for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 18 Aug 2016 08:27:35 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 261F212D94D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 18 Aug 2016 08:27:35 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1baPAI-0007O0-U1 for ietf-http-wg-dist@listhub.w3.org; Thu, 18 Aug 2016 15:23:30 +0000
Resent-Date: Thu, 18 Aug 2016 15:23:30 +0000
Resent-Message-Id: <E1baPAI-0007O0-U1@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <rousskov@measurement-factory.com>) id 1baPAD-0007NF-5N for ietf-http-wg@listhub.w3.org; Thu, 18 Aug 2016 15:23:25 +0000
Received: from mail.measurement-factory.com ([104.237.131.42]) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <rousskov@measurement-factory.com>) id 1baPA3-0006LD-T6 for ietf-http-wg@w3.org; Thu, 18 Aug 2016 15:23:24 +0000
Received: from [65.102.233.169] (unknown [65.102.233.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.measurement-factory.com (Postfix) with ESMTPSA id 7C898E06C; Thu, 18 Aug 2016 15:22:52 +0000 (UTC)
To: Alexey Melnikov <alexey.melnikov@isode.com>
References: <20160413160504.63AB6180006@rfc-editor.org> <BC8FFB7E-CAC0-4BA2-958D-6256B20AA2F0@mnot.net> <98a34e2a-3840-75a8-4c70-1551a693cca0@measurement-factory.com> <A6759F3D-1258-45ED-9DA5-1091334C5E30@isode.com>
Cc: ietf-http-wg@w3.org
From: Alex Rousskov <rousskov@measurement-factory.com>
Message-ID: <3ae129bf-ac8f-923f-4778-9d6b3108a21d@measurement-factory.com>
Date: Thu, 18 Aug 2016 09:22:41 -0600
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <A6759F3D-1258-45ED-9DA5-1091334C5E30@isode.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=104.237.131.42; envelope-from=rousskov@measurement-factory.com; helo=mail.measurement-factory.com
X-W3C-Hub-Spam-Status: No, score=-5.7
X-W3C-Hub-Spam-Report: AWL=-1.226, BAYES_00=-1.9, RP_MATCHES_RCVD=-0.548, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1baPA3-0006LD-T6 e11f5160bf86ecad0171fcaf859dcdf2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7230 (4667)
Archived-At: <http://www.w3.org/mid/3ae129bf-ac8f-923f-4778-9d6b3108a21d@measurement-factory.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32317
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 08/18/2016 03:19 AM, Alexey Melnikov wrote:

> Can you please send me how you would like the erratum to look like,
> containing 3 parts: old text, new text and comments? Then I will get
> it fixed.

Here are the three requested parts:

Section: 4.1.1

Original Text
-------------

chunk-ext      = *( ";" chunk-ext-name [ "=" chunk-ext-val ] )


Corrected Text
--------------
chunk-ext      = *( BWS ";" BWS chunk-ext-name [ BWS "=" BWS
chunk-ext-val ] )


Notes
-----

The infamous "implicit *LWS" syntax rule in RFC 2616 allowed whitespace
between chunk-ext parts. Some HTTP agents generate that whitespace. In
my experience, HTTP agents that can parse chunk extensions usually can
handle that whitespace. Moreover, ICAP, which utilizes HTTP/1 chunked
encoding, uses that whitespace when defining the "ieof" chunk extension
in RFC 3507 Section 4.5:

      \r\n
      0; ieof\r\n\r\n

HTTPbis RFCs already allow BWS around "=" for transfer-parameter and
auth-param that have similar syntax. HTTPbis RFCs already allow OWS
around ";" in transfer-extension, accept-ext, t-ranking, media-type, and
other constructs with similar syntax.

For consistency and backward compatibility reasons, RFC 7230 should
allow BWS between chunk-ext parts. IMHO, RFC 7230 should allow OWS
around ";" instead, but I failed to convince the HTTP WG that OWS is
better than BWS there.