Re: [http-state] BNF notation differences, was: Comments on draft-ietf-httpstate-cookie-08.txt (1 - 4.1.2.)

Adam Barth <ietf@adambarth.com> Wed, 14 July 2010 17:21 UTC

Return-Path: <ietf@adambarth.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BD82D3A6A50 for <http-state@core3.amsl.com>; Wed, 14 Jul 2010 10:21:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.655
X-Spam-Level:
X-Spam-Status: No, score=-1.655 tagged_above=-999 required=5 tests=[AWL=0.322, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2-+TV04pcyce for <http-state@core3.amsl.com>; Wed, 14 Jul 2010 10:21:34 -0700 (PDT)
Received: from mail-ew0-f44.google.com (mail-ew0-f44.google.com [209.85.215.44]) by core3.amsl.com (Postfix) with ESMTP id 647533A6A43 for <http-state@ietf.org>; Wed, 14 Jul 2010 10:21:34 -0700 (PDT)
Received: by ewy22 with SMTP id 22so1732603ewy.31 for <http-state@ietf.org>; Wed, 14 Jul 2010 10:21:40 -0700 (PDT)
Received: by 10.213.112.144 with SMTP id w16mr1700641ebp.47.1279128100156; Wed, 14 Jul 2010 10:21:40 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id a48sm58896909eei.7.2010.07.14.10.21.38 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Jul 2010 10:21:39 -0700 (PDT)
Received: by iwn38 with SMTP id 38so7606268iwn.31 for <http-state@ietf.org>; Wed, 14 Jul 2010 10:21:37 -0700 (PDT)
Received: by 10.231.39.134 with SMTP id g6mr17693643ibe.8.1279128095761; Wed, 14 Jul 2010 10:21:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.143.145 with HTTP; Wed, 14 Jul 2010 10:21:15 -0700 (PDT)
In-Reply-To: <4C3DC535.4020205@gmx.de>
References: <f5jqv5pu3oksmjndegd5a329gp40opqsr5@hive.bjoern.hoehrmann.de> <AANLkTin2dZ3v681D2W4yZEHhnc_0G8mAQRsMA8ZQ6wWF@mail.gmail.com> <g13rv59fpsefi1jhuuuds4evqqc8baia7o@hive.bjoern.hoehrmann.de> <AANLkTimUXR0FI3D3KKZ2rOO2QEEGReKlRBCY5ZanwL24@mail.gmail.com> <lbb706tqebunfropg9o1teehms9fu5aq53@hive.bjoern.hoehrmann.de> <AANLkTinmliI2Sp0hU0m0IqzWpEpACeNLbW_Q_KeQnJ-O@mail.gmail.com> <4C3DC535.4020205@gmx.de>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 14 Jul 2010 10:21:15 -0700
Message-ID: <AANLkTikpDYiXnu9xbj4lTVYMYpH-Re6KFCe1B2NkyBZF@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: http-state@ietf.org
Subject: Re: [http-state] BNF notation differences, was: Comments on draft-ietf-httpstate-cookie-08.txt (1 - 4.1.2.)
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jul 2010 17:21:35 -0000

On Wed, Jul 14, 2010 at 7:09 AM, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 31.05.2010 18:25, Adam Barth wrote:
>>> Copying the rfc1123-date grammar from draft-ietf-httpbis-p1-messaging-09
>>> into an appendix would probably be the best solution as differences with
>>> case-sensitivity and white space would then no longer be a source of
>>> confusion. Otherwise there simply should be a reminder that the grammar
>>> notation is different from RFC 2616 and care must be taken to apply the
>>> right rules for imported symbols.
>>
>> I've add the following text near the use of 1123-date:
>>
>> [[
>> sane-cookie-date  =<rfc1123-date, as defined in RFC 2616>
>>                     ; Note that RFC 2616 uses a different grammatical
>> notation
>>                     ; than this document (which uses ABNF from RFC5234).
>> ]]
>>
>> Hopefully that addresses your concerns.
>> ...
>
> The current ABNF is:
>
> set-cookie-header = "Set-Cookie:" SP set-cookie-string
> set-cookie-string = cookie-pair *( ";" SP cookie-av )
> cookie-pair       = cookie-name "=" cookie-value
> cookie-name       = token
> cookie-value      = token
> token             = <token, defined in [RFC 2616], Section 2.2>
>
> cookie-av         = expires-av / max-age-av / domain-av /
>                    path-av / secure-av / httponly-av /
>                    extension-av
> expires-av        = "Expires=" sane-cookie-date
> sane-cookie-date  = <rfc1123-date, defined in [RFC 2616], Section 3.3.1>
>                    ; Note that RFC 2616 uses a different grammatical
>                    ; notation than this document (which uses ABNF
>                    ; from [RFC5234]).
> max-age-av        = "Max-Age=" 1*DIGIT
> domain-av         = "Domain=" domain-value
> domain-value      = <subdomain, defined in [RFC 1034], Section 3.5>
> path-av           = "Path=" path-value
> path-value        = <any CHAR except CTLs or ";">
> secure-av         = "Secure"
> httponly-av       = "HttpOnly"
> extension-av      = <any CHAR except CTLs or ";">
>
> So the comment was applied to sane-cookie-date, but it also applies to
> token. Furthermore, the ABNF for domain-value (RFC 1034) uses yet another
> syntax. So maybe it would be better to remove the comment again, and just to
> add a prose warning that these three productions inherited from other specs
> are defined in different variants of ABNF.

Done.

> Also, re:
>
>  <any CHAR except CTLs or ";">
>
> I think it would be good to avoid prose productions. In this case, an
> alternative would be:
>
>  0x20-3A / 0x3C-7E
>  ; any CHAR except CTLs or ";"

I've left this as is.  The RFC Editor can get on my case if he or she
doesn't like this formulation.

Adam