Re: [http-state] Is this an omission in the parser rules of draft-ietf-httpstate-cookie-21?

"Remy Lebeau" <remy@lebeausoftware.org> Thu, 17 February 2011 19:45 UTC

Return-Path: <remy@lebeausoftware.org>
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 334213A6D26 for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 11:45:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.298
X-Spam-Level:
X-Spam-Status: No, score=-2.298 tagged_above=-999 required=5 tests=[AWL=0.300, BAYES_00=-2.599, STOX_REPLY_TYPE=0.001]
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 6WSG2o38ajbY for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 11:45:52 -0800 (PST)
Received: from smtpauth21.prod.mesa1.secureserver.net (smtpauth21.prod.mesa1.secureserver.net [64.202.165.38]) by core3.amsl.com (Postfix) with SMTP id 4BC113A6D5E for <http-state@ietf.org>; Thu, 17 Feb 2011 11:45:52 -0800 (PST)
Received: (qmail 8265 invoked from network); 17 Feb 2011 19:46:22 -0000
Received: from unknown (76.93.119.83) by smtpauth21.prod.mesa1.secureserver.net (64.202.165.38) with ESMTP; 17 Feb 2011 19:46:22 -0000
Message-ID: <D6C8DF74A2A54926A2663B804984F9C7@RYANLAPTOP>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: "Dan Winship" <dan.winship@gmail.com>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net><AANLkTi=qBVkGwMHqAidtwP5_A8pPrF-Y9MV4jgYS5_QM@mail.gmail.com><7384878F-C44A-42A4-9694-1BB1C18AA5E6@gbiv.com><AANLkTinFq7bE_e3SSgdjuFvZ8hGn1xy4Hc1VKwc=vp1D@mail.gmail.com><49225418-A1AF-4299-8C4F-2E608D34265D@gbiv.com><AANLkTimrJF3LFR4t4j=U2L33kFh+wf-R=sjjwexcmyPi@mail.gmail.com> <26240DE2-4DD3-4863-81B1-635D34BA4AE4@gbiv.com> <26A4B40A07EF489C882815971D7BC38E@RYANLAPTOP> <4D5BD15A.7000605@gmail.com>
Date: Thu, 17 Feb 2011 11:45:55 -0800
Organization: Lebeau Software
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994
Cc: http-state@ietf.org
Subject: Re: [http-state] Is this an omission in the parser rules of draft-ietf-httpstate-cookie-21?
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: Thu, 17 Feb 2011 19:45:53 -0000

(Not sure if this got posted correctly, so re-posting)

----- Original Message ----- 
From: "Dan Winship" <dan.winship@gmail.com>;
To: "Remy Lebeau" <remy@lebeausoftware.org>;
Cc: <ietf@adambarth.com>;; <http-state@ietf.org>;
Sent: Wednesday, February 16, 2011 5:30 AM
Subject: Re: [http-state] Is this an omission in the parser rules 
ofdraft-ietf-httpstate-cookie-21?


> Not that any of this is in any way relevant, but, no it doesn't. RFC
> 2109 doesn't allow the Expires attribute at all. A cookie that contains
> both "Version=1" and "Expires=..." does not conform to *any* spec.

Expires was not in the RFC 2109 grammar for the Set-Cookie header, but most 
implementations did not use Max-Age. The draft allows user agents to support 
both from a server, and RFC 2109 Section 10.1.2 told user agents to 
recognize Expires if present:

10.1.2  Expires and Max-Age

   Netscape's original proposal defined an Expires header that took a date 
value in a fixed-length variant format in place of Max-Age:

   Wdy, DD-Mon-YY HH:MM:SS GMT

   Note that the Expires date format contains embedded spaces, and that 
"old" cookies did not have quotes around values.  Clients that implement to 
this specification should be aware of "old" cookies and Expires.

The wording of that last sentence does not suggest to me, at least, that the 
presence of Expires is strictly dependant on an "old" cookie being used. And 
we can see in real-world cookies that Netscape-style Expires are commonly 
used in RFC-style cookies from servers.