Re: #409: is parsing OBS-FOLD mandatory?

Mark Nottingham <mnot@mnot.net> Sun, 20 January 2013 02:38 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 7401D21F8767 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 19 Jan 2013 18:38:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.116
X-Spam-Level:
X-Spam-Status: No, score=-9.116 tagged_above=-999 required=5 tests=[AWL=1.483, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MxLjsvWUDhTF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 19 Jan 2013 18:38:51 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DCB5321F89E5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 19 Jan 2013 18:38:45 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TwknG-0001l9-50 for ietf-http-wg-dist@listhub.w3.org; Sun, 20 Jan 2013 02:37:58 +0000
Resent-Date: Sun, 20 Jan 2013 02:37:58 +0000
Resent-Message-Id: <E1TwknG-0001l9-50@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TwknB-0001kQ-1Q for ietf-http-wg@listhub.w3.org; Sun, 20 Jan 2013 02:37:53 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TwknA-0001sV-6K for ietf-http-wg@w3.org; Sun, 20 Jan 2013 02:37:52 +0000
Received: from [192.168.1.80] (unknown [118.209.240.13]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7153522E256; Sat, 19 Jan 2013 21:37:29 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <2536D335-9BA5-49E2-B49A-2475C069E4D8@mnot.net>
Date: Sun, 20 Jan 2013 13:37:26 +1100
Cc: Roy Fielding <fielding@gbiv.com>, Willy Tarreau <w@1wt.eu>
Content-Transfer-Encoding: quoted-printable
Message-Id: <8ADB8661-7EBB-429A-80BD-F38884751882@mnot.net>
References: <12F24972-5720-40B7-BF17-3A1955752199@mnot.net> <1D461B53-7FF5-41EB-A891-5B309F116DF0@gbiv.com> <20121212211838.GC19220@1wt.eu> <3BDA9E87-5771-49D3-A739-AA1B1F179484@mnot.net> <20121219071858.GD21050@1wt.eu> <2536D335-9BA5-49E2-B49A-2475C069E4D8@mnot.net>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1499)
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.2
X-W3C-Hub-Spam-Report: AWL=-3.241, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1TwknA-0001sV-6K 182597bf39c4ae3b230faefc95e1224f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #409: is parsing OBS-FOLD mandatory?
Archived-At: <http://www.w3.org/mid/8ADB8661-7EBB-429A-80BD-F38884751882@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16033
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>

Anyone? Bueller?

To make it clear -- I propose we downgrade recipient support for OBS-FOLD to a prose recommendation. 

Am happy to hear well-reasoned opinions to the contrary (but see note about interop testing below).


On 09/01/2013, at 9:54 PM, Mark Nottingham <mnot@mnot.net> wrote:

> 
> On 19/12/2012, at 6:18 PM, Willy Tarreau <w@1wt.eu> wrote:
> 
>> On Wed, Dec 19, 2012 at 11:55:26AM +1100, Mark Nottingham wrote:
>>> 
>>> On 13/12/2012, at 8:18 AM, Willy Tarreau <w@1wt.eu> wrote:
>>> 
>>>> On Wed, Dec 12, 2012 at 10:18:28AM -0800, Roy T. Fielding wrote:
>>>> (...)
>>>>>> """
>>>>>> If a received protocol element is processed, the recipient MUST be able to parse any value that would match the ABNF rules for that protocol element, excluding only those rules not applicable to the recipient's role, and those rules whose names begin with "obs-" (e.g., obs-fold).
>>>>>> """
>>>>> 
>>>>> Do we really want to exclude non-ASCII octets (obs-text) and older
>>>>> date formats (obs-date)?  Do we demote them to SHOULD or MAY?
>>>> 
>>>> This is a good point. Line-folding causes security issues and does not
>>>> seem to be used by senders, but I think we all regularly catch some
>>>> obs-text and obs-date come from old applications or crippled devices.
>>>> 
>>>>> This change is fine with me, but it is a hard break from retaining
>>>>> compatibility and we need to be absolutely sure we want to do that.
>>>> 
>>>> I'd rather not break these ones, personally.
>>>> 
>>>> Couldn't we settle on just stating that obs-fold is normally not used,
>>>> is known to cause security issues when improperly implemented, and
>>>> should either be completely supported, or rejected, but in all cases
>>>> must be detected ?
>>> 
>>> 
>>> I'm OK with it either way, as long as we're clear about what we mean, as well
>>> as what's interoperable.
>>> 
>>> This statement is still ambiguous;
>>> 
>>> """
>>> As a convention, ABNF rule names prefixed with "obs-" denote "obsolete"
>>> grammar rules that appear for historical reasons.
>>> """
>>> 
>>> Perhaps we could start by 
>>> 
>>> 1) clarifying what "obsolete" means for senders and recipients in the error
>>> handling section (I think we've already done most of this, see other part of
>>> thread)
>>> 2) referring to that clarification in the ABNF statement quoted above (easy fix)
>>> 3) re-evaluating the use of the obs- prefix in each case (???)
>> 
>> That sounds like a reasonable plan.
>> 
>>> Personally, I think obs-date and obs-text are justified in having the prefix
>>> and resulting SHOULD, because they're not really interoperable.
>> 
>> OK. So "SHOULD" could be the default rule for obs-* and exceptions could
>> be handled specifically (eg: obs-fold).
> 
> 
> Right now, we have:
>  obs-fold - senders MUST NOT generate, recipients MUST accept
>  obs-text - new headers SHOULD NOT use, recipients SHOULD treat as opaque data 
>  obs-date - sender MUST NOT generate (implied by MUST), recipient parsers MUST accept
> 
> obs-fold was a "recipients SHOULD accept" before Roy's change. 
> 
> I suppose we could come up with a more rigid definition of what "obs-" means here, but that seems like it's sort of diminishing returns.
> 
> The issue here, I think, is whether or not we're requiring recipients to deal with line folding.
> 
> Some quick and dirty testing shows it's not interoperable. By sending requests in this form:
> 
> GET / HTTP/1.1
> Host:
>    [hostname]
> User-Agent: Foo/1.0
> 
> which our ABNF currently allows, I got errors on several sites. Given that, I wonder why requiring it to be accepted is necessary; making those sites non-conformant (as well as any clients that behave in a similar manner) isn't going to improve interop, and this feature isn't used in practice any way, precisely because it doesn't get interop. 
> 
> SHOULD makes sense; I could even see downgrading it to prose. I don't understand why this is a MUST, if we don't get good interop on it now, and it's not a feature that's in-demand, widely used, or important, AFAIK.
> 
> The same logic could be applied to obs-date, but I don't have hard data on how interoperable it is; AFAIK most implementations do a good job of covering the three possible formats.
> 
> The text around obs-text seems right, because it's such a different case.
> 
> How do others feel? Any additional data? I'm not adamant about any of this, I just want to a) make sure we all understand where we sit WRT obs-fold interop, and b) get this closed.
> 
> Cheers,
> 
> --
> Mark Nottingham   http://www.mnot.net/
> 
> 
> 
> 

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