p1: BWS

Mark Nottingham <mnot@mnot.net> Thu, 18 April 2013 01:19 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 705BB21E80EB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 18:19:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.463
X-Spam-Level:
X-Spam-Status: No, score=-9.463 tagged_above=-999 required=5 tests=[AWL=1.136, 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 5RKB7suAVHvi for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 17 Apr 2013 18:19:32 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 227CD21E80D7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 17 Apr 2013 18:19:32 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1USdUw-0005sd-N9 for ietf-http-wg-dist@listhub.w3.org; Thu, 18 Apr 2013 01:18:50 +0000
Resent-Date: Thu, 18 Apr 2013 01:18:50 +0000
Resent-Message-Id: <E1USdUw-0005sd-N9@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1USdUu-0005rt-Ev for ietf-http-wg@listhub.w3.org; Thu, 18 Apr 2013 01:18:48 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1USdUt-0003fC-SA for ietf-http-wg@w3.org; Thu, 18 Apr 2013 01:18:48 +0000
Received: from [192.168.1.80] (unknown [118.209.210.200]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 1590622E200 for <ietf-http-wg@w3.org>; Wed, 17 Apr 2013 21:18:25 -0400 (EDT)
From: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-Id: <DB8598D0-7AD8-4A90-806B-E4C7B65118D7@mnot.net>
Date: Thu, 18 Apr 2013 11:18:22 +1000
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.358, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1USdUt-0003fC-SA eff0a96d88c02e582138710f5197e38f
X-Original-To: ietf-http-wg@w3.org
Subject: p1: BWS
Archived-At: <http://www.w3.org/mid/DB8598D0-7AD8-4A90-806B-E4C7B65118D7@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17322
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>

p1 3.2.3 says:

>    BWS is used where the grammar allows optional whitespace, for
>    historical reasons, but senders SHOULD NOT generate it in messages;
>    recipients MUST accept such bad optional whitespace and remove it
>    before interpreting the field value or forwarding the message
>    downstream.

  http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-22#section-3.2.3

Throughout our specs, BWS is used at the end of header fields:
     header-field   = field-name ":" OWS field-value BWS

and in transfer-codings:
     transfer-parameter = attribute BWS "=" BWS value

and in Expect headers:
  expectation  = expect-name [ BWS "=" BWS expect-value]
                             *( OWS ";" [ OWS expect-param ] )
  expect-param = expect-name [ BWS "=" BWS expect-value ]

and, finally, in auth-params on challenges and credentials:
  auth-param     = token BWS "=" BWS ( token / quoted-string )

Is this whitespace really "bad" enough to MUST-require that intermediaries (including load balancers and other hardware!) remove it before forwarding the message?

Cheers,

--
Mark Nottingham   http://www.mnot.net/