Re: [Technical Errata Reported] RFC7230 (4189)
Barry Leiba <barryleiba@computer.org> Wed, 22 April 2015 14:09 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 89B791A9244 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 22 Apr 2015 07:09:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.69
X-Spam-Level:
X-Spam-Status: No, score=-5.69 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_52=0.6, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 lu9cvh69gmnH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 22 Apr 2015 07:09:20 -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 A545D1A924C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 22 Apr 2015 07:09:12 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1YkvIG-000790-Tf for ietf-http-wg-dist@listhub.w3.org; Wed, 22 Apr 2015 14:06:24 +0000
Resent-Date: Wed, 22 Apr 2015 14:06:24 +0000
Resent-Message-Id: <E1YkvIG-000790-Tf@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <barryleiba@gmail.com>) id 1YkvIB-00078F-PZ for ietf-http-wg@listhub.w3.org; Wed, 22 Apr 2015 14:06:19 +0000
Received: from mail-ig0-f178.google.com ([209.85.213.178]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <barryleiba@gmail.com>) id 1YkvIA-00049e-9L for ietf-http-wg@w3.org; Wed, 22 Apr 2015 14:06:19 +0000
Received: by igblo3 with SMTP id lo3so42310668igb.0 for <ietf-http-wg@w3.org>; Wed, 22 Apr 2015 07:05:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Bsa72LQgewfm8eJZxnHCrLcodkyk93ivBgGWoj65PIQ=; b=OABlPeJpFXLY0+aIAUIuhw3uJZTgXKPNsGh3GLzznEA2UukACRJ2SixGRQaWTDmII8 G6zMMCnEfcJeofF4DL/Hngy/7pcjqtQgPZCnfgOTUqjeaS2dPXRu3tp/tRU6lmvIqcrL Lo6mgwDGua7fTC01bH/aS2QPAekKsHzM13TEwNORNADfXwempoqAP1Db4KTbHS6Ls1Ym 8hffVgob/iyqRpX9uGK5JnJatB/A54wYnGeo7fsnsO7UJPXRC1vcbghjNbuAdSXA61b7 vjzyZNQqStE6HxKBadoR3HhKc3o+lMPaxaabnhs368RHnkssl5+egBjSJVS8TTKh0DXu LTgA==
MIME-Version: 1.0
X-Received: by 10.50.8.6 with SMTP id n6mr4741647iga.12.1429711544158; Wed, 22 Apr 2015 07:05:44 -0700 (PDT)
Sender: barryleiba@gmail.com
Received: by 10.107.7.130 with HTTP; Wed, 22 Apr 2015 07:05:44 -0700 (PDT)
In-Reply-To: <CACuKZqGWi5A_nGxU2L+T3rZGEM6yx5XzwUtP=r2qQ128jkHkCQ@mail.gmail.com>
References: <20141126195639.B3D5C181CE7@rfc-editor.org> <5476D0BC.70905@greenbytes.de> <CALaySJJh-9w2mnT9fV9dxaOJ_Tq=ipvV7nbNbEqY+g_6ppJjTg@mail.gmail.com> <723A86CD-6369-4A8A-B277-CBDA4439DCE9@gbiv.com> <55364CFE.1000007@gmx.de> <CACuKZqEUtPmph1QFgS8HAOvnxtpYm7eBNra9TwCCrOuNy0xGTg@mail.gmail.com> <20150422043125.GC23762@1wt.eu> <CACuKZqGWi5A_nGxU2L+T3rZGEM6yx5XzwUtP=r2qQ128jkHkCQ@mail.gmail.com>
Date: Wed, 22 Apr 2015 10:05:44 -0400
X-Google-Sender-Auth: PUcCjuhQqCSOLEqQHklBh3KgPrQ
Message-ID: <CALaySJ+EX8aUZTRn=TjsAtTZ87Ko23v+6sbeO8DLXuVbYdZYbg@mail.gmail.com>
From: Barry Leiba <barryleiba@computer.org>
To: Zhong Yu <zhong.j.yu@gmail.com>
Cc: Willy Tarreau <w@1wt.eu>, Julian Reschke <julian.reschke@gmx.de>, "Roy T. Fielding" <fielding@gbiv.com>, RFC Errata System <rfc-editor@rfc-editor.org>, Pete Resnick <presnick@qti.qualcomm.com>, Mark Nottingham <mnot@mnot.net>, Simon Schüppel <simon.schueppel@googlemail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="ISO-8859-1"
Received-SPF: pass client-ip=209.85.213.178; envelope-from=barryleiba@gmail.com; helo=mail-ig0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=0.961, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1YkvIA-00049e-9L 58ecc022ebef94222d350176c108ef7e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7230 (4189)
Archived-At: <http://www.w3.org/mid/CALaySJ+EX8aUZTRn=TjsAtTZ87Ko23v+6sbeO8DLXuVbYdZYbg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29370
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>
Interesting, and thanks for testing that. Regardless of whether the change you propose is a good idea or not, I think it does not fall under "errata". It'd be a change we'd have to consider as we advance the HTTP 1.1 specs to Internet Standard... but in this regard, the current documents do say what they were intended to. I'm going to go ahead and mark this errata report "Verified" with Julian's latest edit. And thanks, everyone, for taking the time to sort this out. Barry On Wed, Apr 22, 2015 at 9:55 AM, Zhong Yu <zhong.j.yu@gmail.com> wrote: > Well, Willy you are right that we cannot change a rule that has been > in effect for 20 years. If a parser doesn't follow the rule, it is a > bug, and it needs to be fixed. > > Out of curiosity, I constructed the following response, and tested on > 5 major browsers > > HTTP/1.1 200 OK\r\n > Connection: close\r\n > Content-Type: text/plain;charset=UTF-8\r\n > <SP>\r\n > Server: test-folding\r\n > \r\n > 123456789 > > IE displays the response as > > Server: test-folding\r\n > \r\n > 123456789 > > That doesn't seem right. > > Zhong Yu > bayou.io > > > > > On Tue, Apr 21, 2015 at 11:31 PM, Willy Tarreau <w@1wt.eu> wrote: >> On Tue, Apr 21, 2015 at 10:24:47AM -0500, Zhong Yu wrote: >>> Another question about obs-fold before we proceed with the formal >>> definitions. Consider the following example >>> >>> foo: bar<CRLF> >>> <SP><CRLF> >>> ... >>> >>> It won't be surprising if some parser mistakes the 2nd line as an >>> "empty line" that terminates the headers. Visually it *is* an empty >>> line. >>> >>> In spirit, obs-fold should be followed by visible chars, otherwise >>> it's very confusing and problematic. >> >> I disagree, a parser doesn't "see" characters, it consumes them. Here >> you have a space after a CRLF, so it's a continuation of a folded header, >> that's as simple as that. And it's important that it's properly defined >> so that it's not abused by senders trying to put parsers in a situation >> which is not well defined. >> >>> RFC 822 $3.2 appears to suggest the same thing, that obs-fold can only >>> appear between two non-empty segments. >> >> And what is the parser supposed to do if it receives something which does >> not match this rule ? That's always the problem when adding exceptions to >> well-defined rules, it requires more work on the recipient side to properly >> handle the situation. In short, it *adds* more risks of confusion. >> >> Regards, >> Willy >>
- [Technical Errata Reported] RFC7230 (4189) RFC Errata System
- Re: [Technical Errata Reported] RFC7230 (4189) Julian Reschke
- Re: [Technical Errata Reported] RFC7230 (4189) Zhong Yu
- Re: [Technical Errata Reported] RFC7230 (4189) Barry Leiba
- Re: [Technical Errata Reported] RFC7230 (4189) Roy T. Fielding
- Re: [Technical Errata Reported] RFC7230 (4189) Barry Leiba
- Re: [Technical Errata Reported] RFC7230 (4189) Zhong Yu
- Re: [Technical Errata Reported] RFC7230 (4189) Barry Leiba
- Re: [Technical Errata Reported] RFC7230 (4189) Julian Reschke
- Re: [Technical Errata Reported] RFC7230 (4189) Julian Reschke
- Re: [Technical Errata Reported] RFC7230 (4189) Julian Reschke
- Re: [Technical Errata Reported] RFC7230 (4189) Amos Jeffries
- Re: [Technical Errata Reported] RFC7230 (4189) Zhong Yu
- Re: [Technical Errata Reported] RFC7230 (4189) Zhong Yu
- Re: [Technical Errata Reported] RFC7230 (4189) Willy Tarreau
- Re: [Technical Errata Reported] RFC7230 (4189) Zhong Yu
- Re: [Technical Errata Reported] RFC7230 (4189) Barry Leiba
- [Errata Held for Document Update] RFC7230 (4189) RFC Errata System
- Re: [Technical Errata Reported] RFC7230 (4189) Willy Tarreau
- Re: [Technical Errata Reported] RFC7230 (4189) Walter H.
- Re: [Technical Errata Reported] RFC7230 (4189) Julian Reschke