
From arich@dingo.com  Wed Feb  2 19:35:30 2011
Return-Path: <arich@dingo.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 5ED343A67B4 for <http-state@core3.amsl.com>; Wed,  2 Feb 2011 19:35:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_45=0.6]
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 gD48CaJiH02X for <http-state@core3.amsl.com>; Wed,  2 Feb 2011 19:35:29 -0800 (PST)
Received: from gateout02.mbox.net (gateout02.mbox.net [165.212.64.22]) by core3.amsl.com (Postfix) with ESMTP id 741F03A6778 for <http-state@ietf.org>; Wed,  2 Feb 2011 19:35:29 -0800 (PST)
Received: from gateout02.mbox.net (gwo2-lo [127.0.0.1]) by gateout02.mbox.net (Postfix) with ESMTP id 2C69B410901 for <http-state@ietf.org>; Thu,  3 Feb 2011 03:38:50 +0000 (GMT)
X-USANET-Received: from gateout02.mbox.net [127.0.0.1] by gateout02.mbox.net via mtad (C8.MAIN.3.72B)  with ESMTP id 140PBcDMW0224Mo2; Thu, 03 Feb 2011 03:38:48 -0000
Received: from s1hub3.EXCHPROD.USA.NET [165.212.120.254] by gateout02.mbox.net via smtad (C8.MAIN.3.72B)  with ESMTPS id XID173PBcDMW5354Xo2; Thu, 03 Feb 2011 03:38:48 -0000
X-USANET-Source: 165.212.120.254 IN   arich@dingo.com s1hub3.EXCHPROD.USA.NET
X-USANET-MsgId: XID173PBcDMW5354Xo2
Received: from MBX18.EXCHPROD.USA.NET ([169.254.1.99]) by s1hub3.EXCHPROD.USA.NET ([10.120.220.33]) with mapi; Thu, 3 Feb 2011 03:36:45 +0000
From: "Rich, Anthony" <arich@dingo.com>
To: "http-state@ietf.org" <http-state@ietf.org>
Date: Thu, 3 Feb 2011 03:36:30 +0000
Thread-Topic: Intermediate proxy servers and Set-Cookie/Cookie headers
Thread-Index: AcvDU4vkv5PE8Fq4QYGIycFKRpklyQ==
Message-ID: <BD4AD72144E7434EACE523A2C2F835F7082032F40D@MBX18.EXCHPROD.USA.NET>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-cr-hashedpuzzle: th4= AkJh A/PC BEwQ BI9Y CT7G CtSF DM5I Df/1 FJ+A FUUZ Fec4 FqEk F84e GkP9 HHET; 1; aAB0AHQAcAAtAHMAdABhAHQAZQBAAGkAZQB0AGYALgBvAHIAZwA=; Sosha1_v1; 7; {754BF981-FEF4-4524-ADB5-ED2C1D107126}; YQByAGkAYwBoAEAAZABpAG4AZwBvAC4AYwBvAG0A; Thu, 03 Feb 2011 03:36:30 GMT; SQBuAHQAZQByAG0AZQBkAGkAYQB0AGUAIABwAHIAbwB4AHkAIABzAGUAcgB2AGUAcgBzACAAYQBuAGQAIABTAGUAdAAtAEMAbwBvAGsAaQBlAC8AQwBvAG8AawBpAGUAIABoAGUAYQBkAGUAcgBzAA==
x-cr-puzzleid: {754BF981-FEF4-4524-ADB5-ED2C1D107126}
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: [http-state] Intermediate proxy servers and Set-Cookie/Cookie headers
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, 03 Feb 2011 03:37:11 -0000

Hello,

In RFC 2109 HTTP State Management Mechanism, 4.5  Caching Proxy Role it say=
s:
   Proxies must not introduce Set-Cookie (Cookie) headers of their own
   in proxy responses (requests).

And again in RFC 2965 HTTP State Management Mechanism, 3.5  Caching Proxy R=
ole it says:
   Proxies MUST NOT introduce Set-Cookie2 (Cookie) headers of their own
   in proxy responses (requests).

When examining user-agent log files from one of our clients recently I star=
ted noticing HTTP responses like this:
   HTTP/1.1 407 Proxy Authentication Required
   Proxy-Authenticate: NTLM,BASIC realm=3D"W2K"
   Cache-Control: no-cache
   Pragma: no-cache
   Content-Type: text/html; charset=3Dutf-8
   Proxy-Connection: close
   Set-Cookie: BCSI-CS-D0616EFC8C0A61B2=3D2; Path=3D/
   Connection: close
   Content-Length: 818

Note that this is coming from an intermediate proxy, not an origin server, =
and yet it has a Set-Cookie header.

At the moment I am trying to get in contact with the proxy vendor but I wan=
ted to confirm that proxies should not be setting cookies and that there is=
 no RFC being prepared that allows it.

I can see all sorts of issues with this, but the big three for me are:
1. poisoning of origin server cookies (due to name collisons)
2. unintended expulsion of legitimate cookies from user agents' cookie jars=
 (due per domain limits, for example).
3. potential for problems with poorly-implemented applications on origin se=
rvers (unexpected cookies that they themselves have not issued). Since ther=
e is currently no way for user agents to distinguish between origin server =
cookies and proxy server cookies user agents would likely send this cookie =
with every request on this domain and the origin server would see it if the=
 proxy server does not filter it.

Am I being unnecessarily concerned?

Thanks in advance,
Anthony.

From remy@lebeausoftware.org  Wed Feb  2 18:01:33 2011
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 DDC0C3A67AE for <http-state@core3.amsl.com>; Wed,  2 Feb 2011 18:01:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.447
X-Spam-Level: 
X-Spam-Status: No, score=-2.447 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
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 Qv+ZYsJd9XaE for <http-state@core3.amsl.com>; Wed,  2 Feb 2011 18:01:33 -0800 (PST)
Received: from smtpoutwbe03.prod.mesa1.secureserver.net (smtpoutwbe03.prod.mesa1.secureserver.net [208.109.78.114]) by core3.amsl.com (Postfix) with SMTP id 35E433A67A7 for <http-state@ietf.org>; Wed,  2 Feb 2011 18:01:32 -0800 (PST)
Received: (qmail 1305 invoked from network); 3 Feb 2011 02:04:53 -0000
Received: from unknown (HELO gem-wbe04.prod.mesa1.secureserver.net) (64.202.189.36) by smtpoutwbe03.prod.mesa1.secureserver.net with SMTP; 3 Feb 2011 02:04:53 -0000
Received: (qmail 15803 invoked by uid 99); 3 Feb 2011 02:04:53 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 76.93.119.83
User-Agent: Web-Based Email 5.3.08
Message-Id: <20110202190453.f00013ceab8fb1928885c5c172fbfd4a.158515956e.wbe@email00.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: http-state@ietf.org
Date: Wed, 02 Feb 2011 19:04:53 -0700
Mime-Version: 1.0
X-Mailman-Approved-At: Thu, 03 Feb 2011 12:03:06 -0800
Subject: [http-state] =?utf-8?q?Is_this_an_omission_in_the_parser_rules_of?= =?utf-8?q?_draft-ietf-httpstate-cookie-21=3F?=
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, 03 Feb 2011 17:32:42 -0000

RFC 2109 allows cookie and attribute values to be wrapped in quotation
marks, but ietf-httpstate-cookie-21's definitions of "cookie-value" and
"cookie-av" do not seem to allow for that.  Or am I missing something?=20
The examples in RFC 2109 fail to parse properly if the draft definitions
are strictly used (for instance, processing a "Path" attribute can fail
because the first character may be <"> instead of "/" unless <'>
characters are stripped off during parsing).

Also in the draft, "cookie-value" is defined as:

  cookie-value      =3D token / ""

Is the <""> portion a typo, or was it meant to be more like this
instead?

  cookie-value      =3D token / <"> token <">


From ietf@adambarth.com  Thu Feb  3 12:15:54 2011
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 5C4A73A6A1D for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 12:15:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.702
X-Spam-Level: 
X-Spam-Status: No, score=-3.702 tagged_above=-999 required=5 tests=[AWL=-0.725, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 UvSLGMHDoMSd for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 12:15:53 -0800 (PST)
Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by core3.amsl.com (Postfix) with ESMTP id 540DB3A6955 for <http-state@ietf.org>; Thu,  3 Feb 2011 12:15:53 -0800 (PST)
Received: by fxm9 with SMTP id 9so1694833fxm.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 12:19:16 -0800 (PST)
Received: by 10.223.70.136 with SMTP id d8mr4628289faj.3.1296764355916; Thu, 03 Feb 2011 12:19:15 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id f24sm470429fak.0.2011.02.03.12.19.14 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 12:19:14 -0800 (PST)
Received: by iwc10 with SMTP id 10so1584813iwc.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 12:19:13 -0800 (PST)
Received: by 10.231.11.68 with SMTP id s4mr12282985ibs.14.1296764353201; Thu, 03 Feb 2011 12:19:13 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.35.13 with HTTP; Thu, 3 Feb 2011 12:18:43 -0800 (PST)
In-Reply-To: <20110202190453.f00013ceab8fb1928885c5c172fbfd4a.158515956e.wbe@email00.secureserver.net>
References: <20110202190453.f00013ceab8fb1928885c5c172fbfd4a.158515956e.wbe@email00.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 3 Feb 2011 12:18:43 -0800
Message-ID: <AANLkTimdPgsxJQ+R3GzraPmgvxBevvbGnMQgrGaDDKjW@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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, 03 Feb 2011 20:15:54 -0000

It's not an omission.  The use of quotation mark for cookie values in
RFC 2109 do not reflect how cookie behave in actual use.

Adam


On Wed, Feb 2, 2011 at 6:04 PM, Remy Lebeau <remy@lebeausoftware.org> wrote=
:
> RFC 2109 allows cookie and attribute values to be wrapped in quotation
> marks, but ietf-httpstate-cookie-21's definitions of "cookie-value" and
> "cookie-av" do not seem to allow for that. =A0Or am I missing something?
> The examples in RFC 2109 fail to parse properly if the draft definitions
> are strictly used (for instance, processing a "Path" attribute can fail
> because the first character may be <"> instead of "/" unless <'>
> characters are stripped off during parsing).
>
> Also in the draft, "cookie-value" is defined as:
>
> =A0cookie-value =A0 =A0 =A0=3D token / ""
>
> Is the <""> portion a typo, or was it meant to be more like this
> instead?
>
> =A0cookie-value =A0 =A0 =A0=3D token / <"> token <">
>
> _______________________________________________
> http-state mailing list
> http-state@ietf.org
> https://www.ietf.org/mailman/listinfo/http-state
>

From ietf@adambarth.com  Thu Feb  3 19:11:03 2011
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 740563A6A17 for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:11:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.713
X-Spam-Level: 
X-Spam-Status: No, score=-3.713 tagged_above=-999 required=5 tests=[AWL=-0.736, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 tp0RyGWruhKh for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:11:02 -0800 (PST)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by core3.amsl.com (Postfix) with ESMTP id B01183A6A16 for <http-state@ietf.org>; Thu,  3 Feb 2011 19:11:01 -0800 (PST)
Received: by gyd12 with SMTP id 12so850801gyd.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 19:14:25 -0800 (PST)
Received: by 10.150.189.21 with SMTP id m21mr13659928ybf.130.1296789206901; Thu, 03 Feb 2011 19:13:26 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id k1sm780749ybj.0.2011.02.03.19.13.24 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 19:13:25 -0800 (PST)
Received: by iym1 with SMTP id 1so1306556iym.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 19:13:24 -0800 (PST)
Received: by 10.231.10.199 with SMTP id q7mr3255331ibq.39.1296789204155; Thu, 03 Feb 2011 19:13:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.35.13 with HTTP; Thu, 3 Feb 2011 19:12:54 -0800 (PST)
In-Reply-To: <20110203195457.f00013ceab8fb1928885c5c172fbfd4a.d7bc172fae.wbe@email00.secureserver.net>
References: <20110203195457.f00013ceab8fb1928885c5c172fbfd4a.d7bc172fae.wbe@email00.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 3 Feb 2011 19:12:54 -0800
Message-ID: <AANLkTim1rSdg_JmWhEihJROmN+uZABFcPtH-Ngup0WHF@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Fri, 04 Feb 2011 03:11:03 -0000

On Thu, Feb 3, 2011 at 6:54 PM, Remy Lebeau <remy@lebeausoftware.org> wrote=
:
>
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth <ietf@adambarth.com>
> Date: Thu, February 03, 2011 12:18 pm
> To: Remy Lebeau <remy@lebeausoftware.org>
> Cc: http-state@ietf.org
>
>> It's not an omission. =A0The use of quotation mark for cookie values in
>> RFC 2109 do not reflect how cookie behave in actual use.
>
> Just a minute ago, while logging in to Yahoo webmail, I noticed the
> server issue a cookie that uses quotations, and my IE 8 webbrowser sent
> back 3 cookies that used quotations. =A0See below. =A0Quotes in cookies a=
re
> a real-world possibility, so the draft should allow for their presence,
> at least for user agents that parse cookies, if not in origin servers
> that generate them.

I should be more clear.  Quotation marks are not special characters in
cookie values.  They have no effect on how cookies are processed.  Any
use of quotation marks by servers is pure superstition, just like
using a leading "." before the value of the Domain attribute.

Adam

From remy@lebeausoftware.org  Thu Feb  3 19:19:41 2011
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 1DDDA3A67BD for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:19:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.173
X-Spam-Level: 
X-Spam-Status: No, score=-1.173 tagged_above=-999 required=5 tests=[AWL=1.274,  BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
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 ASWDDk12jXNc for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:19:40 -0800 (PST)
Received: from smtpoutwbe07.prod.mesa1.secureserver.net (smtpoutwbe07.prod.mesa1.secureserver.net [208.109.78.209]) by core3.amsl.com (Postfix) with SMTP id 49DD83A67B7 for <http-state@ietf.org>; Thu,  3 Feb 2011 19:19:40 -0800 (PST)
Received: (qmail 13140 invoked from network); 4 Feb 2011 03:23:03 -0000
Received: from unknown (HELO gem-wbe41.prod.mesa1.secureserver.net) (64.202.189.120) by smtpoutwbe07.prod.mesa1.secureserver.net with SMTP; 4 Feb 2011 03:23:03 -0000
Received: (qmail 8285 invoked by uid 99); 4 Feb 2011 03:23:03 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 76.93.119.83
User-Agent: Web-Based Email 5.3.08
Message-Id: <20110203202303.f00013ceab8fb1928885c5c172fbfd4a.0cc2d70540.wbe@email00.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: "Adam Barth" <ietf@adambarth.com>
Date: Thu, 03 Feb 2011 20:23:03 -0700
Mime-Version: 1.0
Cc: http-state@ietf.org
Subject: Re: [http-state] =?utf-8?q?Is_this_an_omission_in_the_parser_rules_of?= =?utf-8?q?_draft-ietf-httpstate-cookie-21=3F?=
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: Fri, 04 Feb 2011 03:19:41 -0000

-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Thu, February 03, 2011 7:12 pm
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> I should be more clear.  Quotation marks are not special characters in
> cookie values.  They have no effect on how cookies are processed.  Any
> use of quotation marks by servers is pure superstition, just like
> using a leading "." before the value of the Domain attribute.

So the use of quotations around a cookie-value is opaque and the quotes
will be stored by the user agent and passed back to the server as-is.=20
Ok.  Hopefully, I won't run up against any servers that still send
quoted cookie-av values.


From ietf@adambarth.com  Thu Feb  3 19:23:07 2011
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 18FCD3A69A1 for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:23:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.709
X-Spam-Level: 
X-Spam-Status: No, score=-3.709 tagged_above=-999 required=5 tests=[AWL=-0.732, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 CpNkhifRS15T for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 19:23:06 -0800 (PST)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by core3.amsl.com (Postfix) with ESMTP id 3415D3A67B7 for <http-state@ietf.org>; Thu,  3 Feb 2011 19:23:06 -0800 (PST)
Received: by yxt33 with SMTP id 33so864341yxt.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 19:26:29 -0800 (PST)
Received: by 10.150.225.1 with SMTP id x1mr3095393ybg.358.1296789989661; Thu, 03 Feb 2011 19:26:29 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id p32sm785291ybk.8.2011.02.03.19.26.28 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 19:26:28 -0800 (PST)
Received: by iwc10 with SMTP id 10so1914877iwc.31 for <http-state@ietf.org>; Thu, 03 Feb 2011 19:26:27 -0800 (PST)
Received: by 10.231.10.199 with SMTP id q7mr3267410ibq.39.1296789987269; Thu, 03 Feb 2011 19:26:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.35.13 with HTTP; Thu, 3 Feb 2011 19:25:57 -0800 (PST)
In-Reply-To: <20110203202303.f00013ceab8fb1928885c5c172fbfd4a.0cc2d70540.wbe@email00.secureserver.net>
References: <20110203202303.f00013ceab8fb1928885c5c172fbfd4a.0cc2d70540.wbe@email00.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 3 Feb 2011 19:25:57 -0800
Message-ID: <AANLkTin1h-CWyt5KNnD2NXXs413aU_kbYZyEjqaKAPQ_@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Fri, 04 Feb 2011 03:23:07 -0000

On Thu, Feb 3, 2011 at 7:23 PM, Remy Lebeau <remy@lebeausoftware.org> wrote=
:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth <ietf@adambarth.com>
> Date: Thu, February 03, 2011 7:12 pm
> To: Remy Lebeau <remy@lebeausoftware.org>
> Cc: http-state@ietf.org
>
>> I should be more clear. =A0Quotation marks are not special characters in
>> cookie values. =A0They have no effect on how cookies are processed. =A0A=
ny
>> use of quotation marks by servers is pure superstition, just like
>> using a leading "." before the value of the Domain attribute.
>
> So the use of quotations around a cookie-value is opaque and the quotes
> will be stored by the user agent and passed back to the server as-is.
> Ok. =A0Hopefully, I won't run up against any servers that still send
> quoted cookie-av values.

Are you implementing a user agent or a server?  If you're implementing
a user agent, please ignore Section 4 in its entirety and read only
Section 5.  In particular, the text that appears to be confusing you
is contained in Section 4.

Adam

From julian.reschke@gmx.de  Fri Feb  4 00:25:23 2011
Return-Path: <julian.reschke@gmx.de>
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 D71C83A6889 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 00:25:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.824
X-Spam-Level: 
X-Spam-Status: No, score=-103.824 tagged_above=-999 required=5 tests=[AWL=-1.225, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 W0ajw26+Dcxb for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 00:25:23 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by core3.amsl.com (Postfix) with SMTP id 9E2B73A6881 for <http-state@ietf.org>; Fri,  4 Feb 2011 00:25:21 -0800 (PST)
Received: (qmail invoked by alias); 04 Feb 2011 08:28:45 -0000
Received: from p508FDB1C.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.219.28] by mail.gmx.net (mp026) with SMTP; 04 Feb 2011 09:28:45 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+BmVorgJGBnSfr9/66z4WecRLfCiC7TYqJcuaoMb Y+Tok49eiquiJA
Message-ID: <4D4BB8B6.5070009@gmx.de>
Date: Fri, 04 Feb 2011 09:28:38 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <20110203195457.f00013ceab8fb1928885c5c172fbfd4a.d7bc172fae.wbe@email00.secureserver.net> <AANLkTim1rSdg_JmWhEihJROmN+uZABFcPtH-Ngup0WHF@mail.gmail.com>
In-Reply-To: <AANLkTim1rSdg_JmWhEihJROmN+uZABFcPtH-Ngup0WHF@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
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: Fri, 04 Feb 2011 08:25:24 -0000

On 04.02.2011 04:12, Adam Barth wrote:
> On Thu, Feb 3, 2011 at 6:54 PM, Remy Lebeau<remy@lebeausoftware.org>  wrote:
>>
>> -------- Original Message --------
>> Subject: Re: [http-state] Is this an omission in the parser rules of
>> draft-ietf-httpstate-cookie-21?
>> From: Adam Barth<ietf@adambarth.com>
>> Date: Thu, February 03, 2011 12:18 pm
>> To: Remy Lebeau<remy@lebeausoftware.org>
>> Cc: http-state@ietf.org
>>
>>> It's not an omission.  The use of quotation mark for cookie values in
>>> RFC 2109 do not reflect how cookie behave in actual use.
>>
>> Just a minute ago, while logging in to Yahoo webmail, I noticed the
>> server issue a cookie that uses quotations, and my IE 8 webbrowser sent
>> back 3 cookies that used quotations.  See below.  Quotes in cookies are
>> a real-world possibility, so the draft should allow for their presence,
>> at least for user agents that parse cookies, if not in origin servers
>> that generate them.
>
> I should be more clear.  Quotation marks are not special characters in
> cookie values.  They have no effect on how cookies are processed.  Any
> use of quotation marks by servers is pure superstition, just like
> using a leading "." before the value of the Domain attribute.
 > ...

Which leaves us with two questions:

1) Should they be allowed by the grammar in Section 4?

2) This is a normative change. Shouldn't there be a section that 
explains what the normative differences compared to 2109 are?

Best regards, Julian

From ietf@adambarth.com  Fri Feb  4 00:29:14 2011
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 3F50C3A6909 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 00:29:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.705
X-Spam-Level: 
X-Spam-Status: No, score=-3.705 tagged_above=-999 required=5 tests=[AWL=-0.728, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 NEZy8VXpXSPY for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 00:29:13 -0800 (PST)
Received: from mail-qw0-f66.google.com (mail-qw0-f66.google.com [209.85.216.66]) by core3.amsl.com (Postfix) with ESMTP id DB1FB3A689A for <http-state@ietf.org>; Fri,  4 Feb 2011 00:29:11 -0800 (PST)
Received: by qwk3 with SMTP id 3so206075qwk.1 for <http-state@ietf.org>; Fri, 04 Feb 2011 00:32:36 -0800 (PST)
Received: by 10.229.96.132 with SMTP id h4mr8281909qcn.41.1296808355908; Fri, 04 Feb 2011 00:32:35 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id g32sm333278qck.46.2011.02.04.00.32.34 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 00:32:35 -0800 (PST)
Received: by vws7 with SMTP id 7so1362249vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 00:32:33 -0800 (PST)
Received: by 10.220.185.21 with SMTP id cm21mr580919vcb.213.1296808353583; Fri, 04 Feb 2011 00:32:33 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.165.212 with HTTP; Fri, 4 Feb 2011 00:32:03 -0800 (PST)
In-Reply-To: <4D4BB8B6.5070009@gmx.de>
References: <20110203195457.f00013ceab8fb1928885c5c172fbfd4a.d7bc172fae.wbe@email00.secureserver.net> <AANLkTim1rSdg_JmWhEihJROmN+uZABFcPtH-Ngup0WHF@mail.gmail.com> <4D4BB8B6.5070009@gmx.de>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 4 Feb 2011 00:32:03 -0800
Message-ID: <AANLkTikQBoz1pA2Oa73AziXhyuQ7b6OCN65-pd=VyApC@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] 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: Fri, 04 Feb 2011 08:29:14 -0000

On Fri, Feb 4, 2011 at 12:28 AM, Julian Reschke <julian.reschke@gmx.de> wro=
te:
> On 04.02.2011 04:12, Adam Barth wrote:
>>
>> On Thu, Feb 3, 2011 at 6:54 PM, Remy Lebeau<remy@lebeausoftware.org>
>> =A0wrote:
>>>
>>> -------- Original Message --------
>>> Subject: Re: [http-state] Is this an omission in the parser rules of
>>> draft-ietf-httpstate-cookie-21?
>>> From: Adam Barth<ietf@adambarth.com>
>>> Date: Thu, February 03, 2011 12:18 pm
>>> To: Remy Lebeau<remy@lebeausoftware.org>
>>> Cc: http-state@ietf.org
>>>
>>>> It's not an omission. =A0The use of quotation mark for cookie values i=
n
>>>> RFC 2109 do not reflect how cookie behave in actual use.
>>>
>>> Just a minute ago, while logging in to Yahoo webmail, I noticed the
>>> server issue a cookie that uses quotations, and my IE 8 webbrowser sent
>>> back 3 cookies that used quotations. =A0See below. =A0Quotes in cookies=
 are
>>> a real-world possibility, so the draft should allow for their presence,
>>> at least for user agents that parse cookies, if not in origin servers
>>> that generate them.
>>
>> I should be more clear. =A0Quotation marks are not special characters in
>> cookie values. =A0They have no effect on how cookies are processed. =A0A=
ny
>> use of quotation marks by servers is pure superstition, just like
>> using a leading "." before the value of the Domain attribute.
>
>> ...
>
> Which leaves us with two questions:
>
> 1) Should they be allowed by the grammar in Section 4?

There's some discussion earlier on this list about changing the
grammar for cookie-value to include the base64 characters.  IMHO,
that's vastly more useful than pretending like quote marks mean
anything in this context.

> 2) This is a normative change. Shouldn't there be a section that explains
> what the normative differences compared to 2109 are?

We haven't done that for any of the other "changes" since 2109.  IMHO,
we'll lead happier lives if we act as if 2109 never existed.

Adam

From remy@lebeausoftware.org  Fri Feb  4 10:10:54 2011
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 9FCF13A6A0F for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:10:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=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 6PCJ70fTgwXk for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:10:52 -0800 (PST)
Received: from smtpoutwbe03.prod.mesa1.secureserver.net (smtpoutwbe03.prod.mesa1.secureserver.net [208.109.78.114]) by core3.amsl.com (Postfix) with SMTP id 9BA423A6968 for <http-state@ietf.org>; Fri,  4 Feb 2011 10:10:52 -0800 (PST)
Received: (qmail 6370 invoked from network); 4 Feb 2011 18:14:17 -0000
Received: from unknown (HELO mm02.prod.mesa1.secureserver.net) (208.109.138.2) by smtpoutwbe03.prod.mesa1.secureserver.net with SMTP; 4 Feb 2011 18:14:17 -0000
Received: (qmail 18641 invoked by uid 99); 4 Feb 2011 18:14:17 -0000
Message-ID: <20110204181417.18637.qmail@mm02.prod.mesa1.secureserver.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_942af7867392b2f6203b1a4d23f44d0c"
Message_ID: <20110204111417.f00013ceab8fb1928885c5c172fbfd4a.c91a03ce54.wbe@mobilemail.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: ietf@adambarth.com, http-state@ietf.org
Date: Fri, 04 Feb 2011 11:14:17 -0700
X-Originating-IP: 76.93.119.83
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: Fri, 04 Feb 2011 18:10:54 -0000

--=_942af7867392b2f6203b1a4d23f44d0c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
 charset=utf-8


-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Thu, February 03, 2011 7:25 pm
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> Are you implementing a user agent or a server? =20

Both, actually. I work on an open-source library, Indy
(http://www.indyproject.org), which implements a lot of Internet
protocols, including both http client and server components.

My main concern is that while not common, I have seen RFC 2109 cookies
in the wild before, quoted cookie-av values and all. Since the draft
tries to allow for "maximum interoperability", it should allow for user
agents to parse RFC 2109 formatted cookies from servers.


--=_942af7867392b2f6203b1a4d23f44d0c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
 charset=utf-8

<br>
-------- Original Message --------<br>
Subject: Re: [http-state] Is this an omission in the parser rules of<br>
draft-ietf-httpstate-cookie-21?<br>
From: Adam Barth <ietf@adambarth.com><br>
Date: Thu, February 03, 2011 7:25 pm<br>
To: Remy Lebeau <remy@lebeausoftware.org><br>
Cc: http-state@ietf.org<br>
<br>
> Are you implementing a user agent or a server?  <br>
<br>
Both, actually. I work on an open-source library, Indy<br>
(http://www.indyproject.org), which implements a lot of Internet<br>
protocols, including both http client and server components.<br>
<br>
My main concern is that while not common, I have seen RFC 2109 cookies<br>
in the wild before, quoted cookie-av values and all. Since the draft<br>
tries to allow for "maximum interoperability", it should allow for user<br>
agents to parse RFC 2109 formatted cookies from servers.<br>
<br>
<br>

--=_942af7867392b2f6203b1a4d23f44d0c--

From remy@lebeausoftware.org  Thu Feb  3 18:51:36 2011
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 4DE443A6984 for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 18:51:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.663
X-Spam-Level: **
X-Spam-Status: No, score=2.663 tagged_above=-999 required=5 tests=[AWL=-4.989,  BAYES_50=0.001, J_CHICKENPOX_73=0.6, MANGLED_LINKS=2.3, MANGLED_LIST=2.3, MANGLED_PILL=2.3, SARE_SUB_ENC_UTF8=0.152]
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 B5xWjIHGvlAN for <http-state@core3.amsl.com>; Thu,  3 Feb 2011 18:51:34 -0800 (PST)
Received: from smtpoutwbe10.prod.mesa1.secureserver.net (smtpoutwbe10.prod.mesa1.secureserver.net [208.109.78.26]) by core3.amsl.com (Postfix) with SMTP id B16AE3A69A1 for <http-state@ietf.org>; Thu,  3 Feb 2011 18:51:34 -0800 (PST)
Received: (qmail 16336 invoked from network); 4 Feb 2011 02:54:57 -0000
Received: from unknown (HELO gem-wbe26.prod.mesa1.secureserver.net) (64.202.189.160) by smtpoutwbe10.prod.mesa1.secureserver.net with SMTP; 4 Feb 2011 02:54:57 -0000
Received: (qmail 12903 invoked by uid 99); 4 Feb 2011 02:54:57 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 76.93.119.83
User-Agent: Web-Based Email 5.3.08
Message-Id: <20110203195457.f00013ceab8fb1928885c5c172fbfd4a.d7bc172fae.wbe@email00.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: "Adam Barth" <ietf@adambarth.com>
Date: Thu, 03 Feb 2011 19:54:57 -0700
Mime-Version: 1.0
X-Mailman-Approved-At: Fri, 04 Feb 2011 10:17:45 -0800
Cc: http-state@ietf.org
Subject: Re: [http-state] =?utf-8?q?Is_this_an_omission_in_the_parser_rules_of?= =?utf-8?q?_draft-ietf-httpstate-cookie-21=3F?=
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: Fri, 04 Feb 2011 02:51:36 -0000

-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Thu, February 03, 2011 12:18 pm
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> It's not an omission.  The use of quotation mark for cookie values in
> RFC 2109 do not reflect how cookie behave in actual use.

Just a minute ago, while logging in to Yahoo webmail, I noticed the
server issue a cookie that uses quotations, and my IE 8 webbrowser sent
back 3 cookies that used quotations.  See below.  Quotes in cookies are
a real-world possibility, so the draft should allow for their presence,
at least for user agents that parse cookies, if not in origin servers
that generate them.

Set-Cookie:
bh=3D"b!!!$i!!/Y5!!!!2<l<9!!!/Y=3D!!!!2<l<9!!!/Yy!!!!2<l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nFejAg!?5%!*ERU=3D!x$$2!%4<y!%>Uf!%_cJ~~~~~<j6k*~!!xa=
=3D!#UOB!!E(x!$XwI!-Go'!$f>nFejAg!?5%!*ERU=3D!x$$2!%4<y!%>Uf!%_cJ~~~~~<j6k*=
~!!xa=3D!#k6%!!E(x!$XwI!/v45!%=3D0/FrXo4!?5%!*ERU=3D!x$$2!%4<y!!_Cl!'A7b~~~=
~~<j6tx~~!#3y#!!E(x!$XwI!.r_)!$nuqFy$)q!?5%!*an_>!x$$2!%4<y!$yiT!%j#g~~~~~<=
j7#)~~!!t?`!!E(x!$XwI!,GL5!#bptFyoZy!?5%!*an_>!x$$2!%4<y!'C2L!$F`m~~~~~<j7*=
r<r^W/~!!y@n!!E(x!$XwI!0:ax!%C0KFawiB!?5%!'2KV3![`s1!!28a!'HeW~~~~~~<l<98<n=
EZ>!!.vL!#M*?!!E(x!$XwS!0$m2!%:3eFdvj`!?5%!'Ng`4#!L[J!%4<y!%@6x!'>d`~~~~~<l=
<Mw<ly<?~!#3yC!!E(x!$XwI!/cu<!%CnGFeE+d!?5%!'Ng`4!x$$2!%4<y!%>yI!'IfF~~~~~<=
l<N)<pO83~!#bRG!!!/`!$YNR!0/]-!%BS#!!!!$!?5%!'Ng`4![`s1!'0b<!'H$d~~~~~~<l<X=
=3D<pOCG~";
pc1=3D"b!!!!#!#4wO!!%!L!#0n,!/9nd!$^P'!!!!$!?5%!%n/M2!ZmB)!$Za$!%TB`~~~~~~<=
h@UX~~"



From remy@lebeausoftware.org  Fri Feb  4 10:30:37 2011
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 5F15C3A6A33 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:30:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=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 3aeoIsOrAcEy for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:30:36 -0800 (PST)
Received: from smtpoutwbe04.prod.mesa1.secureserver.net (smtpoutwbe04.prod.mesa1.secureserver.net [208.109.78.206]) by core3.amsl.com (Postfix) with SMTP id 7E2873A67CC for <http-state@ietf.org>; Fri,  4 Feb 2011 10:30:36 -0800 (PST)
Received: (qmail 14671 invoked from network); 4 Feb 2011 18:34:01 -0000
Received: from unknown (HELO mm03.prod.mesa1.secureserver.net) (208.109.138.3) by smtpoutwbe04.prod.mesa1.secureserver.net with SMTP; 4 Feb 2011 18:34:01 -0000
Received: (qmail 30842 invoked by uid 99); 4 Feb 2011 18:34:01 -0000
Message-ID: <20110204183401.30839.qmail@mm03.prod.mesa1.secureserver.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_5d353a1f7bc65c8a35ddc7d7bc073b16"
Message_ID: <20110204113401.f00013ceab8fb1928885c5c172fbfd4a.85aaacd19d.wbe@mobilemail.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: ietf@adambarth.com, http-state@ietf.org
Date: Fri, 04 Feb 2011 11:34:01 -0700
X-Originating-IP: 76.93.119.83
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: Fri, 04 Feb 2011 18:30:37 -0000

--=_5d353a1f7bc65c8a35ddc7d7bc073b16
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
 charset=utf-8

-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Fri, February 04, 2011 12:32 am
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Remy Lebeau <remy@lebeausoftware.org>, http-state@ietf.org

> We haven't done that for any of the other=20
> "changes" since 2109.  IMHO, we'll lead=20
> happier lives if we act as if 2109 never=20
> existed.

Except that it did exist, was standardized, and some servers did
implement it (or at least parts of it). And I've seen some servers have
configuration options to enable/disable individual cookie specs
(including RFC 2965). Just because RFC 2109 was not commonly used does
not mean it was not used at all (Indy's own implementation supported the
Netscape and RFCs 2109 and 2965 specs almost fully until I recently
discovered the current draft work and am now switching to it), so it
should not be dismissed completely if interoperability is a key goal. At
the very least, allow the cookie-av grammer to recognize quoted-string
values.

--=_5d353a1f7bc65c8a35ddc7d7bc073b16
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
 charset=utf-8

-------- Original Message --------<br>
Subject: Re: [http-state] Is this an omission in the parser rules of<br>
draft-ietf-httpstate-cookie-21?<br>
From: Adam Barth <ietf@adambarth.com><br>
Date: Fri, February 04, 2011 12:32 am<br>
To: Julian Reschke <julian.reschke@gmx.de><br>
Cc: Remy Lebeau <remy@lebeausoftware.org>, http-state@ietf.org<br>
<br>
> We haven't done that for any of the other <br>
> "changes" since 2109.  IMHO, we'll lead <br>
> happier lives if we act as if 2109 never <br>
> existed.<br>
<br>
Except that it did exist, was standardized, and some servers did<br>
implement it (or at least parts of it). And I've seen some servers have<br>
configuration options to enable/disable individual cookie specs<br>
(including RFC 2965). Just because RFC 2109 was not commonly used does<br>
not mean it was not used at all (Indy's own implementation supported the<br=
>
Netscape and RFCs 2109 and 2965 specs almost fully until I recently<br>
discovered the current draft work and am now switching to it), so it<br>
should not be dismissed completely if interoperability is a key goal. At<br=
>
the very least, allow the cookie-av grammer to recognize quoted-string<br>
values.<br>
<br>

--=_5d353a1f7bc65c8a35ddc7d7bc073b16--

From remy@lebeausoftware.org  Fri Feb  4 10:44:11 2011
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 08DA03A6A1E for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:44:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=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 HLUeR55M1-8D for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:44:10 -0800 (PST)
Received: from smtpoutwbe02.prod.mesa1.secureserver.net (smtpoutwbe02.prod.mesa1.secureserver.net [208.109.78.113]) by core3.amsl.com (Postfix) with SMTP id 435223A694A for <http-state@ietf.org>; Fri,  4 Feb 2011 10:44:10 -0800 (PST)
Received: (qmail 14291 invoked from network); 4 Feb 2011 18:47:35 -0000
Received: from unknown (HELO mm01.prod.mesa1.secureserver.net) (208.109.138.1) by smtpoutwbe02.prod.mesa1.secureserver.net with SMTP; 4 Feb 2011 18:47:35 -0000
Received: (qmail 26024 invoked by uid 99); 4 Feb 2011 18:47:35 -0000
Message-ID: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_a13b852c45b1f1190c852fd5d5b8df13"
Message_ID: <20110204114735.f00013ceab8fb1928885c5c172fbfd4a.282673bda5.wbe@mobilemail.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: ietf@adambarth.com, http-state@ietf.org
Date: Fri, 04 Feb 2011 11:47:35 -0700
X-Originating-IP: 76.93.119.83
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: Fri, 04 Feb 2011 18:44:11 -0000

--=_a13b852c45b1f1190c852fd5d5b8df13
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
 charset=utf-8


-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Fri, February 04, 2011 10:19 am
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> The draft gives user agents precise=20
> instructions for how to parse all
> manner of cookies, including cookies with
> values that contain quote characters.  That=20
> information is contained in Section 5

I have re-read Section 5 and I do not see its grammar or parsing rules
accounting for quoted-string values at all. It only says to remove WSP
characters surrounding extracted names and values, and quote characters
are not part of the WSP definition. So what am I missing? Where exactly
does it say how to unquote a quoted-string used in attribute values?

--=_a13b852c45b1f1190c852fd5d5b8df13
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
 charset=utf-8

<br>
-------- Original Message --------<br>
Subject: Re: [http-state] Is this an omission in the parser rules of<br>
draft-ietf-httpstate-cookie-21?<br>
From: Adam Barth <ietf@adambarth.com><br>
Date: Fri, February 04, 2011 10:19 am<br>
To: Remy Lebeau <remy@lebeausoftware.org><br>
Cc: http-state@ietf.org<br>
<br>
> The draft gives user agents precise <br>
> instructions for how to parse all<br>
> manner of cookies, including cookies with<br>
> values that contain quote characters.  That <br>
> information is contained in Section 5<br>
<br>
I have re-read Section 5 and I do not see its grammar or parsing rules<br>
accounting for quoted-string values at all. It only says to remove WSP<br>
characters surrounding extracted names and values, and quote characters<br>
are not part of the WSP definition. So what am I missing? Where exactly<br>
does it say how to unquote a quoted-string used in attribute values?<br>
<br>

--=_a13b852c45b1f1190c852fd5d5b8df13--

From ietf@adambarth.com  Fri Feb  4 10:48:24 2011
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 4D17A3A67F9 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:48:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.701
X-Spam-Level: 
X-Spam-Status: No, score=-3.701 tagged_above=-999 required=5 tests=[AWL=-0.724, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 KMg+gwV+7yQk for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 10:48:23 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 752833A67CC for <http-state@ietf.org>; Fri,  4 Feb 2011 10:48:23 -0800 (PST)
Received: by vws7 with SMTP id 7so1769859vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 10:51:48 -0800 (PST)
Received: by 10.220.176.66 with SMTP id bd2mr3393376vcb.139.1296845508747; Fri, 04 Feb 2011 10:51:48 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id i1sm773364vby.11.2011.02.04.10.51.47 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 10:51:47 -0800 (PST)
Received: by vws7 with SMTP id 7so1769839vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 10:51:46 -0800 (PST)
Received: by 10.220.200.70 with SMTP id ev6mr3275934vcb.248.1296845506787; Fri, 04 Feb 2011 10:51:46 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.165.212 with HTTP; Fri, 4 Feb 2011 10:51:16 -0800 (PST)
In-Reply-To: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 4 Feb 2011 10:51:16 -0800
Message-ID: <AANLkTi=qBVkGwMHqAidtwP5_A8pPrF-Y9MV4jgYS5_QM@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
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: Fri, 04 Feb 2011 18:48:24 -0000

On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org> wrote:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth
> Date: Fri, February 04, 2011 10:19 am
> To: Remy Lebeau
> Cc: http-state@ietf.org
>
>> The draft gives user agents precise
>> instructions for how to parse all
>> manner of cookies, including cookies with
>> values that contain quote characters. That
>> information is contained in Section 5
>
> I have re-read Section 5 and I do not see its grammar or parsing rules
> accounting for quoted-string values at all. It only says to remove WSP
> characters surrounding extracted names and values, and quote characters
> are not part of the WSP definition. So what am I missing? Where exactly
> does it say how to unquote a quoted-string used in attribute values?

Precisely.  It does not say to unquote a quoted-string because that's
not how cookies work.  The role of the quote character is cookies is
identical to the role of the "!" character.  That is, neither play a
special role in the protocol.  Any representations by the contrary by
2109 or any other document are fiction and have only caused pain and
misery in the world.

Adam

From fielding@gbiv.com  Fri Feb  4 11:22:53 2011
Return-Path: <fielding@gbiv.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 5EB793A68FC for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:22:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.142
X-Spam-Level: 
X-Spam-Status: No, score=-103.142 tagged_above=-999 required=5 tests=[AWL=-0.543, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 agzeTQLTD0ar for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:22:52 -0800 (PST)
Received: from homiemail-a74.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by core3.amsl.com (Postfix) with ESMTP id 463163A6A1E for <http-state@ietf.org>; Fri,  4 Feb 2011 11:22:47 -0800 (PST)
Received: from homiemail-a74.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTP id 105E167C06E; Fri,  4 Feb 2011 11:26:13 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=6LO9mz1xTxsoeHq0 gDKor6Rg8BUmAd+4O+wo6aZMRF7uz2voF5S2LDloMSO7/KBIDvJ/DU1Bw6BZf8vY DnM2e5WUYK5pq94yk7fdaIlcEccMJZxWyQvwdo1qzV4wihauW59C4ZrAG6byOEi0 w9QKDb9O+5IcE6p74g1PovYSkMg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=qyJr7FHjKYZXGKvpK12Dq1Fsxq8=; b=PbMZ/ynPPbSVrcIJgm+PKFDWHDw6 KGnUA0/esw4jOyiVH6gzz5EI9WA+VsoJcjykPqJuUfpN9eCFv9/t9qlc82HE20PA BrMiZ21XdeAHBuj8z/o4A00zlA8oAGGS/lOzvBWEc7xfN1B1GzTklNIfvCbeaPin 29rVlBOUz2vIsO0=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a74.g.dreamhost.com (Postfix) with ESMTPSA id B70CA67C069;  Fri,  4 Feb 2011 11:26:12 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTi=qBVkGwMHqAidtwP5_A8pPrF-Y9MV4jgYS5_QM@mail.gmail.com>
Date: Fri, 4 Feb 2011 11:24:38 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <7384878F-C44A-42A4-9694-1BB1C18AA5E6@gbiv.com>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net> <AANLkTi=qBVkGwMHqAidtwP5_A8pPrF-Y9MV4jgYS5_QM@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
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: Fri, 04 Feb 2011 19:22:53 -0000

On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:

> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org> =
wrote:
>> -------- Original Message --------
>> Subject: Re: [http-state] Is this an omission in the parser rules of
>> draft-ietf-httpstate-cookie-21?
>> From: Adam Barth
>> Date: Fri, February 04, 2011 10:19 am
>> To: Remy Lebeau
>> Cc: http-state@ietf.org
>>=20
>>> The draft gives user agents precise
>>> instructions for how to parse all
>>> manner of cookies, including cookies with
>>> values that contain quote characters. That
>>> information is contained in Section 5
>>=20
>> I have re-read Section 5 and I do not see its grammar or parsing =
rules
>> accounting for quoted-string values at all. It only says to remove =
WSP
>> characters surrounding extracted names and values, and quote =
characters
>> are not part of the WSP definition. So what am I missing? Where =
exactly
>> does it say how to unquote a quoted-string used in attribute values?
>=20
> Precisely.  It does not say to unquote a quoted-string because that's
> not how cookies work.  The role of the quote character is cookies is
> identical to the role of the "!" character.  That is, neither play a
> special role in the protocol.  Any representations by the contrary by
> 2109 or any other document are fiction and have only caused pain and
> misery in the world.

That may be, but the grammar for server generation of set-cookie
values is clearly wrong because use of DQUOTE in cookie values is
common (roughly 10% of the values in my browser cookie store) and
previously defined, even if we consider DQUOTE to be part of the
value string.  Let's just change the generating grammar for value to
match how cookies are actually parsed and only exclude characters
that are known to cause failures.

....Roy=

From ietf@adambarth.com  Fri Feb  4 11:23:37 2011
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 BEBA83A6A1E for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:23:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.198
X-Spam-Level: 
X-Spam-Status: No, score=-3.198 tagged_above=-999 required=5 tests=[AWL=-1.221, 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 E6u46xUGSmVR for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:23:36 -0800 (PST)
Received: from mail-vx0-f194.google.com (mail-vx0-f194.google.com [209.85.220.194]) by core3.amsl.com (Postfix) with ESMTP id 9EDF83A68FC for <http-state@ietf.org>; Fri,  4 Feb 2011 11:23:36 -0800 (PST)
Received: by vxc40 with SMTP id 40so36288vxc.1 for <http-state@ietf.org>; Fri, 04 Feb 2011 11:27:01 -0800 (PST)
Received: by 10.220.178.200 with SMTP id bn8mr676965vcb.169.1296843580953; Fri, 04 Feb 2011 10:19:40 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id ft27sm753930vbb.8.2011.02.04.10.19.39 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 10:19:39 -0800 (PST)
Received: by vws7 with SMTP id 7so1747727vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 10:19:38 -0800 (PST)
Received: by 10.220.185.21 with SMTP id cm21mr750636vcb.213.1296843578203; Fri, 04 Feb 2011 10:19:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.165.212 with HTTP; Fri, 4 Feb 2011 10:19:07 -0800 (PST)
In-Reply-To: <20110204181417.18637.qmail@mm02.prod.mesa1.secureserver.net>
References: <20110204181417.18637.qmail@mm02.prod.mesa1.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 4 Feb 2011 10:19:07 -0800
Message-ID: <AANLkTindWkSmYYyJQ48Uj4ugc6mQ9FyZc61ZQ+CsFARp@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
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: Fri, 04 Feb 2011 19:23:37 -0000

On Fri, Feb 4, 2011 at 10:14 AM, Remy Lebeau <remy@lebeausoftware.org> wrote:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth
> Date: Thu, February 03, 2011 7:25 pm
> To: Remy Lebeau
> Cc: http-state@ietf.org
>
>> Are you implementing a user agent or a server?
>
> Both, actually. I work on an open-source library, Indy
> (http://www.indyproject.org), which implements a lot of Internet
> protocols, including both http client and server components.
>
> My main concern is that while not common, I have seen RFC 2109 cookies
> in the wild before, quoted cookie-av values and all. Since the draft
> tries to allow for "maximum interoperability", it should allow for user
> agents to parse RFC 2109 formatted cookies from servers.

The draft gives user agents precise instructions for how to parse all
manner of cookies, including cookies with values that contain quote
characters.  That information is contained in Section 5 and is
entirely unrelated to the grammar you're referring to, which is
contained in Section 4.

Kind regards,
Adam

From ietf@adambarth.com  Fri Feb  4 11:26:28 2011
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 00C3B3A6A34 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:26:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.691
X-Spam-Level: 
X-Spam-Status: No, score=-3.691 tagged_above=-999 required=5 tests=[AWL=-0.714, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 5irH8LUP8IBQ for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 11:26:26 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id AF6F53A69D5 for <http-state@ietf.org>; Fri,  4 Feb 2011 11:26:25 -0800 (PST)
Received: by vws7 with SMTP id 7so1797123vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 11:29:51 -0800 (PST)
Received: by 10.220.182.203 with SMTP id cd11mr3278778vcb.190.1296847791134; Fri, 04 Feb 2011 11:29:51 -0800 (PST)
Received: from mail-vx0-f172.google.com ([209.85.220.172]) by mx.google.com with ESMTPS id c8sm425772vcc.33.2011.02.04.11.29.49 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 11:29:49 -0800 (PST)
Received: by vxi40 with SMTP id 40so880983vxi.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 11:29:48 -0800 (PST)
Received: by 10.220.187.77 with SMTP id cv13mr3307572vcb.143.1296847788800; Fri, 04 Feb 2011 11:29:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.165.212 with HTTP; Fri, 4 Feb 2011 11:29:17 -0800 (PST)
In-Reply-To: <7384878F-C44A-42A4-9694-1BB1C18AA5E6@gbiv.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>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 4 Feb 2011 11:29:17 -0800
Message-ID: <AANLkTinFq7bE_e3SSgdjuFvZ8hGn1xy4Hc1VKwc=vp1D@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Fri, 04 Feb 2011 19:26:28 -0000

On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org> w=
rote:
>>> -------- Original Message --------
>>> Subject: Re: [http-state] Is this an omission in the parser rules of
>>> draft-ietf-httpstate-cookie-21?
>>> From: Adam Barth
>>> Date: Fri, February 04, 2011 10:19 am
>>> To: Remy Lebeau
>>> Cc: http-state@ietf.org
>>>
>>>> The draft gives user agents precise
>>>> instructions for how to parse all
>>>> manner of cookies, including cookies with
>>>> values that contain quote characters. That
>>>> information is contained in Section 5
>>>
>>> I have re-read Section 5 and I do not see its grammar or parsing rules
>>> accounting for quoted-string values at all. It only says to remove WSP
>>> characters surrounding extracted names and values, and quote characters
>>> are not part of the WSP definition. So what am I missing? Where exactly
>>> does it say how to unquote a quoted-string used in attribute values?
>>
>> Precisely. =A0It does not say to unquote a quoted-string because that's
>> not how cookies work. =A0The role of the quote character is cookies is
>> identical to the role of the "!" character. =A0That is, neither play a
>> special role in the protocol. =A0Any representations by the contrary by
>> 2109 or any other document are fiction and have only caused pain and
>> misery in the world.
>
> That may be, but the grammar for server generation of set-cookie
> values is clearly wrong because use of DQUOTE in cookie values is
> common (roughly 10% of the values in my browser cookie store) and
> previously defined, even if we consider DQUOTE to be part of the
> value string. =A0Let's just change the generating grammar for value to
> match how cookies are actually parsed and only exclude characters
> that are known to cause failures.

The grammar is not used for parsing.  Parsing is defined in Section 5,
not Section 4.

Adam

From remy@lebeausoftware.org  Fri Feb  4 16:20:36 2011
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 203F33A6802 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 16:20:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=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 4-VFyqxTWAx2 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 16:20:35 -0800 (PST)
Received: from smtpoutwbe01.prod.mesa1.secureserver.net (smtpoutwbe01.prod.mesa1.secureserver.net [208.109.78.112]) by core3.amsl.com (Postfix) with SMTP id 1FA893A67D1 for <http-state@ietf.org>; Fri,  4 Feb 2011 16:20:34 -0800 (PST)
Received: (qmail 27463 invoked from network); 5 Feb 2011 00:24:00 -0000
Received: from unknown (HELO mm02.prod.mesa1.secureserver.net) (208.109.138.2) by smtpoutwbe01.prod.mesa1.secureserver.net with SMTP; 5 Feb 2011 00:24:00 -0000
Received: (qmail 1839 invoked by uid 99); 5 Feb 2011 00:24:00 -0000
Message-ID: <20110205002400.1838.qmail@mm02.prod.mesa1.secureserver.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_0188ccfc4adb5fd94c63a383bc4ba471"
Message_ID: <20110204172400.f00013ceab8fb1928885c5c172fbfd4a.809d4e4026.wbe@mobilemail.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: ietf@adambarth.com, http-state@ietf.org
Date: Fri, 04 Feb 2011 17:24:00 -0700
X-Originating-IP: 76.93.119.83
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: Sat, 05 Feb 2011 00:20:36 -0000

--=_0188ccfc4adb5fd94c63a383bc4ba471
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
 charset=utf-8


-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Fri, February 04, 2011 11:29 am
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Remy Lebeau <remy@lebeausoftware.org>, http-state@ietf.org

> The grammar is not used for parsing.  Parsing
> is defined in Section 5, not Section 4.

Section 5 describes how to parse Set-Cookie headers. RFC 2109 grammer
(and real-world use, which you seem to deny exists) for Set-Cookie
headers specifically defines both cookie values and attribute values as
being a "value" type, which is defined as follows:

   value           =3D       word
   word            =3D       token | quoted-string

Why can't Section 5 be updated to allow parsing of quoted-string values?
They ARE in use in the real world! They ARE NOT opaque in attribute
values. They are grammar elements that some servers really do use, and
should be parsed as such. I think Section 5 needs to adopt RFC 2109's
definition of the "value" and/or "word" type, instead of using "token"
exclusively.

--=_0188ccfc4adb5fd94c63a383bc4ba471
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
 charset=utf-8

<br>
-------- Original Message --------<br>
Subject: Re: [http-state] Is this an omission in the parser rules of<br>
draft-ietf-httpstate-cookie-21?<br>
From: Adam Barth <ietf@adambarth.com><br>
Date: Fri, February 04, 2011 11:29 am<br>
To: "Roy T. Fielding" <fielding@gbiv.com><br>
Cc: Remy Lebeau <remy@lebeausoftware.org>, http-state@ietf.org<br>
<br>
> The grammar is not used for parsing.  Parsing<br>
> is defined in Section 5, not Section 4.<br>
<br>
Section 5 describes how to parse Set-Cookie headers. RFC 2109 grammer<br>
(and real-world use, which you seem to deny exists) for Set-Cookie<br>
headers specifically defines both cookie values and attribute values as<br>
being a "value" type, which is defined as follows:<br>
<br>
   value           =3D       word<br>
   word            =3D       token | quoted-string<br>
<br>
Why can't Section 5 be updated to allow parsing of quoted-string values?<br=
>
They ARE in use in the real world! They ARE NOT opaque in attribute<br>
values. They are grammar elements that some servers really do use, and<br>
should be parsed as such. I think Section 5 needs to adopt RFC 2109's<br>
definition of the "value" and/or "word" type, instead of using "token"<br>
exclusively.<br>
<br>

--=_0188ccfc4adb5fd94c63a383bc4ba471--

From ietf@adambarth.com  Fri Feb  4 16:25:11 2011
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 7A88A3A69DC for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 16:25:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.202
X-Spam-Level: 
X-Spam-Status: No, score=-3.202 tagged_above=-999 required=5 tests=[AWL=-1.225, 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 vfWxCIxfXq6K for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 16:25:10 -0800 (PST)
Received: from mail-vx0-f172.google.com (mail-vx0-f172.google.com [209.85.220.172]) by core3.amsl.com (Postfix) with ESMTP id CD98C3A67D1 for <http-state@ietf.org>; Fri,  4 Feb 2011 16:25:09 -0800 (PST)
Received: by vxi40 with SMTP id 40so980093vxi.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 16:28:35 -0800 (PST)
Received: by 10.220.190.201 with SMTP id dj9mr3183838vcb.278.1296865715312; Fri, 04 Feb 2011 16:28:35 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id r7sm986086vbx.19.2011.02.04.16.28.22 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 16:28:22 -0800 (PST)
Received: by vws7 with SMTP id 7so1981036vws.31 for <http-state@ietf.org>; Fri, 04 Feb 2011 16:28:21 -0800 (PST)
Received: by 10.220.200.70 with SMTP id ev6mr3357800vcb.248.1296865701287; Fri, 04 Feb 2011 16:28:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.165.212 with HTTP; Fri, 4 Feb 2011 16:27:51 -0800 (PST)
In-Reply-To: <20110205002400.1838.qmail@mm02.prod.mesa1.secureserver.net>
References: <20110205002400.1838.qmail@mm02.prod.mesa1.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Fri, 4 Feb 2011 16:27:51 -0800
Message-ID: <AANLkTik+pvoC5+ZmPyfLFbxxy71n6d4-haf4AjqmAY6G@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
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: Sat, 05 Feb 2011 00:25:11 -0000

On Fri, Feb 4, 2011 at 4:24 PM, Remy Lebeau <remy@lebeausoftware.org> wrote:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth
> Date: Fri, February 04, 2011 11:29 am
> To: "Roy T. Fielding"
> Cc: Remy Lebeau , http-state@ietf.org
>
>> The grammar is not used for parsing. Parsing
>> is defined in Section 5, not Section 4.
>
> Section 5 describes how to parse Set-Cookie headers. RFC 2109 grammer
> (and real-world use, which you seem to deny exists) for Set-Cookie
> headers specifically defines both cookie values and attribute values as
> being a "value" type, which is defined as follows:
>
> value = word
> word = token | quoted-string
>
> Why can't Section 5 be updated to allow parsing of quoted-string values?
> They ARE in use in the real world! They ARE NOT opaque in attribute
> values. They are grammar elements that some servers really do use, and
> should be parsed as such. I think Section 5 needs to adopt RFC 2109's
> definition of the "value" and/or "word" type, instead of using "token"
> exclusively.

Remy, please calm down.  Section 5 does not use token at all, much
less exclusively.  Can you provide an example of a Set-Cookie header
that you believe is processed incorrectly by Section 5?

Adam

From remy@lebeausoftware.org  Fri Feb  4 23:18:25 2011
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 596023A6808 for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 23:18:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.428
X-Spam-Level: 
X-Spam-Status: No, score=-1.428 tagged_above=-999 required=5 tests=[AWL=1.019,  BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
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 WYnFVLHlu68s for <http-state@core3.amsl.com>; Fri,  4 Feb 2011 23:18:24 -0800 (PST)
Received: from smtpoutwbe11.prod.mesa1.secureserver.net (smtpoutwbe11.prod.mesa1.secureserver.net [208.109.78.27]) by core3.amsl.com (Postfix) with SMTP id 10EDE3A67A2 for <http-state@ietf.org>; Fri,  4 Feb 2011 23:18:23 -0800 (PST)
Received: (qmail 20185 invoked from network); 5 Feb 2011 07:21:49 -0000
Received: from unknown (HELO gem-wbe27.prod.mesa1.secureserver.net) (64.202.189.161) by smtpoutwbe11.prod.mesa1.secureserver.net with SMTP; 5 Feb 2011 07:21:49 -0000
Received: (qmail 21535 invoked by uid 99); 5 Feb 2011 07:21:49 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 76.93.119.83
User-Agent: Web-Based Email 5.3.08
Message-Id: <20110205002149.f00013ceab8fb1928885c5c172fbfd4a.147756da58.wbe@email00.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: "Adam Barth" <ietf@adambarth.com>
Date: Sat, 05 Feb 2011 00:21:49 -0700
Mime-Version: 1.0
Cc: http-state@ietf.org
Subject: Re: [http-state] =?utf-8?q?Is_this_an_omission_in_the_parser_rules_of?= =?utf-8?q?_draft-ietf-httpstate-cookie-21=3F?=
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: Sat, 05 Feb 2011 07:18:25 -0000

-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Fri, February 04, 2011 4:27 pm
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> Section 5 does not use token at all, much less exclusively.

It does, however, outline the rules for extracting the individual string
values of the various components, and then how to process their contents
once all the grammar has been stripped away.  The only parsing rule that
explicitally allows for quoted-string values is Date handling, because a
quotation mark is included in the list of defined leading/trailing
delimiters.  No other rule allows for the presence of quotation marks.

> Can you provide an example of a Set-Cookie header that
> you believe is processed incorrectly by Section 5?

The examples in RFCs 2109 and 2965, for starters.  Let's look at the
first example:

  Set-Cookie: Customer=3D"WILE_E_COYOTE"; Version=3D"1"; Path=3D"/acme"

Which is issued by a request to "http://<host>/acme/login".

Here is a step-by-step breakdown of how the above cookie gets processed
by Section 5.2 (I will use parenthesis around values so you can see
where whitespace charcters exist).  I believe a failure occurs in the
processing of the "Path" attribute by Section 5.2.4:

--- begin ---
A user agent MUST use an algorithm equivalent to the following algorithm
to parse a "set-cookie-string":

1.  If the set-cookie-string contains a %x3B (";") character:

      The name-value-pair string consists of the characters up to, but
not including, the first %x3B (";"), and the unparsed-attributes consist
of the remainder of the set-cookie-string (including the %x3B (";") in
question).

    Otherwise:

      The name-value-pair string consists of all the characters
contained in the set-cookie-string, and the unparsed-attributes is the
empty string.

  name-value-pair =3D (Customer=3D"WILE_E_COYOTE")
  unparsed-attributes =3D (; Version=3D"1"; Path=3D"/acme")

2.  If the name-value-pair string lacks a %x3D ("=3D") character, ignore
the set-cookie-string entirely.

3.  The (possibly empty) name string consists of the characters up to,
but not including, the first %x3D ("=3D") character, and the (possibly
empty) value string consists of the characters after the first %x3D
("=3D") character.

  name =3D (Customer)
  value =3D ("WILE_E_COYOTE")

4.  Remove any leading or trailing WSP characters from the name string
and the value string.

  name =3D (Customer)
  value =3D ("WILE_E_COYOTE")

5.  If the name string is empty, ignore the set-cookie-string entirely.

6.  The cookie-name is the name string, and the cookie-value is the
value string.

  cookie-name =3D (Customer)
  cookie-value =3D ("WILE_E_COYOTE")

The user agent MUST use an algorithm equivalent to the following
algorithm to parse the unparsed-attributes:

1.  If the unparsed-attributes string is empty, skip the rest of these
steps.

2.  Discard the first character of the unparsed-attributes (which will
be a %x3B (";") character).

  unparsed-attributes =3D ( Version=3D"1"; Path=3D"/acme")

3.  If the remaining unparsed-attributes contains a %x3B (";")
character:

      Consume the characters of the unparsed-attributes up to, but not
including, the first %x3B (";") character.

    Otherwise:

      Consume the remainder of the unparsed-attributes.
    =20
    Let the cookie-av string be the characters consumed in this step.

  unparsed-attributes =3D (; Path=3D"/acme")
  cookie-av =3D ( Version=3D"1")

4.  If the cookie-av string contains a %x3D ("=3D") character:

      The (possibly empty) attribute-name string consists of the
characters up to, but not including, the first %x3D ("=3D") character, and
the (possibly empty) attribute-value string consists of the characters
after the first %x3D ("=3D") character.

  attribute-name =3D ( Version)
  attribute-value =3D ("1")

5.  Remove any leading or trailing WSP characters from the
attribute-name string and the attribute-value string.

  attribute-name =3D (Version)
  attribute-value =3D ("1")

6.  Process the attribute-name and attribute-value according to the
requirements in the following subsections.  (Notice that attributes with
unrecognized attribute-names are ignored.)

7.  Return to Step 1 of this algorithm.

1.  If the unparsed-attributes string is empty, skip the rest of these
steps.

2.  Discard the first character of the unparsed-attributes (which will
be a %x3B (";") character).

  unparsed-attributes =3D ( Path=3D"/acme")

3.  If the remaining unparsed-attributes contains a %x3B (";")
character:

      Consume the characters of the unparsed-attributes up to, but not
including, the first %x3B (";") character.

    Otherwise:

      Consume the remainder of the unparsed-attributes.

    Let the cookie-av string be the characters consumed in this step.

  unparsed-attributes =3D ()
  cookie-av =3D ( Path=3D"/acme")

4.  If the cookie-av string contains a %x3D ("=3D") character:

      The (possibly empty) attribute-name string consists of the
characters up to, but not including, the first %x3D ("=3D") character, and
the (possibly empty) attribute-value string consists of the characters
after the first %x3D ("=3D") character.

    Otherwise:

       The attribute-name string consists of the entire cookie-av
string, and the attribute-value string is empty.

  attribute-name =3D ( Path)
  attribute-value =3D ("/acme")

5.  Remove any leading or trailing WSP characters from the
attribute-name string and the attribute-value string.

  attribute-name =3D (Path)
  attribute-value =3D ("/acme")

6.  Process the attribute-name and attribute-value according to the
requirements in the following subsections.  (Notice that attributes with
unrecognized attribute-names are ignored.)

    If the attribute-name case-insensitively matches the string "Path",
the user agent MUST process the cookie-av as follows.

    If the attribute-value is empty or if the first character of the
attribute-value is not %x2F ("/"):

      Let cookie-path be the default-path.

      The user agent MUST use an algorithm equivalent to the following
algorithm to compute the default-path of a cookie:

      1.  Let uri-path be the path portion of the request-uri if such a
portion exists (and empty otherwise).  For example, if the request-uri
contains just a path (and optional query string), then the uri-path is
that path (without the %x3F ("?") character or query string), and if the
request-uri contains a full absoluteURI, the uri-path is the path
component of that URI.

        uri-path =3D (/acme/login)

      2.  If the uri-path is empty or if the first character of the
uri-path is not a %x2F ("/") character, output %x2F ("/") and skip the
remaining steps.

      3.  If the uri-path contains only a single %x2F ("/") character,
output %x2F ("/") and skip the remaining steps.

      4.  Output the characters of the uri-path from the first character
up to, but not including, the right-most %x2F ("/").

        default-path =3D (/acme)

    Otherwise:

      Let cookie-path be the attribute-value.

    Append an attribute to the cookie-attribute-list with an
attribute-name of Path and an attribute-value of cookie-path.

  cookie-path =3D default-path
  cookie-attribute-list =3D (Path=3Ddefault-path)

7.  Return to Step 1 of this algorithm.

1.  If the unparsed-attributes string is empty, skip the rest of these
steps.
-- end ---

I believe the cookie-path should have been set to attribute-value
instead of default-path, but quotation marks were not stripped out
during grammar parsing, so the condition "if the first character of the
attribute-value is not %x2F" is satisfied when it should not be.

In this example, the default-path of the request-uri happens to be
"/acme", which is the same value as the cookie's original "Path"
attribute, so the cookie's behavior would be OK.  But what would happen
if a cookie specifies a path on a different level of the request-uri's
folder hierarchy?  Section 5.2.4 would store the wrong path in the
cookie storage due to this shortcoming in Section 5.2's parsing rules.

A more fatal failure exists in Section 5.2.3, and it is caused by the
same parsing logic error in Section 5.2.

Had the cookie specified a quoted "Domain" attribute value, eg:

  Set-Cookie: Customer=3D"WILE_E_COYOTE"; Version=3D"1"; Domain=3D"<host>";
Path=3D"/acme"

The "If the first character of the attribute-value string is %x2E"
condition of Section 5.2.3 would not be satisfied as the first character
would be %x22 ("), so the cookie-domain would end up being set to the
complete quoted attribute value.  Future domain matching for that cookie
would then always fail, as the quotes would falsify every test condition
in Section 5.1.3, so the cookie would never be able to be included in
future "Cookie" request headers.

RFCs 2109 and 2965 allow quoted-string in all value fields, and as such
should be handled at the Section 5.2 parsing layer, not the Section
5.2.x processing layers.  This would further benefit interoperability
with existing implementations.  It would also possibly eliminate the
need to explicitally include base64-string in the allowed grammar.  Any
server that outputs a base64 encoded cookie value that uses "=3D" padding
character(s) is likely to quote the value to conform with RFC 2109, as
quoted-string allows characters that are normally reserved by the
grammer.  base64 cookie values that do not use any padding do not
require quoting, but can still be quoted if the server wishes.

Does this make the issue clearer for you?


From ietf@adambarth.com  Sat Feb  5 01:46:25 2011
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 8B6C53A6936 for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 01:46:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.686
X-Spam-Level: 
X-Spam-Status: No, score=-3.686 tagged_above=-999 required=5 tests=[AWL=-0.709, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 GbnPL2XKqGsK for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 01:46:24 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id D0DFC3A6929 for <http-state@ietf.org>; Sat,  5 Feb 2011 01:46:23 -0800 (PST)
Received: by iwc10 with SMTP id 10so3260434iwc.31 for <http-state@ietf.org>; Sat, 05 Feb 2011 01:49:51 -0800 (PST)
Received: by 10.42.225.197 with SMTP id it5mr15393590icb.331.1296899390874; Sat, 05 Feb 2011 01:49:50 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id i16sm1484348ibl.0.2011.02.05.01.49.49 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Feb 2011 01:49:49 -0800 (PST)
Received: by iym1 with SMTP id 1so2662340iym.31 for <http-state@ietf.org>; Sat, 05 Feb 2011 01:49:48 -0800 (PST)
Received: by 10.42.221.194 with SMTP id id2mr1529723icb.448.1296899388633; Sat, 05 Feb 2011 01:49:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.35.13 with HTTP; Sat, 5 Feb 2011 01:49:18 -0800 (PST)
In-Reply-To: <20110205002149.f00013ceab8fb1928885c5c172fbfd4a.147756da58.wbe@email00.secureserver.net>
References: <20110205002149.f00013ceab8fb1928885c5c172fbfd4a.147756da58.wbe@email00.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Sat, 5 Feb 2011 01:49:18 -0800
Message-ID: <AANLkTimp8G2JW0saishm4gvKiBtPrWUsuUgmS-AAXgo3@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Sat, 05 Feb 2011 09:46:25 -0000

On Fri, Feb 4, 2011 at 11:21 PM, Remy Lebeau <remy@lebeausoftware.org> wrot=
e:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth <ietf@adambarth.com>
> Date: Fri, February 04, 2011 4:27 pm
> To: Remy Lebeau <remy@lebeausoftware.org>
> Cc: http-state@ietf.org
>
>> Section 5 does not use token at all, much less exclusively.
>
> It does, however, outline the rules for extracting the individual string
> values of the various components, and then how to process their contents
> once all the grammar has been stripped away. =A0The only parsing rule tha=
t
> explicitally allows for quoted-string values is Date handling, because a
> quotation mark is included in the list of defined leading/trailing
> delimiters. =A0No other rule allows for the presence of quotation marks.
>
>> Can you provide an example of a Set-Cookie header that
>> you believe is processed incorrectly by Section 5?
>
> The examples in RFCs 2109 and 2965, for starters. =A0Let's look at the
> first example:
>
> =A0Set-Cookie: Customer=3D"WILE_E_COYOTE"; Version=3D"1"; Path=3D"/acme"
>
> Which is issued by a request to "http://<host>/acme/login".
>
> Here is a step-by-step breakdown of how the above cookie gets processed
> by Section 5.2 (I will use parenthesis around values so you can see
> where whitespace charcters exist). =A0I believe a failure occurs in the
> processing of the "Path" attribute by Section 5.2.4:

I haven't gone through your example in detail, but you're correct that
the " character at the beginning of the Path attribute causes the user
agent to never return the cookie.  You're welcome to test
implementations.  As I recall, the behavior in the spec matches how
browsers actually work.

See: https://github.com/abarth/http-state/blob/master/tests/data/parser/pat=
h0027-test

Kind regards,
Adam

From remy@lebeausoftware.org  Sat Feb  5 02:09:02 2011
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 55D963A69AE for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 02:09:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.598
X-Spam-Level: 
X-Spam-Status: No, score=-1.598 tagged_above=-999 required=5 tests=[AWL=0.849,  BAYES_00=-2.599, SARE_SUB_ENC_UTF8=0.152]
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 O6w9DbWzVjLu for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 02:09:01 -0800 (PST)
Received: from smtpoutwbe07.prod.mesa1.secureserver.net (smtpoutwbe07.prod.mesa1.secureserver.net [208.109.78.209]) by core3.amsl.com (Postfix) with SMTP id 9A0CB3A68DF for <http-state@ietf.org>; Sat,  5 Feb 2011 02:09:01 -0800 (PST)
Received: (qmail 10377 invoked from network); 5 Feb 2011 10:12:27 -0000
Received: from unknown (HELO gem-wbe06.prod.mesa1.secureserver.net) (64.202.189.38) by smtpoutwbe07.prod.mesa1.secureserver.net with SMTP; 5 Feb 2011 10:12:27 -0000
Received: (qmail 26644 invoked by uid 99); 5 Feb 2011 10:12:27 -0000
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Originating-IP: 76.93.119.83
User-Agent: Web-Based Email 5.3.08
Message-Id: <20110205031227.f00013ceab8fb1928885c5c172fbfd4a.078b7e26ba.wbe@email00.secureserver.net>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: "Adam Barth" <ietf@adambarth.com>
Date: Sat, 05 Feb 2011 03:12:27 -0700
Mime-Version: 1.0
Cc: http-state@ietf.org
Subject: Re: [http-state] =?utf-8?q?Is_this_an_omission_in_the_parser_rules_of?= =?utf-8?q?_draft-ietf-httpstate-cookie-21=3F?=
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: Sat, 05 Feb 2011 10:09:02 -0000

-------- Original Message --------
Subject: Re: [http-state] Is this an omission in the parser rules of
draft-ietf-httpstate-cookie-21?
From: Adam Barth <ietf@adambarth.com>
Date: Sat, February 05, 2011 1:49 am
To: Remy Lebeau <remy@lebeausoftware.org>
Cc: http-state@ietf.org

> I haven't gone through your example in detail, but you're correct
> that the " character at the beginning of the Path attribute causes
> the user agent to never return the cookie.

Quotes around the Path attribute MAY allow the cookie to be returned,
depending on which default-path is retreived.  Quotes around the Domain
attribute, on the other hand, WILL NOT allow the cookie to be returned.

> You're welcome to test implementations.

Thanks for the link, that is exactly the kind of test data I have been
looking for lately.  I'll run the examples through my implementation
when I get a chance.



From ietf@adambarth.com  Sat Feb  5 02:14:46 2011
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 3EEDC3A6A50 for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 02:14:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.683
X-Spam-Level: 
X-Spam-Status: No, score=-3.683 tagged_above=-999 required=5 tests=[AWL=-0.706, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 AxFBStS3jYus for <http-state@core3.amsl.com>; Sat,  5 Feb 2011 02:14:45 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id 7804B3A6A42 for <http-state@ietf.org>; Sat,  5 Feb 2011 02:14:45 -0800 (PST)
Received: by iym1 with SMTP id 1so2677705iym.31 for <http-state@ietf.org>; Sat, 05 Feb 2011 02:18:12 -0800 (PST)
Received: by 10.42.227.194 with SMTP id jb2mr5046002icb.432.1296901092798; Sat, 05 Feb 2011 02:18:12 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id z4sm1504099ibg.19.2011.02.05.02.18.11 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Feb 2011 02:18:11 -0800 (PST)
Received: by iwc10 with SMTP id 10so3275619iwc.31 for <http-state@ietf.org>; Sat, 05 Feb 2011 02:18:10 -0800 (PST)
Received: by 10.231.206.207 with SMTP id fv15mr1660149ibb.39.1296901090539; Sat, 05 Feb 2011 02:18:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.35.13 with HTTP; Sat, 5 Feb 2011 02:17:40 -0800 (PST)
In-Reply-To: <20110205031227.f00013ceab8fb1928885c5c172fbfd4a.078b7e26ba.wbe@email00.secureserver.net>
References: <20110205031227.f00013ceab8fb1928885c5c172fbfd4a.078b7e26ba.wbe@email00.secureserver.net>
From: Adam Barth <ietf@adambarth.com>
Date: Sat, 5 Feb 2011 02:17:40 -0800
Message-ID: <AANLkTimN=3q6GeTvar1SW_syU3kK9+j1kNt0DiOzmJr7@mail.gmail.com>
To: Remy Lebeau <remy@lebeausoftware.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Sat, 05 Feb 2011 10:14:46 -0000

On Sat, Feb 5, 2011 at 2:12 AM, Remy Lebeau <remy@lebeausoftware.org> wrote=
:
> -------- Original Message --------
> Subject: Re: [http-state] Is this an omission in the parser rules of
> draft-ietf-httpstate-cookie-21?
> From: Adam Barth <ietf@adambarth.com>
> Date: Sat, February 05, 2011 1:49 am
> To: Remy Lebeau <remy@lebeausoftware.org>
> Cc: http-state@ietf.org
>
>> I haven't gone through your example in detail, but you're correct
>> that the " character at the beginning of the Path attribute causes
>> the user agent to never return the cookie.
>
> Quotes around the Path attribute MAY allow the cookie to be returned,
> depending on which default-path is retreived. =A0Quotes around the Domain
> attribute, on the other hand, WILL NOT allow the cookie to be returned.
>
>> You're welcome to test implementations.
>
> Thanks for the link, that is exactly the kind of test data I have been
> looking for lately. =A0I'll run the examples through my implementation
> when I get a chance.

The test suite might not be fully up-to-date with the spec.  My plan
was to go through and update the expected results once the spec is
finalized.  There's also a test harness in that github that you might
find useful.

Adam

From stpeter@stpeter.im  Thu Feb 10 16:59:15 2011
Return-Path: <stpeter@stpeter.im>
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 39A4D3A67D1 for <http-state@core3.amsl.com>; Thu, 10 Feb 2011 16:59:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 9V9wM+5SvwQo for <http-state@core3.amsl.com>; Thu, 10 Feb 2011 16:59:13 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 4C5A63A6AFC for <http-state@ietf.org>; Thu, 10 Feb 2011 16:59:13 -0800 (PST)
Received: from squire.local (dsl-251-175.dynamic-dsl.frii.net [216.17.251.175]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B481640CFC; Thu, 10 Feb 2011 18:17:00 -0700 (MST)
Message-ID: <4D5489E9.10001@stpeter.im>
Date: Thu, 10 Feb 2011 17:59:21 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.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>
In-Reply-To: <AANLkTinFq7bE_e3SSgdjuFvZ8hGn1xy4Hc1VKwc=vp1D@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms020207040606020508070804"
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: Fri, 11 Feb 2011 00:59:15 -0000

This is a cryptographically signed message in MIME format.

--------------ms020207040606020508070804
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/4/11 12:29 PM, Adam Barth wrote:
> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> wr=
ote:
>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org=
> wrote:
>>>> -------- Original Message --------
>>>> Subject: Re: [http-state] Is this an omission in the parser rules of=

>>>> draft-ietf-httpstate-cookie-21?
>>>> From: Adam Barth
>>>> Date: Fri, February 04, 2011 10:19 am
>>>> To: Remy Lebeau
>>>> Cc: http-state@ietf.org
>>>>
>>>>> The draft gives user agents precise
>>>>> instructions for how to parse all
>>>>> manner of cookies, including cookies with
>>>>> values that contain quote characters. That
>>>>> information is contained in Section 5
>>>>
>>>> I have re-read Section 5 and I do not see its grammar or parsing rul=
es
>>>> accounting for quoted-string values at all. It only says to remove W=
SP
>>>> characters surrounding extracted names and values, and quote charact=
ers
>>>> are not part of the WSP definition. So what am I missing? Where exac=
tly
>>>> does it say how to unquote a quoted-string used in attribute values?=

>>>
>>> Precisely.  It does not say to unquote a quoted-string because that's=

>>> not how cookies work.  The role of the quote character is cookies is
>>> identical to the role of the "!" character.  That is, neither play a
>>> special role in the protocol.  Any representations by the contrary by=

>>> 2109 or any other document are fiction and have only caused pain and
>>> misery in the world.
>>
>> That may be, but the grammar for server generation of set-cookie
>> values is clearly wrong because use of DQUOTE in cookie values is
>> common (roughly 10% of the values in my browser cookie store) and
>> previously defined, even if we consider DQUOTE to be part of the
>> value string.  Let's just change the generating grammar for value to
>> match how cookies are actually parsed and only exclude characters
>> that are known to cause failures.
>=20
> The grammar is not used for parsing.  Parsing is defined in Section 5,
> not Section 4.

Right. And I think the revised text in version -21 (with revisions to
address the IESG comment from Robert Sparks) makes that fairly clear.

Adam, did you propose specific text addressing Dan Winship's original
issue about "cookie-value=3Dtoken"? As far as I can see, that's the only
substantive issue raised in this thread, but I admit that I might have
missed something.

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms020207040606020508070804
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAM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3RhcnRDb20gQ2xh
c3MgMyBQcmltYXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0ECAgCLMIGmBgsqhkiG9w0BCRAC
CzGBlqCBkzCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNV
BAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0
Q29tIENsYXNzIDMgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgIAizANBgkqhkiG
9w0BAQEFAASCAQBDhwMDi+R0BBteiQJruTy/UsgaJJnk3SpduoPxpIzHtVuYoHUT/fcblBJz
7Fgeh25F0cfkWZnk5rJDWXpk04B8WuzwTGi3oVc9GOexbFEaZ5fEFE93cCIllp3H/WOobpz1
6xtualcQZQ6nX+CKr9vlv1XpgWinvciYOKUGtU8lyqBx+NtWlhkci77HilgoUyLcAi6gd31B
Hf7qd9gnrviDDOZ9m5O6emCU5Q6tQY1sI4YFlPK488EyB8PwPRS/EA4058byvQdXoyj/Svxe
AXoUgp1nCMERiP3df/Y9/1lT7fAMPtDvtygIakdFNF3vWhPG8J92eBiK3+77tXEE++OoAAAA
AAAA
--------------ms020207040606020508070804--

From ietf@adambarth.com  Thu Feb 10 17:09:23 2011
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 5130D3A6860 for <http-state@core3.amsl.com>; Thu, 10 Feb 2011 17:09:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.565
X-Spam-Level: 
X-Spam-Status: No, score=-1.565 tagged_above=-999 required=5 tests=[AWL=1.412,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 U-8JycM7snPK for <http-state@core3.amsl.com>; Thu, 10 Feb 2011 17:09:22 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 2D6233A6827 for <http-state@ietf.org>; Thu, 10 Feb 2011 17:09:22 -0800 (PST)
Received: by vws7 with SMTP id 7so1407666vws.31 for <http-state@ietf.org>; Thu, 10 Feb 2011 17:09:35 -0800 (PST)
Received: by 10.220.188.72 with SMTP id cz8mr692865vcb.64.1297386574703; Thu, 10 Feb 2011 17:09:34 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id g17sm194501vbv.12.2011.02.10.17.09.33 (version=SSLv3 cipher=OTHER); Thu, 10 Feb 2011 17:09:33 -0800 (PST)
Received: by iym1 with SMTP id 1so2060711iym.31 for <http-state@ietf.org>; Thu, 10 Feb 2011 17:09:32 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr7762245ibd.105.1297386572456; Thu, 10 Feb 2011 17:09:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Thu, 10 Feb 2011 17:09:02 -0800 (PST)
In-Reply-To: <4D5489E9.10001@stpeter.im>
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> <4D5489E9.10001@stpeter.im>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 10 Feb 2011 17:09:02 -0800
Message-ID: <AANLkTimSA3gPV7e3hUr-dB5-SPt+SXrb5qShGE-2A3Qw@mail.gmail.com>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Fri, 11 Feb 2011 01:09:23 -0000

On Thu, Feb 10, 2011 at 4:59 PM, Peter Saint-Andre <stpeter@stpeter.im> wro=
te:
> On 2/4/11 12:29 PM, Adam Barth wrote:
>> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> wro=
te:
>>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org>=
 wrote:
>>>>> -------- Original Message --------
>>>>> Subject: Re: [http-state] Is this an omission in the parser rules of
>>>>> draft-ietf-httpstate-cookie-21?
>>>>> From: Adam Barth
>>>>> Date: Fri, February 04, 2011 10:19 am
>>>>> To: Remy Lebeau
>>>>> Cc: http-state@ietf.org
>>>>>
>>>>>> The draft gives user agents precise
>>>>>> instructions for how to parse all
>>>>>> manner of cookies, including cookies with
>>>>>> values that contain quote characters. That
>>>>>> information is contained in Section 5
>>>>>
>>>>> I have re-read Section 5 and I do not see its grammar or parsing rule=
s
>>>>> accounting for quoted-string values at all. It only says to remove WS=
P
>>>>> characters surrounding extracted names and values, and quote characte=
rs
>>>>> are not part of the WSP definition. So what am I missing? Where exact=
ly
>>>>> does it say how to unquote a quoted-string used in attribute values?
>>>>
>>>> Precisely. =A0It does not say to unquote a quoted-string because that'=
s
>>>> not how cookies work. =A0The role of the quote character is cookies is
>>>> identical to the role of the "!" character. =A0That is, neither play a
>>>> special role in the protocol. =A0Any representations by the contrary b=
y
>>>> 2109 or any other document are fiction and have only caused pain and
>>>> misery in the world.
>>>
>>> That may be, but the grammar for server generation of set-cookie
>>> values is clearly wrong because use of DQUOTE in cookie values is
>>> common (roughly 10% of the values in my browser cookie store) and
>>> previously defined, even if we consider DQUOTE to be part of the
>>> value string. =A0Let's just change the generating grammar for value to
>>> match how cookies are actually parsed and only exclude characters
>>> that are known to cause failures.
>>
>> The grammar is not used for parsing. =A0Parsing is defined in Section 5,
>> not Section 4.
>
> Right. And I think the revised text in version -21 (with revisions to
> address the IESG comment from Robert Sparks) makes that fairly clear.
>
> Adam, did you propose specific text addressing Dan Winship's original
> issue about "cookie-value=3Dtoken"? As far as I can see, that's the only
> substantive issue raised in this thread, but I admit that I might have
> missed something.

Sure:

diff --git a/drafts/cookie.xml b/drafts/cookie.xml
index e0a53f3..17cc0a5 100644
--- a/drafts/cookie.xml
+++ b/drafts/cookie.xml
@@ -335,7 +335,8 @@ set-cookie-header =3D "Set-Cookie:" SP set-cookie-strin=
g
 set-cookie-string =3D cookie-pair *( ";" SP cookie-av )
 cookie-pair       =3D cookie-name "=3D" cookie-value
 cookie-name       =3D token
-cookie-value      =3D token / ""
+cookie-value      =3D token / *base64-character
+base64-character  =3D ALPHA / DIGIT / "+" / "/" / "=3D"
 token             =3D <token, defined in [RFC2616], Section 2.2>

 cookie-av         =3D expires-av / max-age-av / domain-av /
@@ -370,7 +371,7 @@ extension-av      =3D <any CHAR except CTLs or ";">

           <t>To maximize compatibility with user agents, servers that wish=
 to
           store arbitrary data in a cookie-value SHOULD encode that data, =
for
-          example, using Base 16 <xref target=3D"RFC4648" />.</t>
+          example, using Base64 <xref target=3D"RFC4648" />.</t>

           <t>The portions of the set-cookie-string produced by the cookie-=
av
           term are known as attributes.  To maximize compatibility with us=
er

Adam

From stpeter@stpeter.im  Mon Feb 14 15:41:02 2011
Return-Path: <stpeter@stpeter.im>
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 545B93A6DA9 for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 15:41:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 Jr4KhVxYIjw8 for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 15:41:00 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id AC9543A6D7C for <http-state@ietf.org>; Mon, 14 Feb 2011 15:41:00 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 03ECB400F6; Mon, 14 Feb 2011 16:59:22 -0700 (MST)
Message-ID: <4D59BDA3.1070004@stpeter.im>
Date: Mon, 14 Feb 2011 16:41:23 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.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> <4D5489E9.10001@stpeter.im> <AANLkTimSA3gPV7e3hUr-dB5-SPt+SXrb5qShGE-2A3Qw@mail.gmail.com>
In-Reply-To: <AANLkTimSA3gPV7e3hUr-dB5-SPt+SXrb5qShGE-2A3Qw@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms010502070706050908030902"
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: Mon, 14 Feb 2011 23:41:02 -0000

This is a cryptographically signed message in MIME format.

--------------ms010502070706050908030902
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/10/11 6:09 PM, Adam Barth wrote:
> On Thu, Feb 10, 2011 at 4:59 PM, Peter Saint-Andre <stpeter@stpeter.im>=
 wrote:
>> On 2/4/11 12:29 PM, Adam Barth wrote:
>>> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> =
wrote:
>>>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.o=
rg> wrote:
>>>>>> -------- Original Message --------
>>>>>> Subject: Re: [http-state] Is this an omission in the parser rules =
of
>>>>>> draft-ietf-httpstate-cookie-21?
>>>>>> From: Adam Barth
>>>>>> Date: Fri, February 04, 2011 10:19 am
>>>>>> To: Remy Lebeau
>>>>>> Cc: http-state@ietf.org
>>>>>>
>>>>>>> The draft gives user agents precise
>>>>>>> instructions for how to parse all
>>>>>>> manner of cookies, including cookies with
>>>>>>> values that contain quote characters. That
>>>>>>> information is contained in Section 5
>>>>>>
>>>>>> I have re-read Section 5 and I do not see its grammar or parsing r=
ules
>>>>>> accounting for quoted-string values at all. It only says to remove=
 WSP
>>>>>> characters surrounding extracted names and values, and quote chara=
cters
>>>>>> are not part of the WSP definition. So what am I missing? Where ex=
actly
>>>>>> does it say how to unquote a quoted-string used in attribute value=
s?
>>>>>
>>>>> Precisely.  It does not say to unquote a quoted-string because that=
's
>>>>> not how cookies work.  The role of the quote character is cookies i=
s
>>>>> identical to the role of the "!" character.  That is, neither play =
a
>>>>> special role in the protocol.  Any representations by the contrary =
by
>>>>> 2109 or any other document are fiction and have only caused pain an=
d
>>>>> misery in the world.
>>>>
>>>> That may be, but the grammar for server generation of set-cookie
>>>> values is clearly wrong because use of DQUOTE in cookie values is
>>>> common (roughly 10% of the values in my browser cookie store) and
>>>> previously defined, even if we consider DQUOTE to be part of the
>>>> value string.  Let's just change the generating grammar for value to=

>>>> match how cookies are actually parsed and only exclude characters
>>>> that are known to cause failures.
>>>
>>> The grammar is not used for parsing.  Parsing is defined in Section 5=
,
>>> not Section 4.
>>
>> Right. And I think the revised text in version -21 (with revisions to
>> address the IESG comment from Robert Sparks) makes that fairly clear.
>>
>> Adam, did you propose specific text addressing Dan Winship's original
>> issue about "cookie-value=3Dtoken"? As far as I can see, that's the on=
ly
>> substantive issue raised in this thread, but I admit that I might have=

>> missed something.
>=20
> Sure:
>=20
> diff --git a/drafts/cookie.xml b/drafts/cookie.xml
> index e0a53f3..17cc0a5 100644
> --- a/drafts/cookie.xml
> +++ b/drafts/cookie.xml
> @@ -335,7 +335,8 @@ set-cookie-header =3D "Set-Cookie:" SP set-cookie-s=
tring
>  set-cookie-string =3D cookie-pair *( ";" SP cookie-av )
>  cookie-pair       =3D cookie-name "=3D" cookie-value
>  cookie-name       =3D token
> -cookie-value      =3D token / ""
> +cookie-value      =3D token / *base64-character
> +base64-character  =3D ALPHA / DIGIT / "+" / "/" / "=3D"
>  token             =3D <token, defined in [RFC2616], Section 2.2>
>=20
>  cookie-av         =3D expires-av / max-age-av / domain-av /
> @@ -370,7 +371,7 @@ extension-av      =3D <any CHAR except CTLs or ";">=

>=20
>            <t>To maximize compatibility with user agents, servers that =
wish to
>            store arbitrary data in a cookie-value SHOULD encode that da=
ta, for
> -          example, using Base 16 <xref target=3D"RFC4648" />.</t>
> +          example, using Base64 <xref target=3D"RFC4648" />.</t>
>=20
>            <t>The portions of the set-cookie-string produced by the coo=
kie-av
>            term are known as attributes.  To maximize compatibility wit=
h user

WFM, and that seems to capture list discussion.

Adam, I'll follow up with the remaining IESG members this week and
perhaps ask you to submit a revised I-D so we can finish this off. :)

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms010502070706050908030902
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdG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gIAizANBgkqhkiG
9w0BAQEFAASCAQB0+zQKAYJ3qVAQMZsUXrBjd3f6wfFkxmntJiNcAM6Oa24Xx5z3RkovJNHV
42ETeHymwMKsNkTkg9Y7gFJYghsd306G+ZktCPBpXY3D65SfgnIZr2Q1RnanJWTi9KPqNcie
2uiOTkn03zNeoKhfyhZE2uupJ1Q8i5T0g5UlEmWOpEIp/oumbhhtrErIbQyZtlNqL2IlPBLZ
h+nvR486quUX1Unyxe+y7Hpf24MAVkdr/k1s5HqelLw3M8cFsI+e7gZ1POo2W7WNC3cPuNlD
P34AuNWI5ThlqInKqLThLAktQpnK84sfmjULjDdMyXHK1TMfk2e8uad3ygQEpF6S1oO4AAAA
AAAA
--------------ms010502070706050908030902--

From ietf@adambarth.com  Mon Feb 14 15:43:14 2011
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 69E433A6DE1 for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 15:43:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.271
X-Spam-Level: 
X-Spam-Status: No, score=-2.271 tagged_above=-999 required=5 tests=[AWL=0.706,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 dXRHXC73Ab+L for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 15:43:13 -0800 (PST)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id 3DD4D3A6DE0 for <http-state@ietf.org>; Mon, 14 Feb 2011 15:43:13 -0800 (PST)
Received: by qwi2 with SMTP id 2so3776341qwi.31 for <http-state@ietf.org>; Mon, 14 Feb 2011 15:43:37 -0800 (PST)
Received: by 10.229.81.6 with SMTP id v6mr3489735qck.223.1297727016508; Mon, 14 Feb 2011 15:43:36 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id l17sm2175523qck.8.2011.02.14.15.43.34 (version=SSLv3 cipher=OTHER); Mon, 14 Feb 2011 15:43:35 -0800 (PST)
Received: by iwc10 with SMTP id 10so5732974iwc.31 for <http-state@ietf.org>; Mon, 14 Feb 2011 15:43:34 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr3436660ibd.105.1297727014135; Mon, 14 Feb 2011 15:43:34 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Mon, 14 Feb 2011 15:43:04 -0800 (PST)
In-Reply-To: <4D59BDA3.1070004@stpeter.im>
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> <4D5489E9.10001@stpeter.im> <AANLkTimSA3gPV7e3hUr-dB5-SPt+SXrb5qShGE-2A3Qw@mail.gmail.com> <4D59BDA3.1070004@stpeter.im>
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 14 Feb 2011 15:43:04 -0800
Message-ID: <AANLkTi=QaD2PYZ5JXXqAxMdHe4o9su-9+7_bqJbOXdxX@mail.gmail.com>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Mon, 14 Feb 2011 23:43:14 -0000

On Mon, Feb 14, 2011 at 3:41 PM, Peter Saint-Andre <stpeter@stpeter.im> wro=
te:
> On 2/10/11 6:09 PM, Adam Barth wrote:
>> On Thu, Feb 10, 2011 at 4:59 PM, Peter Saint-Andre <stpeter@stpeter.im> =
wrote:
>>> On 2/4/11 12:29 PM, Adam Barth wrote:
>>>> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> w=
rote:
>>>>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>>>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.or=
g> wrote:
>>>>>>> -------- Original Message --------
>>>>>>> Subject: Re: [http-state] Is this an omission in the parser rules o=
f
>>>>>>> draft-ietf-httpstate-cookie-21?
>>>>>>> From: Adam Barth
>>>>>>> Date: Fri, February 04, 2011 10:19 am
>>>>>>> To: Remy Lebeau
>>>>>>> Cc: http-state@ietf.org
>>>>>>>
>>>>>>>> The draft gives user agents precise
>>>>>>>> instructions for how to parse all
>>>>>>>> manner of cookies, including cookies with
>>>>>>>> values that contain quote characters. That
>>>>>>>> information is contained in Section 5
>>>>>>>
>>>>>>> I have re-read Section 5 and I do not see its grammar or parsing ru=
les
>>>>>>> accounting for quoted-string values at all. It only says to remove =
WSP
>>>>>>> characters surrounding extracted names and values, and quote charac=
ters
>>>>>>> are not part of the WSP definition. So what am I missing? Where exa=
ctly
>>>>>>> does it say how to unquote a quoted-string used in attribute values=
?
>>>>>>
>>>>>> Precisely. =A0It does not say to unquote a quoted-string because tha=
t's
>>>>>> not how cookies work. =A0The role of the quote character is cookies =
is
>>>>>> identical to the role of the "!" character. =A0That is, neither play=
 a
>>>>>> special role in the protocol. =A0Any representations by the contrary=
 by
>>>>>> 2109 or any other document are fiction and have only caused pain and
>>>>>> misery in the world.
>>>>>
>>>>> That may be, but the grammar for server generation of set-cookie
>>>>> values is clearly wrong because use of DQUOTE in cookie values is
>>>>> common (roughly 10% of the values in my browser cookie store) and
>>>>> previously defined, even if we consider DQUOTE to be part of the
>>>>> value string. =A0Let's just change the generating grammar for value t=
o
>>>>> match how cookies are actually parsed and only exclude characters
>>>>> that are known to cause failures.
>>>>
>>>> The grammar is not used for parsing. =A0Parsing is defined in Section =
5,
>>>> not Section 4.
>>>
>>> Right. And I think the revised text in version -21 (with revisions to
>>> address the IESG comment from Robert Sparks) makes that fairly clear.
>>>
>>> Adam, did you propose specific text addressing Dan Winship's original
>>> issue about "cookie-value=3Dtoken"? As far as I can see, that's the onl=
y
>>> substantive issue raised in this thread, but I admit that I might have
>>> missed something.
>>
>> Sure:
>>
>> diff --git a/drafts/cookie.xml b/drafts/cookie.xml
>> index e0a53f3..17cc0a5 100644
>> --- a/drafts/cookie.xml
>> +++ b/drafts/cookie.xml
>> @@ -335,7 +335,8 @@ set-cookie-header =3D "Set-Cookie:" SP set-cookie-st=
ring
>> =A0set-cookie-string =3D cookie-pair *( ";" SP cookie-av )
>> =A0cookie-pair =A0 =A0 =A0 =3D cookie-name "=3D" cookie-value
>> =A0cookie-name =A0 =A0 =A0 =3D token
>> -cookie-value =A0 =A0 =A0=3D token / ""
>> +cookie-value =A0 =A0 =A0=3D token / *base64-character
>> +base64-character =A0=3D ALPHA / DIGIT / "+" / "/" / "=3D"
>> =A0token =A0 =A0 =A0 =A0 =A0 =A0 =3D <token, defined in [RFC2616], Secti=
on 2.2>
>>
>> =A0cookie-av =A0 =A0 =A0 =A0 =3D expires-av / max-age-av / domain-av /
>> @@ -370,7 +371,7 @@ extension-av =A0 =A0 =A0=3D <any CHAR except CTLs or=
 ";">
>>
>> =A0 =A0 =A0 =A0 =A0 =A0<t>To maximize compatibility with user agents, se=
rvers that wish to
>> =A0 =A0 =A0 =A0 =A0 =A0store arbitrary data in a cookie-value SHOULD enc=
ode that data, for
>> - =A0 =A0 =A0 =A0 =A0example, using Base 16 <xref target=3D"RFC4648" />.=
</t>
>> + =A0 =A0 =A0 =A0 =A0example, using Base64 <xref target=3D"RFC4648" />.<=
/t>
>>
>> =A0 =A0 =A0 =A0 =A0 =A0<t>The portions of the set-cookie-string produced=
 by the cookie-av
>> =A0 =A0 =A0 =A0 =A0 =A0term are known as attributes. =A0To maximize comp=
atibility with user
>
> WFM, and that seems to capture list discussion.
>
> Adam, I'll follow up with the remaining IESG members this week and
> perhaps ask you to submit a revised I-D so we can finish this off. :)

Yay!

Adam

From fielding@gbiv.com  Mon Feb 14 19:23:03 2011
Return-Path: <fielding@gbiv.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 CF9383A6E29 for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 19:23:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level: 
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[AWL=-4.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 ZY1gxG3XDr+q for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 19:23:02 -0800 (PST)
Received: from homiemail-a71.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by core3.amsl.com (Postfix) with ESMTP id B262D3A6E21 for <http-state@ietf.org>; Mon, 14 Feb 2011 19:23:02 -0800 (PST)
Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 34BAA428072; Mon, 14 Feb 2011 19:23:27 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=lQZPnGuLnR0ARtqz ygkZHOo9IdMSafg9UafbjCqhimX6JpC7yomlkENkm7YNPdLz3kHwDvWSCjKv+cgf AN951juDrxMdf6Ow/xznkBsQH10GFDTwZx7VLfwiBVFUGHFgW6FAO7p3zSW0W2KU zXHkVlZzCtzGCI505B+omLYDq/4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=FVmPDCjVP+r/fnT/JjDyE2mJgdM=; b=cr3pPu663QzT3iTdb2XF7NzKDf85 xeqV59iYu9jMjMQRm76NLbP5nKxyex6nmGq+LZf3VFYaUIvDyAOhfICAqyUmGzYG xjUA6yo93dgOBNS5Sj8QHbxAJcoIonmAIZOZSs7lNX07JO1KSMvlL0WvHAal/GzV SqanAs+AazTdjKs=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id E114742806E;  Mon, 14 Feb 2011 19:23:26 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTinFq7bE_e3SSgdjuFvZ8hGn1xy4Hc1VKwc=vp1D@mail.gmail.com>
Date: Mon, 14 Feb 2011 19:23:26 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <49225418-A1AF-4299-8C4F-2E608D34265D@gbiv.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>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
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: Tue, 15 Feb 2011 03:23:03 -0000

On Feb 4, 2011, at 11:29 AM, Adam Barth wrote:
> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> =
wrote:
>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau =
<remy@lebeausoftware.org> wrote:
>>>> -------- Original Message --------
>>>> Subject: Re: [http-state] Is this an omission in the parser rules =
of
>>>> draft-ietf-httpstate-cookie-21?
>>>> From: Adam Barth
>>>> Date: Fri, February 04, 2011 10:19 am
>>>> To: Remy Lebeau
>>>> Cc: http-state@ietf.org
>>>>=20
>>>>> The draft gives user agents precise
>>>>> instructions for how to parse all
>>>>> manner of cookies, including cookies with
>>>>> values that contain quote characters. That
>>>>> information is contained in Section 5
>>>>=20
>>>> I have re-read Section 5 and I do not see its grammar or parsing =
rules
>>>> accounting for quoted-string values at all. It only says to remove =
WSP
>>>> characters surrounding extracted names and values, and quote =
characters
>>>> are not part of the WSP definition. So what am I missing? Where =
exactly
>>>> does it say how to unquote a quoted-string used in attribute =
values?
>>>=20
>>> Precisely.  It does not say to unquote a quoted-string because =
that's
>>> not how cookies work.  The role of the quote character is cookies is
>>> identical to the role of the "!" character.  That is, neither play a
>>> special role in the protocol.  Any representations by the contrary =
by
>>> 2109 or any other document are fiction and have only caused pain and
>>> misery in the world.
>>=20
>> That may be, but the grammar for server generation of set-cookie
>> values is clearly wrong because use of DQUOTE in cookie values is
>> common (roughly 10% of the values in my browser cookie store) and
>> previously defined, even if we consider DQUOTE to be part of the
>> value string.  Let's just change the generating grammar for value to
>> match how cookies are actually parsed and only exclude characters
>> that are known to cause failures.
>=20
> The grammar is not used for parsing.  Parsing is defined in Section 5,
> not Section 4.

Parsing for user agents is defined in section 5.  Servers have to
parse cookies as well, and the grammar provided in section 4 is wrong
for both generation and parsing.

Why do you want to push forward a document with a known error in the
grammar?  Just fix it.

This is not a trivial detail.  As written, the specification says
server developers SHOULD break sites like amazon.com.

   cookie-value      =3D token / ""

The correct grammar is in the original Netscape cookie spec: "This
string is a sequence of characters excluding semi-colon, comma and
white space."  Which easily translates (conservatively) into

   cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF

and it does not conflict with section 5.

....Roy


From ietf@adambarth.com  Mon Feb 14 20:42:23 2011
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 8CFE03A6C38 for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 20:42:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.573
X-Spam-Level: 
X-Spam-Status: No, score=-2.573 tagged_above=-999 required=5 tests=[AWL=0.404,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 ylyr6J8LYkrg for <http-state@core3.amsl.com>; Mon, 14 Feb 2011 20:42:22 -0800 (PST)
Received: from mail-yi0-f44.google.com (mail-yi0-f44.google.com [209.85.218.44]) by core3.amsl.com (Postfix) with ESMTP id 6FB473A6A78 for <http-state@ietf.org>; Mon, 14 Feb 2011 20:42:22 -0800 (PST)
Received: by yie19 with SMTP id 19so2673971yie.31 for <http-state@ietf.org>; Mon, 14 Feb 2011 20:42:46 -0800 (PST)
Received: by 10.150.228.11 with SMTP id a11mr5348248ybh.381.1297744966598; Mon, 14 Feb 2011 20:42:46 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id v4sm2197495ybe.5.2011.02.14.20.42.45 (version=SSLv3 cipher=OTHER); Mon, 14 Feb 2011 20:42:45 -0800 (PST)
Received: by iwc10 with SMTP id 10so5929299iwc.31 for <http-state@ietf.org>; Mon, 14 Feb 2011 20:42:44 -0800 (PST)
Received: by 10.42.180.73 with SMTP id bt9mr6018444icb.401.1297744964847; Mon, 14 Feb 2011 20:42:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Mon, 14 Feb 2011 20:42:13 -0800 (PST)
In-Reply-To: <49225418-A1AF-4299-8C4F-2E608D34265D@gbiv.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>
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 14 Feb 2011 20:42:13 -0800
Message-ID: <AANLkTimrJF3LFR4t4j=U2L33kFh+wf-R=sjjwexcmyPi@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Tue, 15 Feb 2011 04:42:23 -0000

On Mon, Feb 14, 2011 at 7:23 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 4, 2011, at 11:29 AM, Adam Barth wrote:
>> On Fri, Feb 4, 2011 at 11:24 AM, Roy T. Fielding <fielding@gbiv.com> wro=
te:
>>> On Feb 4, 2011, at 10:51 AM, Adam Barth wrote:
>>>> On Fri, Feb 4, 2011 at 10:47 AM, Remy Lebeau <remy@lebeausoftware.org>=
 wrote:
>>>>> -------- Original Message --------
>>>>> Subject: Re: [http-state] Is this an omission in the parser rules of
>>>>> draft-ietf-httpstate-cookie-21?
>>>>> From: Adam Barth
>>>>> Date: Fri, February 04, 2011 10:19 am
>>>>> To: Remy Lebeau
>>>>> Cc: http-state@ietf.org
>>>>>
>>>>>> The draft gives user agents precise
>>>>>> instructions for how to parse all
>>>>>> manner of cookies, including cookies with
>>>>>> values that contain quote characters. That
>>>>>> information is contained in Section 5
>>>>>
>>>>> I have re-read Section 5 and I do not see its grammar or parsing rule=
s
>>>>> accounting for quoted-string values at all. It only says to remove WS=
P
>>>>> characters surrounding extracted names and values, and quote characte=
rs
>>>>> are not part of the WSP definition. So what am I missing? Where exact=
ly
>>>>> does it say how to unquote a quoted-string used in attribute values?
>>>>
>>>> Precisely. =A0It does not say to unquote a quoted-string because that'=
s
>>>> not how cookies work. =A0The role of the quote character is cookies is
>>>> identical to the role of the "!" character. =A0That is, neither play a
>>>> special role in the protocol. =A0Any representations by the contrary b=
y
>>>> 2109 or any other document are fiction and have only caused pain and
>>>> misery in the world.
>>>
>>> That may be, but the grammar for server generation of set-cookie
>>> values is clearly wrong because use of DQUOTE in cookie values is
>>> common (roughly 10% of the values in my browser cookie store) and
>>> previously defined, even if we consider DQUOTE to be part of the
>>> value string. =A0Let's just change the generating grammar for value to
>>> match how cookies are actually parsed and only exclude characters
>>> that are known to cause failures.
>>
>> The grammar is not used for parsing. =A0Parsing is defined in Section 5,
>> not Section 4.
>
> Parsing for user agents is defined in section 5. =A0Servers have to
> parse cookies as well, and the grammar provided in section 4 is wrong
> for both generation and parsing.

I agree that the grammar depicted in Section 4 is not appropriate for
parsing.  That grammar is not for parsing.  It's for generation.
Perhaps we should add instructions for how servers should parse the
Cookie header?  That's absent from the current document.

As for generation, there's no exogenous notion of correctness.  We can
speak about usefulness, if you like, but correctness is endogenous to
this document.

> Why do you want to push forward a document with a known error in the
> grammar? =A0Just fix it.

I disagree that it's an "error."

> This is not a trivial detail. =A0As written, the specification says
> server developers SHOULD break sites like amazon.com.
>
> =A0 cookie-value =A0 =A0 =A0=3D token / ""

Can you explain how the developers of site B using a restricted
grammar for generation will break amazon.com?  That seems entirely
non-sensical.

> The correct grammar is in the original Netscape cookie spec: "This
> string is a sequence of characters excluding semi-colon, comma and
> white space." =A0Which easily translates (conservatively) into
>
> =A0 cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>
> and it does not conflict with section 5.

I've updated the draft to recommend the grammar below for generating
cookie-values:

cookie-value      =3D token / *base64-character
base64-character  =3D ALPHA / DIGIT / "+" / "/" / "=3D"

Do you have a particular use case in mind for generating Set-Cookie
headers outside this grammar?

Adam

From fielding@gbiv.com  Tue Feb 15 12:28:59 2011
Return-Path: <fielding@gbiv.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 0EA6A3A6D93 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 12:28:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.599
X-Spam-Level: 
X-Spam-Status: No, score=-104.599 tagged_above=-999 required=5 tests=[AWL=-2.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 IzGgPuQbKGYT for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 12:28:57 -0800 (PST)
Received: from homiemail-a29.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by core3.amsl.com (Postfix) with ESMTP id BD83F3A6D7B for <http-state@ietf.org>; Tue, 15 Feb 2011 12:28:57 -0800 (PST)
Received: from homiemail-a29.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTP id 33550674074; Tue, 15 Feb 2011 12:29:24 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=ygY0OKG+dNOQNY15 bsqWYqkmwrz9p9/q6zKsTJIWR4xNLdV/mfbmb9QVb4n2j72MUTpoLsnWa7Rnx2jf Y9rOm6xTYpV8dBBiBIsRIjbk5y3m8TriK7gpojm+izfK3kOGw/cwHnOshSHR64Br 3BDacT4eKjUxUG/2TBRDZrIuJKE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=tyEPSJBlwbO4CaZW/r2ZNiyQp8U=; b=sg+D5HoFopxDglEGNqnS3uviWRT+ KVElHQJoFWtG0cX80AZcrdHQcfn3UkHCqdwnhVzAfnKv35t+smFxniXNa61VM6QH 4jk+nL6AkksekBahoOeBI/cnnW92j9sr7KkD1/gQKld+Ft/e+ZEx3zjorlQ0iT4D aJUmKWGO/Fejq+Q=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a29.g.dreamhost.com (Postfix) with ESMTPSA id EDFA0674059;  Tue, 15 Feb 2011 12:29:23 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTimrJF3LFR4t4j=U2L33kFh+wf-R=sjjwexcmyPi@mail.gmail.com>
Date: Tue, 15 Feb 2011 12:29:23 -0800
Content-Transfer-Encoding: 7bit
Message-Id: <26240DE2-4DD3-4863-81B1-635D34BA4AE4@gbiv.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>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
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: Tue, 15 Feb 2011 20:28:59 -0000

On Feb 14, 2011, at 8:42 PM, Adam Barth wrote:
> On Mon, Feb 14, 2011 at 7:23 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
>> Parsing for user agents is defined in section 5.  Servers have to
>> parse cookies as well, and the grammar provided in section 4 is wrong
>> for both generation and parsing.
> 
> I agree that the grammar depicted in Section 4 is not appropriate for
> parsing.  That grammar is not for parsing.  It's for generation.
> Perhaps we should add instructions for how servers should parse the
> Cookie header?  That's absent from the current document.

We don't need more instructions.  We need a correct ABNF that tells
us what to generate and what to parse.

> As for generation, there's no exogenous notion of correctness.  We can
> speak about usefulness, if you like, but correctness is endogenous to
> this document.

Then you should delete the introduction, since it says

   This document specifies the syntax and semantics of these headers as
   they are actually used on the Internet.  In particular, this document
   does not create new syntax or semantics beyond those in use today.

>> Why do you want to push forward a document with a known error in the
>> grammar?  Just fix it.
> 
> I disagree that it's an "error."

Then please explain to Amazon why you want to break their site?
Look at your browser's cookies for amazon.com and you will probably
find cookies named session-token, at-main, and x-main that do not
follow your grammar.  They are quoted strings and valid under all
prior descriptions of the Cookie and Set-Cookie header fields.

And while you are at it, maybe you'd like to explain to Google
why you want to make Google Analytics cookies invalid.

http://code.google.com/apis/analytics/docs/concepts/gaConceptsCookies.html

The cookie named __utmz is not a quoted-string, not a token, and not base64.

>> This is not a trivial detail.  As written, the specification says
>> server developers SHOULD break sites like amazon.com.
>> 
>>   cookie-value      = token / ""
> 
> Can you explain how the developers of site B using a restricted
> grammar for generation will break amazon.com?  That seems entirely
> non-sensical.

Site B is Amazon.com.  You are editing a proposed standard for the
Internet and, last I checked, they use HTTP on the Internet.

>> The correct grammar is in the original Netscape cookie spec: "This
>> string is a sequence of characters excluding semi-colon, comma and
>> white space."  Which easily translates (conservatively) into
>> 
>>   cookie-value      = %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>> 
>> and it does not conflict with section 5.
> 
> I've updated the draft to recommend the grammar below for generating
> cookie-values:
> 
> cookie-value      = token / *base64-character
> base64-character  = ALPHA / DIGIT / "+" / "/" / "="
> 
> Do you have a particular use case in mind for generating Set-Cookie
> headers outside this grammar?

Yes.  Backwards compliance with existing content stored within
several hundred million deployed browsers that won't expire
until sometime in 2031 dictates that the grammar be

  cookie-value      = %x21-2B / %x2D-3A / %x3C-7E / %x80-FF

because servers have to parse Cookie in every form that they
ever sent a Set-Cookie in the past.

Why are you arguing against this?  You are adamant about
supporting the above syntax in browsers, for the same reasons,
and there is no harm in supporting the complete Netscape syntax
in the server grammar.

....Roy

From julian.reschke@gmx.de  Tue Feb 15 12:44:58 2011
Return-Path: <julian.reschke@gmx.de>
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 73F6C3A6DC1 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 12:44:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.355
X-Spam-Level: 
X-Spam-Status: No, score=-103.355 tagged_above=-999 required=5 tests=[AWL=-0.756, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 KjcxRBiYgNoY for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 12:44:57 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by core3.amsl.com (Postfix) with SMTP id 470F23A6D63 for <http-state@ietf.org>; Tue, 15 Feb 2011 12:44:56 -0800 (PST)
Received: (qmail invoked by alias); 15 Feb 2011 20:45:21 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.138]) [217.91.35.233] by mail.gmx.net (mp054) with SMTP; 15 Feb 2011 21:45:21 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1/2P0ts9Ov211UqzHiftgxceDMMLTaEr51tlMxK5T lN2YmHeuI+g2DX
Message-ID: <4D5AE5DB.70402@gmx.de>
Date: Tue, 15 Feb 2011 21:45:15 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: "Roy T. Fielding" <fielding@gbiv.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>
In-Reply-To: <26240DE2-4DD3-4863-81B1-635D34BA4AE4@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
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: Tue, 15 Feb 2011 20:44:58 -0000

On 15.02.2011 21:29, Roy T. Fielding wrote:
> ...
> Why are you arguing against this?  You are adamant about
> supporting the above syntax in browsers, for the same reasons,
> and there is no harm in supporting the complete Netscape syntax
> in the server grammar.
> ...

Indeed.

If this spec wants to describe cookies-as-used, there's little reason to 
disallow certain cookies when they do interop today, and are not harmful 
with respect to security.

Best regards, Julian

From ietf@adambarth.com  Tue Feb 15 13:11:22 2011
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 9DFEF3A6CB9 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 13:11:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.624
X-Spam-Level: 
X-Spam-Status: No, score=-2.624 tagged_above=-999 required=5 tests=[AWL=0.353,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 4pVa34d+p+xH for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 13:11:21 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id ED91E3A6C4E for <http-state@ietf.org>; Tue, 15 Feb 2011 13:11:20 -0800 (PST)
Received: by iym1 with SMTP id 1so519469iym.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 13:11:47 -0800 (PST)
Received: by 10.231.30.76 with SMTP id t12mr4270779ibc.163.1297804307042; Tue, 15 Feb 2011 13:11:47 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id z4sm3890987ibg.7.2011.02.15.13.11.46 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 13:11:46 -0800 (PST)
Received: by iwc10 with SMTP id 10so628461iwc.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 13:11:45 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr4350197ibd.105.1297804305850; Tue, 15 Feb 2011 13:11:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Tue, 15 Feb 2011 13:11:15 -0800 (PST)
In-Reply-To: <26240DE2-4DD3-4863-81B1-635D34BA4AE4@gbiv.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>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 15 Feb 2011 13:11:15 -0800
Message-ID: <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
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: Tue, 15 Feb 2011 21:11:22 -0000

On Tue, Feb 15, 2011 at 12:29 PM, Roy T. Fielding <fielding@gbiv.com> wrote=
:
> On Feb 14, 2011, at 8:42 PM, Adam Barth wrote:
>> On Mon, Feb 14, 2011 at 7:23 PM, Roy T. Fielding <fielding@gbiv.com> wro=
te:
>>> Parsing for user agents is defined in section 5. =A0Servers have to
>>> parse cookies as well, and the grammar provided in section 4 is wrong
>>> for both generation and parsing.
>>
>> I agree that the grammar depicted in Section 4 is not appropriate for
>> parsing. =A0That grammar is not for parsing. =A0It's for generation.
>> Perhaps we should add instructions for how servers should parse the
>> Cookie header? =A0That's absent from the current document.
>
> We don't need more instructions. =A0We need a correct ABNF that tells
> us what to generate and what to parse.
>
>> As for generation, there's no exogenous notion of correctness. =A0We can
>> speak about usefulness, if you like, but correctness is endogenous to
>> this document.
>
> Then you should delete the introduction, since it says
>
> =A0 This document specifies the syntax and semantics of these headers as
> =A0 they are actually used on the Internet. =A0In particular, this docume=
nt
> =A0 does not create new syntax or semantics beyond those in use today.
>
>>> Why do you want to push forward a document with a known error in the
>>> grammar? =A0Just fix it.
>>
>> I disagree that it's an "error."
>
> Then please explain to Amazon why you want to break their site?
> Look at your browser's cookies for amazon.com and you will probably
> find cookies named session-token, at-main, and x-main that do not
> follow your grammar. =A0They are quoted strings and valid under all
> prior descriptions of the Cookie and Set-Cookie header fields.
>
> And while you are at it, maybe you'd like to explain to Google
> why you want to make Google Analytics cookies invalid.
>
> http://code.google.com/apis/analytics/docs/concepts/gaConceptsCookies.htm=
l
>
> The cookie named __utmz is not a quoted-string, not a token, and not base=
64.
>
>>> This is not a trivial detail. =A0As written, the specification says
>>> server developers SHOULD break sites like amazon.com.
>>>
>>> =A0 cookie-value =A0 =A0 =A0=3D token / ""
>>
>> Can you explain how the developers of site B using a restricted
>> grammar for generation will break amazon.com? =A0That seems entirely
>> non-sensical.
>
> Site B is Amazon.com. =A0You are editing a proposed standard for the
> Internet and, last I checked, they use HTTP on the Internet.
>
>>> The correct grammar is in the original Netscape cookie spec: "This
>>> string is a sequence of characters excluding semi-colon, comma and
>>> white space." =A0Which easily translates (conservatively) into
>>>
>>> =A0 cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>>>
>>> and it does not conflict with section 5.
>>
>> I've updated the draft to recommend the grammar below for generating
>> cookie-values:
>>
>> cookie-value =A0 =A0 =A0=3D token / *base64-character
>> base64-character =A0=3D ALPHA / DIGIT / "+" / "/" / "=3D"
>>
>> Do you have a particular use case in mind for generating Set-Cookie
>> headers outside this grammar?
>
> Yes. =A0Backwards compliance with existing content stored within
> several hundred million deployed browsers that won't expire
> until sometime in 2031 dictates that the grammar be
>
> =A0cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>
> because servers have to parse Cookie in every form that they
> ever sent a Set-Cookie in the past.

You really think we should recommend that servers use invalid UTF-8
sequences as cookie-values?  That sounds like bad advice...

Adam


> Why are you arguing against this? =A0You are adamant about
> supporting the above syntax in browsers, for the same reasons,
> and there is no harm in supporting the complete Netscape syntax
> in the server grammar.
>
> ....Roy
>

From julian.reschke@gmx.de  Tue Feb 15 13:22:12 2011
Return-Path: <julian.reschke@gmx.de>
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 7BFD93A6C64 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 13:22:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.28
X-Spam-Level: 
X-Spam-Status: No, score=-103.28 tagged_above=-999 required=5 tests=[AWL=-0.681, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 4XPxGjrXiKTF for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 13:22:11 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by core3.amsl.com (Postfix) with SMTP id 5B13B3A6C4E for <http-state@ietf.org>; Tue, 15 Feb 2011 13:22:10 -0800 (PST)
Received: (qmail invoked by alias); 15 Feb 2011 21:22:35 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.138]) [217.91.35.233] by mail.gmx.net (mp040) with SMTP; 15 Feb 2011 22:22:35 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX183Hdc0dq83IbtEgjeodRWyZlrXhGSBXcqncyqK/H dS5YbEPk9fPZpk
Message-ID: <4D5AEE94.6010303@gmx.de>
Date: Tue, 15 Feb 2011 22:22:28 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>
In-Reply-To: <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: "Roy T. Fielding" <fielding@gbiv.com>, 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: Tue, 15 Feb 2011 21:22:12 -0000

On 15.02.2011 22:11, Adam Barth wrote:
> ...
> You really think we should recommend that servers use invalid UTF-8
> sequences as cookie-values?  That sounds like bad advice...
> ...

Could you elaborate? Is there client code out there that assumes cookie 
values to *be* UTF-8?

Best regards, Julian

From ietf@adambarth.com  Tue Feb 15 14:05:15 2011
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 375473A6C75 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 14:05:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.663
X-Spam-Level: 
X-Spam-Status: No, score=-2.663 tagged_above=-999 required=5 tests=[AWL=0.314,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 Omwqir9YnKjz for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 14:05:14 -0800 (PST)
Received: from mail-qy0-f179.google.com (mail-qy0-f179.google.com [209.85.216.179]) by core3.amsl.com (Postfix) with ESMTP id 169833A6AB9 for <http-state@ietf.org>; Tue, 15 Feb 2011 14:05:11 -0800 (PST)
Received: by qyj19 with SMTP id 19so527466qyj.10 for <http-state@ietf.org>; Tue, 15 Feb 2011 14:05:34 -0800 (PST)
Received: by 10.224.73.200 with SMTP id r8mr1220906qaj.137.1297807533702; Tue, 15 Feb 2011 14:05:33 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id g32sm2986198qck.10.2011.02.15.14.05.32 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 14:05:32 -0800 (PST)
Received: by iwc10 with SMTP id 10so682873iwc.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 14:05:31 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr4383793ibd.105.1297807531815; Tue, 15 Feb 2011 14:05:31 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Tue, 15 Feb 2011 14:05:01 -0800 (PST)
In-Reply-To: <4D5AEE94.6010303@gmx.de>
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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 15 Feb 2011 14:05:01 -0800
Message-ID: <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "Roy T. Fielding" <fielding@gbiv.com>, 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: Tue, 15 Feb 2011 22:05:15 -0000

On Tue, Feb 15, 2011 at 1:22 PM, Julian Reschke <julian.reschke@gmx.de> wro=
te:
> On 15.02.2011 22:11, Adam Barth wrote:
>> ...
>> You really think we should recommend that servers use invalid UTF-8
>> sequences as cookie-values? =A0That sounds like bad advice...
>> ...
>
> Could you elaborate? Is there client code out there that assumes cookie
> values to *be* UTF-8?

Regardless of what client code exist, surely servers are better off
avoiding non-ASCII characters in their cookie values.  Using non-ASCII
characters in HTTP headers is just asking for trouble.

Adam

From fielding@gbiv.com  Tue Feb 15 15:55:28 2011
Return-Path: <fielding@gbiv.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 3B40B3A6C9E for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 15:55:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 ifoQL4YoSW2K for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 15:55:27 -0800 (PST)
Received: from homiemail-a24.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by core3.amsl.com (Postfix) with ESMTP id 1C2D83A6C37 for <http-state@ietf.org>; Tue, 15 Feb 2011 15:55:27 -0800 (PST)
Received: from homiemail-a24.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTP id AF2472C806E; Tue, 15 Feb 2011 15:55:53 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=G9IXzjH9gB9tnVkn nZ+JZ0rV8vAeuTX8oiKDe7/CEKlsLKlL5cFJ/Pa4Z/tQRM16ETln8dVHeMsHZrsj PyxubQqlgwN3F03/WUs+6246xm3zcSjVXtSbsGvCx2pA1rV0Yz77BP4pbt7rxA73 6B2bNdLhGfjQmz26xJ5WAa4G39g=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=BNzJwRkYnQSXuL5p6fr0B+xXERs=; b=R6Hg6/p+l8xhLcrEimHg9ddf3m4f DV5h1qIijueMezFUbERbYHOno6ItJBsJlqGj6wBItsuEKpuPxUhA5MbkGxWoyFC0 qxkg9WRdjPRv7ECPRg+1Gx4T7TAspD6ukojeODTYofoqbCl66S8ZBFs9cMOarX7U zt6qIMdRJ9Dxn0w=
Received: from kiwi.corp.day.com (wsip-98-189-13-228.oc.oc.cox.net [98.189.13.228]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPSA id 834212C8058;  Tue, 15 Feb 2011 15:55:53 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>
Date: Tue, 15 Feb 2011 15:55:54 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
Cc: http-state <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: Tue, 15 Feb 2011 23:55:28 -0000

On Feb 15, 2011, at 2:05 PM, Adam Barth wrote:
> On Tue, Feb 15, 2011 at 1:22 PM, Julian Reschke =
<julian.reschke@gmx.de> wrote:
>> On 15.02.2011 22:11, Adam Barth wrote:
>>> ...
>>> You really think we should recommend that servers use invalid UTF-8
>>> sequences as cookie-values?  That sounds like bad advice...
>>> ...

I am not recommending that they use invalid UTF-8 sequences.
The ABNF only tells the implementer what octets can be used
and what needs to be anticipated while parsing.  If I were
designing a new Cookie protocol, I would exclude the high bits,
but this is how the current Cookie protocol actually works in
practice.

>> Could you elaborate? Is there client code out there that assumes =
cookie
>> values to *be* UTF-8?
>=20
> Regardless of what client code exist, surely servers are better off
> avoiding non-ASCII characters in their cookie values.  Using non-ASCII
> characters in HTTP headers is just asking for trouble.

It is irrelevant.  HTTP/1.x defined them as ISO-8859-1 and nothing
breaks by treating them as such.  This spec (and the Netscape spec)
defines them as an opaque array of data bytes and nothing breaks
by treating them as such.

I don't know of any implementation that would expect them to be
UTF-8.  I do know that attempting to use a UTF-8 string parser to
parse an HTTP data stream is a known security hole, so there is
no point in worrying about breaking those parsers any further
than they would already be broken (if any still exist -- J2SE
fixed their holes last year).

I don't have any objection to a sentence that says servers
SHOULD NOT send %x80-FF even though the grammar allows it.
But I don't see any need for it either given the apparent
interoperability shown by user agents.

....Roy=

From ietf@adambarth.com  Tue Feb 15 17:46:09 2011
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 1D4F83A6B6F for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 17:46:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.72
X-Spam-Level: 
X-Spam-Status: No, score=-2.72 tagged_above=-999 required=5 tests=[AWL=0.257,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 bwwzn9od7k8m for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 17:46:08 -0800 (PST)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id 09C973A684E for <http-state@ietf.org>; Tue, 15 Feb 2011 17:46:07 -0800 (PST)
Received: by qyk34 with SMTP id 34so2758854qyk.10 for <http-state@ietf.org>; Tue, 15 Feb 2011 17:46:34 -0800 (PST)
Received: by 10.224.19.138 with SMTP id a10mr63381qab.399.1297820794337; Tue, 15 Feb 2011 17:46:34 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id t7sm3143707qcs.16.2011.02.15.17.46.32 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 17:46:33 -0800 (PST)
Received: by iym1 with SMTP id 1so736084iym.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 17:46:32 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr74904ibd.105.1297820792260; Tue, 15 Feb 2011 17:46:32 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Tue, 15 Feb 2011 17:46:02 -0800 (PST)
In-Reply-To: <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 15 Feb 2011 17:46:02 -0800
Message-ID: <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: http-state <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: Wed, 16 Feb 2011 01:46:09 -0000

On Tue, Feb 15, 2011 at 3:55 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 15, 2011, at 2:05 PM, Adam Barth wrote:
>> On Tue, Feb 15, 2011 at 1:22 PM, Julian Reschke <julian.reschke@gmx.de> =
wrote:
>>> On 15.02.2011 22:11, Adam Barth wrote:
>>>> ...
>>>> You really think we should recommend that servers use invalid UTF-8
>>>> sequences as cookie-values? =A0That sounds like bad advice...
>>>> ...
>
> I am not recommending that they use invalid UTF-8 sequences.
> The ABNF only tells the implementer what octets can be used
> and what needs to be anticipated while parsing. =A0If I were
> designing a new Cookie protocol, I would exclude the high bits,
> but this is how the current Cookie protocol actually works in
> practice.

I feel like I'm just repeating myself.  The text you're complaining
about does not define how to parse a Set-Cookie header.

>>> Could you elaborate? Is there client code out there that assumes cookie
>>> values to *be* UTF-8?
>>
>> Regardless of what client code exist, surely servers are better off
>> avoiding non-ASCII characters in their cookie values. =A0Using non-ASCII
>> characters in HTTP headers is just asking for trouble.
>
> It is irrelevant. =A0HTTP/1.x defined them as ISO-8859-1 and nothing
> breaks by treating them as such. =A0This spec (and the Netscape spec)
> defines them as an opaque array of data bytes and nothing breaks
> by treating them as such.
>
> I don't know of any implementation that would expect them to be
> UTF-8. =A0I do know that attempting to use a UTF-8 string parser to
> parse an HTTP data stream is a known security hole, so there is
> no point in worrying about breaking those parsers any further
> than they would already be broken (if any still exist -- J2SE
> fixed their holes last year).
>
> I don't have any objection to a sentence that says servers
> SHOULD NOT send %x80-FF even though the grammar allows it.
> But I don't see any need for it either given the apparent
> interoperability shown by user agents.

That's essentially what the current document says.  The only
difference is that it also recommends that servers not generate
characters such as %x24, whose role in cookies has been muddied by RFC
2965.

Adam

From ietf@adambarth.com  Tue Feb 15 17:51:31 2011
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 D1EB83A6AFF for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 17:51:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.742
X-Spam-Level: 
X-Spam-Status: No, score=-2.742 tagged_above=-999 required=5 tests=[AWL=0.235,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 0q+5AHGNZy5u for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 17:51:31 -0800 (PST)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id E1E6E3A684E for <http-state@ietf.org>; Tue, 15 Feb 2011 17:51:30 -0800 (PST)
Received: by qwi2 with SMTP id 2so755025qwi.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 17:51:57 -0800 (PST)
Received: by 10.229.245.1 with SMTP id ls1mr146281qcb.13.1297821117450; Tue, 15 Feb 2011 17:51:57 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id g32sm3122376qck.46.2011.02.15.17.51.56 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 17:51:57 -0800 (PST)
Received: by iym1 with SMTP id 1so739813iym.31 for <http-state@ietf.org>; Tue, 15 Feb 2011 17:51:56 -0800 (PST)
Received: by 10.231.36.75 with SMTP id s11mr72717ibd.130.1297821114106; Tue, 15 Feb 2011 17:51:54 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Tue, 15 Feb 2011 17:51:24 -0800 (PST)
In-Reply-To: <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 15 Feb 2011 17:51:24 -0800
Message-ID: <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: http-state <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: Wed, 16 Feb 2011 01:51:31 -0000

On Tue, Feb 15, 2011 at 5:46 PM, Adam Barth <ietf@adambarth.com> wrote:
> On Tue, Feb 15, 2011 at 3:55 PM, Roy T. Fielding <fielding@gbiv.com> wrot=
e:
>> On Feb 15, 2011, at 2:05 PM, Adam Barth wrote:
>>> On Tue, Feb 15, 2011 at 1:22 PM, Julian Reschke <julian.reschke@gmx.de>=
 wrote:
>>>> On 15.02.2011 22:11, Adam Barth wrote:
>>>>> ...
>>>>> You really think we should recommend that servers use invalid UTF-8
>>>>> sequences as cookie-values? =A0That sounds like bad advice...
>>>>> ...
>>
>> I am not recommending that they use invalid UTF-8 sequences.
>> The ABNF only tells the implementer what octets can be used
>> and what needs to be anticipated while parsing. =A0If I were
>> designing a new Cookie protocol, I would exclude the high bits,
>> but this is how the current Cookie protocol actually works in
>> practice.
>
> I feel like I'm just repeating myself. =A0The text you're complaining
> about does not define how to parse a Set-Cookie header.

To be crystal clear, this is the only text in the document that refers
to this figure:

          Servers SHOULD NOT send Set-Cookie headers
          that fail to conform to the following grammar:

Adam


>>>> Could you elaborate? Is there client code out there that assumes cooki=
e
>>>> values to *be* UTF-8?
>>>
>>> Regardless of what client code exist, surely servers are better off
>>> avoiding non-ASCII characters in their cookie values. =A0Using non-ASCI=
I
>>> characters in HTTP headers is just asking for trouble.
>>
>> It is irrelevant. =A0HTTP/1.x defined them as ISO-8859-1 and nothing
>> breaks by treating them as such. =A0This spec (and the Netscape spec)
>> defines them as an opaque array of data bytes and nothing breaks
>> by treating them as such.
>>
>> I don't know of any implementation that would expect them to be
>> UTF-8. =A0I do know that attempting to use a UTF-8 string parser to
>> parse an HTTP data stream is a known security hole, so there is
>> no point in worrying about breaking those parsers any further
>> than they would already be broken (if any still exist -- J2SE
>> fixed their holes last year).
>>
>> I don't have any objection to a sentence that says servers
>> SHOULD NOT send %x80-FF even though the grammar allows it.
>> But I don't see any need for it either given the apparent
>> interoperability shown by user agents.
>
> That's essentially what the current document says. =A0The only
> difference is that it also recommends that servers not generate
> characters such as %x24, whose role in cookies has been muddied by RFC
> 2965.
>
> Adam
>

From remy@lebeausoftware.org  Tue Feb 15 23:05:07 2011
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 6AFCE3A6D69 for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 23:05:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_73=0.6, 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 HkGBpCv2bott for <http-state@core3.amsl.com>; Tue, 15 Feb 2011 23:05:06 -0800 (PST)
Received: from p3plsmtpa01-08.prod.phx3.secureserver.net (p3plsmtpa01-08.prod.phx3.secureserver.net [72.167.82.88]) by core3.amsl.com (Postfix) with SMTP id 3F3143A6D48 for <http-state@ietf.org>; Tue, 15 Feb 2011 23:05:03 -0800 (PST)
Received: (qmail 29295 invoked from network); 16 Feb 2011 07:05:30 -0000
Received: from unknown (76.93.119.83) by p3plsmtpa01-08.prod.phx3.secureserver.net (72.167.82.88) with ESMTP; 16 Feb 2011 07:05:30 -0000
Message-ID: <26A4B40A07EF489C882815971D7BC38E@RYANLAPTOP>
From: "Remy Lebeau" <remy@lebeausoftware.org>
To: <ietf@adambarth.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>
Date: Tue, 15 Feb 2011 23:04:28 -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 ofdraft-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: Wed, 16 Feb 2011 07:05:07 -0000

----- Original Message ----- 
From: "Roy T. Fielding" <fielding@gbiv.com>
To: "Adam Barth" <ietf@adambarth.com>
Cc: <http-state@ietf.org>
Sent: Tuesday, February 15, 2011 12:29 PM
Subject: Re: [http-state] Is this an omission in the parser rules 
ofdraft-ietf-httpstate-cookie-21?


> Then please explain to Amazon why you want to break their site?
> Look at your browser's cookies for amazon.com and you will probably
> find cookies named session-token, at-main, and x-main that do not
> follow your grammar.  They are quoted strings and valid under all
> prior descriptions of the Cookie and Set-Cookie header fields.

While we are on the subject of breaking Amazon cookies, here is a cookie I 
received from Amazon's homepage that does not conform to the format of the 
Expires attribute that Section 4 requires servers to use, but it is a 
perfectly valid cookie:

    Set-Cookie: bpx_ustats="iGfxfWHBtMzz9EqcZRPVxHOwPlefXNwx/nZTGCcg9tU="; 
Version=1; Max-Age=86400; Expires=Thu, 17-Feb-2011 06:09:08 GMT; Path=/

Here is the Section 4 grammar:

    expires-av        = "Expires=" sane-cookie-date
    sane-cookie-date  = <rfc1123-date, defined in [RFC2616], Section 3.3.1>

>From RFC 2616:

    rfc1123-date = wkday "," SP date1 SP time SP "GMT"
    wkday        = "Mon" | "Tue" | "Wed"
                        | "Thu" | "Fri" | "Sat" | "Sun"
    date1        = 2DIGIT SP month SP 4DIGIT
    time         = 2DIGIT ":" 2DIGIT ":" 2DIGIT

Notice that the cookie is not using the "date1" grammar.

Since the cookie has a Version=1 attribute, it is an RFC 2109 cookie, and 
RFC 2109 allows Netscape-style date/time formatting:

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

The cookie is conforming to that, but the draft does not allow servers to 
use that format anymore (but user agents can parse it, per Section 5).


From dan.winship@gmail.com  Wed Feb 16 05:29:45 2011
Return-Path: <dan.winship@gmail.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 6C09D3A6E07 for <http-state@core3.amsl.com>; Wed, 16 Feb 2011 05:29:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level: 
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_COM=0.311]
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 9Pdkg0JUpALI for <http-state@core3.amsl.com>; Wed, 16 Feb 2011 05:29:44 -0800 (PST)
Received: from mysterion.org (li168-117.members.linode.com [173.230.128.117]) by core3.amsl.com (Postfix) with ESMTP id 26BC13A6DBC for <http-state@ietf.org>; Wed, 16 Feb 2011 05:29:44 -0800 (PST)
Received: from desktop.home.mysterion.org (c-76-97-71-164.hsd1.ga.comcast.net [76.97.71.164]) by mysterion.org (Postfix) with ESMTPSA id 6A79934A3E; Wed, 16 Feb 2011 08:30:10 -0500 (EST)
Message-ID: <4D5BD15A.7000605@gmail.com>
Date: Wed, 16 Feb 2011 08:30:02 -0500
From: Dan Winship <dan.winship@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7
MIME-Version: 1.0
To: Remy Lebeau <remy@lebeausoftware.org>
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>
In-Reply-To: <26A4B40A07EF489C882815971D7BC38E@RYANLAPTOP>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: http-state@ietf.org
Subject: Re: [http-state] Is this an omission in the parser rules	ofdraft-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: Wed, 16 Feb 2011 13:29:45 -0000

On 02/16/2011 02:04 AM, Remy Lebeau wrote:
> Since the cookie has a Version=1 attribute, it is an RFC 2109 cookie,
> and RFC 2109 allows Netscape-style date/time formatting:
> 
>    Wdy, DD-Mon-YYYY HH:MM:SS GMT

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.

-- Dan

From SRS0=Ok7kSR=VN=lebeausoftware.org=remy@srs.bis.na.blackberry.com  Wed Feb 16 07:21:34 2011
Return-Path: <SRS0=Ok7kSR=VN=lebeausoftware.org=remy@srs.bis.na.blackberry.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 B2DB43A6E6A for <http-state@core3.amsl.com>; Wed, 16 Feb 2011 07:21:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.846
X-Spam-Level: 
X-Spam-Status: No, score=-4.846 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_BASE64_TEXT=1.753, RCVD_IN_DNSWL_MED=-4]
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 j+X0tYDzbRBC for <http-state@core3.amsl.com>; Wed, 16 Feb 2011 07:21:33 -0800 (PST)
Received: from smtp21.bis.na.blackberry.com (smtp21.bis.na.blackberry.com [216.9.248.63]) by core3.amsl.com (Postfix) with ESMTP id 05CE53A6A25 for <http-state@ietf.org>; Wed, 16 Feb 2011 07:21:32 -0800 (PST)
Received: from bda933.bisx.prod.on.blackberry (bda933.bisx.prod.on.blackberry [172.20.220.96]) by srs.bis.na.blackberry.com (8.13.7 TEAMON/8.13.7) with ESMTP id p1GFM0KB018978; Wed, 16 Feb 2011 15:22:00 GMT
Received: from bda933.bisx.prod.on.blackberry (localhost.localdomain [127.0.0.1]) by bda933.bisx.prod.on.blackberry (8.13.7 TEAMON/8.13.7) with ESMTP id p1GFLx3o003924; Wed, 16 Feb 2011 15:21:59 GMT
X-rim-org-msg-ref-id: 1902806598
Message-ID: <1902806598-1297869719-cardhu_decombobulator_blackberry.rim.net-1954609536-@bda461.bisx.prod.on.blackberry>
Content-Transfer-Encoding: base64
X-Priority: Normal
Sensitivity: Normal
Importance: Normal
To: "Dan Winship" <dan.winship@gmail.com>
From: "Remy Lebeau" <remy@lebeausoftware.org>
Date: Wed, 16 Feb 2011 15:21:59 +0000
Content-Type: text/plain
MIME-Version: 1.0
Cc: http-state@ietf.org
Subject: Re: [http-state] Is this an omission in the parser rules	ofdraft-ietf-httpstate-cookie-21?
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: remy@lebeausoftware.org
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, 16 Feb 2011 15:22:48 -0000

RXhwaXJlcyB3YXMgbm90IGluIHRoZSBSRkMgMjEwOSBncmFtbWFyIGZvciB0aGUgU2V0LUNvb2tp
ZSBoZWFkZXIsIGJ1dCBtb3N0IGltcGxlbWVudGF0aW9ucyBkaWQgbm90IHVzZSBNYXgtQWdlLiBU
aGUgZHJhZnQgYWxsb3dzIHVzZXIgYWdlbnRzIHRvIH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nJvbSBzZXJ2ZXJzLg0KDQoNCi0tLS0tLU9yaWdpbmFsIE1lc3NhZ2Ut
LS0tLS0NCkZyb206IERhbiBXaW5zaGlwDQpUbzogUmVteSBMZWJlYXUNCkNjOiBpZXRmQGFkYW1i
YXJ0aC5jb20NCkNjOiBodHRwLXN0YXRlQGlldGYub3JnDQpTdWJqZWN0OiBSZTogW2h0dHAtc3Rh
dGVdIElzIHRoaXMgYW4gb21pc3Npb24gaW4gdGhlIHBhcnNlciBydWxlcwlvZmRyYWZ0LWlldGYt
aHR0cHN0YXRlLWNvb2tpZS0yMT8NClNlbnQ6IEZlYiAxNiwgMjAxMSA1OjMwIEFNDQoNCk9uIDAy
LzE2LzIwMTEgMDI6MDQgQU0sIFJlbXkgTGViZWF1IHdyb3RlOg0KPiBTaW5jZSB0aGUgY29va2ll
IGhhcyBhIFZlcnNpb249MSBhdHRyaWJ1dGUsIGl0IGlzIGFuIFJGQyAyMTA5IGNvb2tpZSwNCj4g
YW5kIFJGQyAyMTA5IGFsbG93cyBOZXRzY2FwZS1zdHlsZSBkYXRlL3RpbWUgZm9ybWF0dGluZzoN
Cj4gDQo+ICAgIFdkeSwgREQtTW9uLVlZWVkgSEg6TU06U1MgR01UDQoNCk5vdCB0aGF0IGFueSBv
ZiB0aGlzIGlzIGluIGFueSB3YXkgcmVsZXZhbnQsIGJ1dCwgbm8gaXQgZG9lc24ndC4gUkZDDQoy
MTA5IGRvZXNuJ3QgYWxsb3cgdGhlIEV4cGlyZXMgYXR0cmlidXRlIGF0IGFsbC4gQSBjb29raWUg
dGhhdCBjb250YWlucw0KYm90aCAiVmVyc2lvbj0xIiBhbmQgIkV4cGlyZXM9Li4uIiBkb2VzIG5v
dCBjb25mb3JtIHRvICphbnkqIHNwZWMuDQoNCi0tIERhbg0K


From remy@lebeausoftware.org  Thu Feb 17 11:45:53 2011
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. 


From Internet-Drafts@ietf.org  Thu Feb 17 22:15:03 2011
Return-Path: <Internet-Drafts@ietf.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 51DA13A6CDA; Thu, 17 Feb 2011 22:15:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.514
X-Spam-Level: 
X-Spam-Status: No, score=-102.514 tagged_above=-999 required=5 tests=[AWL=0.085, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 MKRW5Pknu2jk; Thu, 17 Feb 2011 22:15:02 -0800 (PST)
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3E9C13A6CAB; Thu, 17 Feb 2011 22:15:02 -0800 (PST)
MIME-Version: 1.0
Content-Type: Multipart/Mixed; Boundary="NextPart"
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
X-Test-IDTracker: no
X-IETF-IDTracker: 3.12
Message-ID: <20110218061502.14314.69030.idtracker@localhost>
Date: Thu, 17 Feb 2011 22:15:02 -0800
Cc: http-state@ietf.org
Subject: [http-state] I-D Action:draft-ietf-httpstate-cookie-22.txt
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: Fri, 18 Feb 2011 06:15:03 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the HTTP State Management Mechanism Working Group of the IETF.


	Title           : HTTP State Management Mechanism
	Author(s)       : A. Barth
	Filename        : draft-ietf-httpstate-cookie-22.txt
	Pages           : 43
	Date            : 2011-02-17

This document defines the HTTP Cookie and Set-Cookie header fields.
These header fields can be used by HTTP servers to store state
(called cookies) at HTTP user agents, letting the servers maintain a
stateful session over the mostly stateless HTTP protocol.  Although
cookies have many historical infelicities that degrade their security
and privacy, the Cookie and Set-Cookie header fields are widely used
on the Internet.Editorial Note (To be removed by RFC Editor)

If you have suggestions for improving this document, please send
email to <mailto:http-state@ietf.org>.  Suggestions with test cases
are especially appreciated.  Further Working Group information is
available from <https://tools.ietf.org/wg/httpstate/>.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-httpstate-cookie-22.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body; name="draft-ietf-httpstate-cookie-22.txt";
	site="ftp.ietf.org"; access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2011-02-17221132.I-D@ietf.org>


--NextPart--

From julian.reschke@gmx.de  Thu Feb 17 22:32:15 2011
Return-Path: <julian.reschke@gmx.de>
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 238593A68DD for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 22:32:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.073
X-Spam-Level: 
X-Spam-Status: No, score=-104.073 tagged_above=-999 required=5 tests=[AWL=-1.474, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 d4v4dPFr9mZi for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 22:32:11 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by core3.amsl.com (Postfix) with SMTP id EFBDE3A6D46 for <http-state@ietf.org>; Thu, 17 Feb 2011 22:32:06 -0800 (PST)
Received: (qmail invoked by alias); 18 Feb 2011 06:32:37 -0000
Received: from p508F99DE.dip.t-dialin.net (EHLO [192.168.178.33]) [80.143.153.222] by mail.gmx.net (mp011) with SMTP; 18 Feb 2011 07:32:37 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18R/wIp6OsR+7MmsEsEgUHcS7wO37GaSFqdnzOzMh wN2uRBL8M+rS8/
Message-ID: <4D5E127C.7080508@gmx.de>
Date: Fri, 18 Feb 2011 07:32:28 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: "http-state@ietf.org" <http-state@ietf.org>
References: <20110119231502.3778.58453.idtracker@localhost> <4D37F4EE.80700@gmx.de>
In-Reply-To: <4D37F4EE.80700@gmx.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Subject: Re: [http-state] I-D Action:draft-ietf-httpstate-cookie-21.txt
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: Fri, 18 Feb 2011 06:32:15 -0000

On 20.01.2011 09:40, Julian Reschke wrote:
> On 20.01.2011 00:15, Internet-Drafts@ietf.org wrote:
>> A New Internet-Draft is available from the on-line Internet-Drafts
>> directories.
>> This draft is a work item of the HTTP State Management Mechanism
>> Working Group of the IETF.
>>
>>
>> Title : HTTP State Management Mechanism
>> Author(s) : A. Barth
>> Filename : draft-ietf-httpstate-cookie-21.txt
>> Pages : 43
>> Date : 2011-01-19
>> ...
>
> Nit: there's an unused reference to RFC 5246, probably caused by a
> change in draft 20
> (<http://tools.ietf.org/rfcdiff?url2=draft-ietf-httpstate-cookie-20.txt>
> and
> <http://tools.ietf.org/idnits?url=http://tools.ietf.org/id/draft-ietf-httpstate-cookie-21.txt>).
>
>
> There's also ABNF text that needs to be reformatted due to the width
> constraints...
> ...

These problems are still present in draft 22...

Also note:

   -- The draft header indicates that this document obsoletes RFC2965, 
but the
      abstract doesn't seem to mention this, which it should.

(<http://tools.ietf.org/idnits?url=http://tools.ietf.org/id/draft-ietf-httpstate-cookie-22.txt>)

Best regards, Julian

From ietf@adambarth.com  Thu Feb 17 22:43:20 2011
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 EF5F13A6D35 for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 22:43:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.8
X-Spam-Level: 
X-Spam-Status: No, score=-2.8 tagged_above=-999 required=5 tests=[AWL=0.177, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 XxrPyWrMfCap for <http-state@core3.amsl.com>; Thu, 17 Feb 2011 22:43:18 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id 0B4833A6D10 for <http-state@ietf.org>; Thu, 17 Feb 2011 22:43:16 -0800 (PST)
Received: by iym1 with SMTP id 1so3410232iym.31 for <http-state@ietf.org>; Thu, 17 Feb 2011 22:43:49 -0800 (PST)
Received: by 10.42.19.70 with SMTP id a6mr471275icb.84.1298011429510; Thu, 17 Feb 2011 22:43:49 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id d21sm1437338ibg.15.2011.02.17.22.43.48 (version=SSLv3 cipher=OTHER); Thu, 17 Feb 2011 22:43:48 -0800 (PST)
Received: by iwl42 with SMTP id 42so19192iwl.31 for <http-state@ietf.org>; Thu, 17 Feb 2011 22:43:48 -0800 (PST)
Received: by 10.231.37.200 with SMTP id y8mr268311ibd.105.1298011428073; Thu, 17 Feb 2011 22:43:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Thu, 17 Feb 2011 22:43:18 -0800 (PST)
In-Reply-To: <4D5E127C.7080508@gmx.de>
References: <20110119231502.3778.58453.idtracker@localhost> <4D37F4EE.80700@gmx.de> <4D5E127C.7080508@gmx.de>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 17 Feb 2011 22:43:18 -0800
Message-ID: <AANLkTinGO3BfcMC9HGeAacPyic9_-fiurJJNUYEAERMe@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" <http-state@ietf.org>
Subject: Re: [http-state] I-D Action:draft-ietf-httpstate-cookie-21.txt
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: Fri, 18 Feb 2011 06:43:20 -0000

On Thu, Feb 17, 2011 at 10:32 PM, Julian Reschke <julian.reschke@gmx.de> wr=
ote:
> On 20.01.2011 09:40, Julian Reschke wrote:
>> On 20.01.2011 00:15, Internet-Drafts@ietf.org wrote:
>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>> directories.
>>> This draft is a work item of the HTTP State Management Mechanism
>>> Working Group of the IETF.
>>>
>>>
>>> Title : HTTP State Management Mechanism
>>> Author(s) : A. Barth
>>> Filename : draft-ietf-httpstate-cookie-21.txt
>>> Pages : 43
>>> Date : 2011-01-19
>>> ...
>>
>> Nit: there's an unused reference to RFC 5246, probably caused by a
>> change in draft 20
>> (<http://tools.ietf.org/rfcdiff?url2=3Ddraft-ietf-httpstate-cookie-20.tx=
t>
>> and
>>
>> <http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-ietf-=
httpstate-cookie-21.txt>).
>>
>>
>> There's also ABNF text that needs to be reformatted due to the width
>> constraints...
>> ...
>
> These problems are still present in draft 22...

Fixed.

> Also note:
>
> =A0-- The draft header indicates that this document obsoletes RFC2965, bu=
t the
> =A0 =A0 abstract doesn't seem to mention this, which it should.
>
> (<http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-ietf-=
httpstate-cookie-22.txt>)

Is there boilerplate text we should use for that?

Adam

From stpeter@stpeter.im  Fri Feb 18 05:10:30 2011
Return-Path: <stpeter@stpeter.im>
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 968E13A6F1B for <http-state@core3.amsl.com>; Fri, 18 Feb 2011 05:10:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.742
X-Spam-Level: 
X-Spam-Status: No, score=-102.742 tagged_above=-999 required=5 tests=[AWL=-0.143, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 9LpY+fGt+5oo for <http-state@core3.amsl.com>; Fri, 18 Feb 2011 05:10:29 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 7CA123A6DD8 for <http-state@ietf.org>; Fri, 18 Feb 2011 05:10:29 -0800 (PST)
Received: from squire.local (dsl-251-175.dynamic-dsl.frii.net [216.17.251.175]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 48DEA40CFF; Fri, 18 Feb 2011 06:29:20 -0700 (MST)
Message-ID: <4D5E6FE5.10200@stpeter.im>
Date: Fri, 18 Feb 2011 06:11:01 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <20110119231502.3778.58453.idtracker@localhost>	<4D37F4EE.80700@gmx.de> <4D5E127C.7080508@gmx.de> <AANLkTinGO3BfcMC9HGeAacPyic9_-fiurJJNUYEAERMe@mail.gmail.com>
In-Reply-To: <AANLkTinGO3BfcMC9HGeAacPyic9_-fiurJJNUYEAERMe@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090100060408090505010905"
Cc: "http-state@ietf.org" <http-state@ietf.org>
Subject: Re: [http-state] I-D Action:draft-ietf-httpstate-cookie-21.txt
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: Fri, 18 Feb 2011 13:10:30 -0000

This is a cryptographically signed message in MIME format.

--------------ms090100060408090505010905
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/17/11 11:43 PM, Adam Barth wrote:
> On Thu, Feb 17, 2011 at 10:32 PM, Julian Reschke <julian.reschke@gmx.de=
> wrote:
>> On 20.01.2011 09:40, Julian Reschke wrote:
>>> On 20.01.2011 00:15, Internet-Drafts@ietf.org wrote:
>>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>>> directories.
>>>> This draft is a work item of the HTTP State Management Mechanism
>>>> Working Group of the IETF.
>>>>
>>>>
>>>> Title : HTTP State Management Mechanism
>>>> Author(s) : A. Barth
>>>> Filename : draft-ietf-httpstate-cookie-21.txt
>>>> Pages : 43
>>>> Date : 2011-01-19
>>>> ...
>>>
>>> Nit: there's an unused reference to RFC 5246, probably caused by a
>>> change in draft 20
>>> (<http://tools.ietf.org/rfcdiff?url2=3Ddraft-ietf-httpstate-cookie-20=
=2Etxt>
>>> and
>>>
>>> <http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-ie=
tf-httpstate-cookie-21.txt>).
>>>
>>>
>>> There's also ABNF text that needs to be reformatted due to the width
>>> constraints...
>>> ...
>>
>> These problems are still present in draft 22...
>=20
> Fixed.
>=20
>> Also note:
>>
>>  -- The draft header indicates that this document obsoletes RFC2965, b=
ut the
>>     abstract doesn't seem to mention this, which it should.
>>
>> (<http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-ie=
tf-httpstate-cookie-22.txt>)
>=20
> Is there boilerplate text we should use for that?

I'll add an RFC Editor note on this point.

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms090100060408090505010905
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWdu
aW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAzIFByaW1hcnkgSW50ZXJtZWRpYXRlIENs
aWVudCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALmjSW4SPiDKlAinvVeL
ZOVfItiuP1aRHL530E7QUc9icCwL33+PH+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m
yQW4kWNgLT+L4L/VX8T3eeifIjRIU2vGB6Sj4WoxqU+YPdMH3Pkqg6wUXO6tTh/sqoR5IAL7
ZW/ajAEHI5knsnNC8kPHo4itURWinTCbtgR3j+/klBGEfVeHrNc+s1bfC1nr2jMqR7ocAAAA
AAAA
--------------ms090100060408090505010905--

From stpeter@stpeter.im  Fri Feb 18 05:14:48 2011
Return-Path: <stpeter@stpeter.im>
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 253F33A6DEF for <http-state@core3.amsl.com>; Fri, 18 Feb 2011 05:14:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.71
X-Spam-Level: 
X-Spam-Status: No, score=-102.71 tagged_above=-999 required=5 tests=[AWL=-0.111, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 1hGDFUZ4EKb4 for <http-state@core3.amsl.com>; Fri, 18 Feb 2011 05:14:47 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id E7A523A6DD0 for <http-state@ietf.org>; Fri, 18 Feb 2011 05:14:43 -0800 (PST)
Received: from squire.local (dsl-251-175.dynamic-dsl.frii.net [216.17.251.175]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id E2DF440CFF for <http-state@ietf.org>; Fri, 18 Feb 2011 06:33:34 -0700 (MST)
Message-ID: <4D5E70E4.3010706@stpeter.im>
Date: Fri, 18 Feb 2011 06:15:16 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: http-state@ietf.org
References: <20110119231502.3778.58453.idtracker@localhost>	<4D37F4EE.80700@gmx.de>	<4D5E127C.7080508@gmx.de>	<AANLkTinGO3BfcMC9HGeAacPyic9_-fiurJJNUYEAERMe@mail.gmail.com> <4D5E6FE5.10200@stpeter.im>
In-Reply-To: <4D5E6FE5.10200@stpeter.im>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090105030304090709010503"
Subject: Re: [http-state] I-D Action:draft-ietf-httpstate-cookie-21.txt
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: Fri, 18 Feb 2011 13:14:48 -0000

This is a cryptographically signed message in MIME format.

--------------ms090105030304090709010503
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/18/11 6:11 AM, Peter Saint-Andre wrote:
> On 2/17/11 11:43 PM, Adam Barth wrote:
>> On Thu, Feb 17, 2011 at 10:32 PM, Julian Reschke <julian.reschke@gmx.d=
e> wrote:
>>> On 20.01.2011 09:40, Julian Reschke wrote:
>>>> On 20.01.2011 00:15, Internet-Drafts@ietf.org wrote:
>>>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>>>> directories.
>>>>> This draft is a work item of the HTTP State Management Mechanism
>>>>> Working Group of the IETF.
>>>>>
>>>>>
>>>>> Title : HTTP State Management Mechanism
>>>>> Author(s) : A. Barth
>>>>> Filename : draft-ietf-httpstate-cookie-21.txt
>>>>> Pages : 43
>>>>> Date : 2011-01-19
>>>>> ...
>>>>
>>>> Nit: there's an unused reference to RFC 5246, probably caused by a
>>>> change in draft 20
>>>> (<http://tools.ietf.org/rfcdiff?url2=3Ddraft-ietf-httpstate-cookie-2=
0.txt>
>>>> and
>>>>
>>>> <http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-i=
etf-httpstate-cookie-21.txt>).
>>>>
>>>>
>>>> There's also ABNF text that needs to be reformatted due to the width=

>>>> constraints...
>>>> ...
>>>
>>> These problems are still present in draft 22...
>>
>> Fixed.
>>
>>> Also note:
>>>
>>>  -- The draft header indicates that this document obsoletes RFC2965, =
but the
>>>     abstract doesn't seem to mention this, which it should.
>>>
>>> (<http://tools.ietf.org/idnits?url=3Dhttp://tools.ietf.org/id/draft-i=
etf-httpstate-cookie-22.txt>)
>>
>> Is there boilerplate text we should use for that?
>=20
> I'll add an RFC Editor note on this point.

Done:

https://datatracker.ietf.org/doc/draft-ietf-httpstate-cookie/writeup/

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms090105030304090709010503
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDV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BgkqhkiG
9w0BAQEFAASCAQAVwV4VpRZki8Ffmouk1hi3F6HfQAffHigfW7AfoRFPrtd9+XLJZZxmZdEo
mSja4FDoKYS1IkLtbiUOsWKxRx2u/1E5BGZ3tZF1v94VBpQiY0sEJEs+VMfF+pUADWgMddX6
3Vx8IbKq/zrp2iUmCyN3qxFYKgTVXZsWFL9V9XIcrV9ryx7xyASZ/26NjdmZucjTlwZ+B4wf
+RB4Yau8RaGbRJjEHhDAIXIkExFasZCVLy8nA70BAnPesKb6PBLSBnNDhbU9+AIGN5mtYRq4
JiPEPVKfXUefj1h0RNWmW82D9p5u68AjALkcoxHm9Ev3RigLaduQf9nw+nPnxBPLBIhSAAAA
AAAA
--------------ms090105030304090709010503--

From gsalguei@cisco.com  Mon Feb 21 11:09:17 2011
Return-Path: <gsalguei@cisco.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 EAD283A6F0C for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 11:09:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.848
X-Spam-Level: 
X-Spam-Status: No, score=-9.848 tagged_above=-999 required=5 tests=[AWL=0.750,  BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
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 KuVkn1PZIalP for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 11:09:17 -0800 (PST)
Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by core3.amsl.com (Postfix) with ESMTP id 0023D3A6F42 for <http-state@ietf.org>; Mon, 21 Feb 2011 11:09:16 -0800 (PST)
X-TACSUNS: Virus Scanned
Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id p1LJ9xVh017819; Mon, 21 Feb 2011 14:09:59 -0500 (EST)
Received: from dhcp-64-102-154-191.cisco.com (dhcp-64-102-154-191.cisco.com [64.102.154.191]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id p1LJ9waE004252;  Mon, 21 Feb 2011 14:09:58 -0500 (EST)
From: Gonzalo Salgueiro <gsalguei@cisco.com>
Content-Type: multipart/alternative; boundary=Apple-Mail-30-33134989
Date: Mon, 21 Feb 2011 14:09:58 -0500
Message-Id: <B872210E-0DA3-4721-B3C9-BF63AC0AD727@cisco.com>
To: http-state@ietf.org
Mime-Version: 1.0 (Apple Message framework v1082)
X-Mailer: Apple Mail (2.1082)
Subject: [http-state] draft-salgueiro-secure-state-management-04.txt
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: Mon, 21 Feb 2011 19:09:18 -0000

--Apple-Mail-30-33134989
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Folks,

We just published a significantly revised version of the secure state =
management draft that we had been working on.  The new draft can be =
found here:
http://tools.ietf.org/html/draft-salgueiro-secure-state-management-04
=20
We had received mixed feedback before, but it seemed there were two =
recurring themes:
=B7         We wanted to move away from cookies for secure state =
management, though perhaps continuing to use cookies as a means of =
identifying the remote user agent
=B7         We need to have a solution that works over HTTP that does =
not require the use of Diffie-Hellman
=20
We took a step back to look at the problem we were trying to solve.  =
What we want is to ensure that a request coming from a client could be =
trusted, even if transmitted over HTTP.  So, what we wanted really =
wasn=92t a secure cookie, but a guarantee that the request is genuine.
=20
With this draft, we=92ve moved away from cookies and focus on only =
providing message authentication.  To provide message authentication, we =
still establish an association between the client and server.  We still =
allow for Diffie-Hellman to be used, but we have a mechanism in place to =
allow HTTPS to be used for the sole purpose of establishing =
associations, too.  The end result is that, with this draft, we can =
provide message integrity and we can avoid replay of messages.
=20
We invite you to look at this revised draft and provide us with =
feedback.

Warm Regards,

Gonzalo=

--Apple-Mail-30-33134989
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; =
">Folks,</div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: =
Calibri, sans-serif; "><br></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
11pt; font-family: Calibri, sans-serif; ">We just published a =
significantly revised version of the secure state management draft that =
we had been working on.&nbsp; The new draft can be found =
here:<o:p></o:p></div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: =
Calibri, sans-serif; "><a =
href=3D"http://tools.ietf.org/html/draft-salgueiro-secure-state-management=
-04" style=3D"color: blue; text-decoration: underline; =
">http://tools.ietf.org/html/draft-salgueiro-secure-state-management-04</a=
><o:p></o:p></div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: =
Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div style=3D"margin-top: =
0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 11pt; font-family: Calibri, sans-serif; ">We had received =
mixed feedback before, but it seemed there were two recurring =
themes:<o:p></o:p></div><div style=3D"margin-top: 0in; margin-right: =
0in; margin-bottom: 0.0001pt; margin-left: 0.5in; font-size: 11pt; =
font-family: Calibri, sans-serif; text-indent: -0.25in; "><span =
style=3D"font-family: Symbol; "><span>=B7<span style=3D"font: normal =
normal normal 7pt/normal 'Times New Roman'; =
">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></sp=
an>We wanted to move away from cookies for secure state management, =
though perhaps continuing to use cookies as a means of identifying the =
remote user agent<o:p></o:p></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0.5in; =
font-size: 11pt; font-family: Calibri, sans-serif; text-indent: -0.25in; =
"><span style=3D"font-family: Symbol; "><span>=B7<span style=3D"font: =
normal normal normal 7pt/normal 'Times New Roman'; =
">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></sp=
an>We need to have a solution that works over HTTP that does not require =
the use of Diffie-Hellman<o:p></o:p></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; =
">We took a step back to look at the problem we were trying to =
solve.&nbsp; What we want is to ensure that a request coming from a =
client could be trusted, even if transmitted over HTTP.&nbsp; So, what =
we wanted really wasn=92t a secure cookie, but a guarantee that the =
request is genuine.<o:p></o:p></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
11pt; font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; =
">With this draft, we=92ve moved away from cookies and focus on only =
providing message authentication.&nbsp; To provide message =
authentication, we still establish an association between the client and =
server.&nbsp; We still allow for Diffie-Hellman to be used, but we have =
a mechanism in place to allow HTTPS to be used for the sole purpose of =
establishing associations, too.&nbsp; The end result is that, with this =
draft, we can provide message integrity and we can avoid replay of =
messages.<o:p></o:p></div><div style=3D"margin-top: 0in; margin-right: =
0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; =
font-family: Calibri, sans-serif; "><o:p>&nbsp;</o:p></div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; =
">We invite you to look at this revised draft and provide us with =
feedback.</div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: =
Calibri, sans-serif; "><br></div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
11pt; font-family: Calibri, sans-serif; ">Warm Regards,</div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 11pt; font-family: Calibri, sans-serif; =
"><br></div><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 11pt; font-family: =
Calibri, sans-serif; ">Gonzalo</div></body></html>=

--Apple-Mail-30-33134989--

From ietf@adambarth.com  Mon Feb 21 13:10:58 2011
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 DCAB63A7150 for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 13:10:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.82
X-Spam-Level: 
X-Spam-Status: No, score=-2.82 tagged_above=-999 required=5 tests=[AWL=0.157,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 sfBdR4rfPZ1b for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 13:10:57 -0800 (PST)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by core3.amsl.com (Postfix) with ESMTP id 50D033A7132 for <http-state@ietf.org>; Mon, 21 Feb 2011 13:10:57 -0800 (PST)
Received: by wyb42 with SMTP id 42so709306wyb.31 for <http-state@ietf.org>; Mon, 21 Feb 2011 13:11:39 -0800 (PST)
Received: by 10.216.179.140 with SMTP id h12mr1625813wem.40.1298322698165; Mon, 21 Feb 2011 13:11:38 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id t5sm2284338wes.9.2011.02.21.13.11.36 (version=SSLv3 cipher=OTHER); Mon, 21 Feb 2011 13:11:37 -0800 (PST)
Received: by iwl42 with SMTP id 42so3473837iwl.31 for <http-state@ietf.org>; Mon, 21 Feb 2011 13:11:35 -0800 (PST)
Received: by 10.231.36.75 with SMTP id s11mr1488241ibd.130.1298322695094; Mon, 21 Feb 2011 13:11:35 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Mon, 21 Feb 2011 13:11:05 -0800 (PST)
In-Reply-To: <B872210E-0DA3-4721-B3C9-BF63AC0AD727@cisco.com>
References: <B872210E-0DA3-4721-B3C9-BF63AC0AD727@cisco.com>
From: Adam Barth <ietf@adambarth.com>
Date: Mon, 21 Feb 2011 13:11:05 -0800
Message-ID: <AANLkTik+O_EsiU6i5CDSRuk6Hyd_0ptppWHOhzyrS2aU@mail.gmail.com>
To: Gonzalo Salgueiro <gsalguei@cisco.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Cc: http-state@ietf.org
Subject: Re: [http-state] draft-salgueiro-secure-state-management-04.txt
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: Mon, 21 Feb 2011 21:10:59 -0000

Overall feedback:

There are large performance problems with this proposal.  However, I
like the general idea of the user agent and the server establishing
key material that's used to authenticate various parts of the HTTP
request.

Some random detailed comments:

=3D=3D=3D
   In every request from the user agent to the server, the user agent
   MUST advertise its support for the Secure State Management
   procedures defined in this document.
=3D=3D=3D

User agent's aren't going to like this requirement because it bloats
UA =3D> Server request for everyone.

=3D=3D=3D
      SSM-Functions =3D "SSM-Functions" ":" MAC-Function
                      *["," *SP MAC-Function]
=3D=3D=3D

Presumably LWS instead of SP.

=3D=3D=3D
   A client MUST NOT issue
   concurrent requests that utilize the same security association
   handle and session handle, as the server will not be able to
   differentiate between legitimate requests and requests that are, in
   fact, replay attacks.
=3D=3D=3D

This is terrible for performance.  It's extremely common to have
multiple requests in flight to a server and will only become more
common in the future.

=3D=3D=3D
   Once an association has been established, it MAY be used
   subsequently over either HTTP or HTTPS when the client issues
   requests to the server.
=3D=3D=3D

What about other protocols?  Can I use it with gopher?  What about
SPDY?  What about Future-Protocol-That's-Awesome?

=3D=3D=3D
   When using HTTPS and establishing a new security association, the
   server MUST reply to requests that contain the SSM-Functions header
   and that do not demonstrate having a valid security association with
   a 401 Unauthorized as shown below:
=3D=3D=3D

This is slow because it introduces an extra round-trip between the UA
and the server to establish the security association.  For servers
that care about latency, that's a huge hit in many common deployment
scenarios, especially mobile.

=3D=3D=3D
      GET / HTTP/1.1
      SSM-Functions: hmac-md5, hmac-sha-1
      SSM-Parameters: assoc=3D12345; session=3D1; nonce=3D1;
                components=3DRequest-Line;
                mac=3D2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
=3D=3D=3D

That's a lot of junk to send with each request.  People believe that
Cookie headers area already too long!

=3D=3D=3D
      HTTP/1.1 401 Unauthorized
      WWW-Authenticate: SSM transport=3Dhttps, port=3D443
=3D=3D=3D

Why not just use a regular HTTP redirect?

I don't understand how the user agent chooses which components to use.
 Does the server request these?  Is the user agent just supposed to be
prescient?

Adam


On Mon, Feb 21, 2011 at 11:09 AM, Gonzalo Salgueiro <gsalguei@cisco.com> wr=
ote:
> Folks,
> We just published a significantly revised version of the secure state
> management draft that we had been working on.=A0 The new draft can be fou=
nd
> here:
> http://tools.ietf.org/html/draft-salgueiro-secure-state-management-04
>
> We had received mixed feedback before, but it seemed there were two
> recurring themes:
> =B7=A0=A0=A0=A0=A0=A0=A0=A0=A0We wanted to move away from cookies for sec=
ure state management,
> though perhaps continuing to use cookies as a means of identifying the
> remote user agent
> =B7=A0=A0=A0=A0=A0=A0=A0=A0=A0We need to have a solution that works over =
HTTP that does not
> require the use of Diffie-Hellman
>
> We took a step back to look at the problem we were trying to solve.=A0 Wh=
at we
> want is to ensure that a request coming from a client could be trusted, e=
ven
> if transmitted over HTTP.=A0 So, what we wanted really wasn=92t a secure =
cookie,
> but a guarantee that the request is genuine.
>
> With this draft, we=92ve moved away from cookies and focus on only provid=
ing
> message authentication.=A0 To provide message authentication, we still
> establish an association between the client and server.=A0 We still allow=
 for
> Diffie-Hellman to be used, but we have a mechanism in place to allow HTTP=
S
> to be used for the sole purpose of establishing associations, too.=A0 The=
 end
> result is that, with this draft, we can provide message integrity and we =
can
> avoid replay of messages.
>
> We invite you to look at this revised draft and provide us with feedback.
> Warm Regards,
> Gonzalo
> _______________________________________________
> http-state mailing list
> http-state@ietf.org
> https://www.ietf.org/mailman/listinfo/http-state
>
>

From paulej@packetizer.com  Mon Feb 21 14:39:09 2011
Return-Path: <paulej@packetizer.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 A972E3A7195 for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 14:39:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 WJoTBPIjWymq for <http-state@core3.amsl.com>; Mon, 21 Feb 2011 14:39:08 -0800 (PST)
Received: from dublin.packetizer.com (dublin.packetizer.com [75.101.130.125]) by core3.amsl.com (Postfix) with ESMTP id 02EF63A70F9 for <http-state@ietf.org>; Mon, 21 Feb 2011 14:39:07 -0800 (PST)
Received: from sydney (rrcs-98-101-155-83.midsouth.biz.rr.com [98.101.155.83]) (authenticated bits=0) by dublin.packetizer.com (8.14.4/8.14.4) with ESMTP id p1LMd1C2030957 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 21 Feb 2011 17:39:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=packetizer.com; s=dublin; t=1298327947; bh=eiuICI+vNUgDEK+roAg/y21IEfhkJrFbe6c646kI/HU=; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; b=hGAfUQ+s4WbBl3EgHppj6eoJjD6YIF0t3PpC0YLMRYcuSwDh7nO8bBeAcMFv2GFXf KCETjYQXq0GcZbYBGgYbqUEMAW2M8yE0uFII7576KAcKjAQlt5rKTWDnkpn0D0v7xt CEU6sLiwmKs9CI8EhtEhGrf6D7WSyg9YOCAkq1TE=
From: "Paul E. Jones" <paulej@packetizer.com>
To: "'Adam Barth'" <ietf@adambarth.com>, "'Gonzalo Salgueiro'" <gsalguei@cisco.com>
References: <B872210E-0DA3-4721-B3C9-BF63AC0AD727@cisco.com> <AANLkTik+O_EsiU6i5CDSRuk6Hyd_0ptppWHOhzyrS2aU@mail.gmail.com>
In-Reply-To: <AANLkTik+O_EsiU6i5CDSRuk6Hyd_0ptppWHOhzyrS2aU@mail.gmail.com>
Date: Mon, 21 Feb 2011 17:38:58 -0500
Message-ID: <00d201cbd218$248cb3c0$6da61b40$@packetizer.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQHDdQBjcyOLxHHvpi6hw4WODz+dGwHJZ5ZSlA7qOIA=
Content-Language: en-us
Cc: http-state@ietf.org
Subject: Re: [http-state] draft-salgueiro-secure-state-management-04.txt
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: Mon, 21 Feb 2011 22:39:10 -0000

Adam,

Thanks for the feedback.  Comments below:

> There are large performance problems with this proposal.

Can you elaborate a little on your concerns?  Note that we tried to =
design
this so that the server itself would have to do only a little more work =
than
what it would have to do to handle a cookie and less than what it would =
have
to do for an HTTPS connection.

> However, I
> like the general idea of the user agent and the server establishing =
key
> material that's used to authenticate various parts of the HTTP =
request.

Great! Regardless of whether this draft goes forward, we'd like to =
tackle
this issue to provide some kind of message integrity and perhaps also to
prevent double-posting (versus the various other methods already =
employed
for the same purpose).

=20
> Some random detailed comments:
>=20
> =3D=3D=3D
>    In every request from the user agent to the server, the user agent
>    MUST advertise its support for the Secure State Management
>    procedures defined in this document.
> =3D=3D=3D
>=20
> User agent's aren't going to like this requirement because it bloats =
UA
> =3D> Server request for everyone.

It does, but we can't see a way to avoid that. Perhaps we could avoid
sending it with specific methods (e.g., HEAD), but for consistency (and
perhaps there are other benefits), we suggested always advertising one's
capabilities.  Suggestions welcome!

> =3D=3D=3D
>       SSM-Functions =3D "SSM-Functions" ":" MAC-Function
>                       *["," *SP MAC-Function] =3D=3D=3D
>=20
> Presumably LWS instead of SP.

Yes.  We'll change that.

>=20
> =3D=3D=3D
>    A client MUST NOT issue
>    concurrent requests that utilize the same security association
>    handle and session handle, as the server will not be able to
>    differentiate between legitimate requests and requests that are, in
>    fact, replay attacks.
> =3D=3D=3D
>=20
> This is terrible for performance.  It's extremely common to have
> multiple requests in flight to a server and will only become more =
common
> in the future.

Having multiple requests in flight is permissible.  The requirement is =
that
each parallel request must have its own "session" value, which is an =
integer
value specified by the user agent.

>=20
> =3D=3D=3D
>    Once an association has been established, it MAY be used
>    subsequently over either HTTP or HTTPS when the client issues
>    requests to the server.
> =3D=3D=3D
>=20
> What about other protocols?  Can I use it with gopher?  What about =
SPDY?
> What about Future-Protocol-That's-Awesome?

:-)  I suppose it could be used for anything, but the scope of this =
document
is HTTP.

> =3D=3D=3D
>    When using HTTPS and establishing a new security association, the
>    server MUST reply to requests that contain the SSM-Functions header
>    and that do not demonstrate having a valid security association =
with
>    a 401 Unauthorized as shown below:
> =3D=3D=3D
>=20
> This is slow because it introduces an extra round-trip between the UA
> and the server to establish the security association.  For servers =
that
> care about latency, that's a huge hit in many common deployment
> scenarios, especially mobile.

Delay is introduced, but no worse than digest authentication.  Once a
security association is established, this process does not have to be
repeated.  We assume the association is valid until the server decides
otherwise.  We would expect that an association would be valid for at =
least
one day, so a UA would not have to create the association very often.  =
(The
lifetime of the association is certainly a subject for discussion.)

> =3D=3D=3D
>       GET / HTTP/1.1
>       SSM-Functions: hmac-md5, hmac-sha-1
>       SSM-Parameters: assoc=3D12345; session=3D1; nonce=3D1;
>                 components=3DRequest-Line;
>                 mac=3D2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
> =3D=3D=3D
>=20
> That's a lot of junk to send with each request.  People believe that
> Cookie headers area already too long!

Indeed, and a typical request might very well be longer since it might
include more "components".  This does add over 150 octets to the =
request,
but there is benefit in that message integrity is assured.  There is =
always
a cost with security.  We could reduce the size of the headers by
abbreviating things.  The above could be:

       SSMF: hmac-md5, hmac-sha-1
       SSMP: a=3D12345;s=3D1;n=3D1;c=3DRequest-Line;\
             m=3D2aae6c35c94fcfb415dbe95f408b9ce91ee846ed

It's shorter, but still just over 100 octets.
=20
> =3D=3D=3D
>       HTTP/1.1 401 Unauthorized
>       WWW-Authenticate: SSM transport=3Dhttps, port=3D443 =3D=3D=3D
>=20
> Why not just use a regular HTTP redirect?

A redirection does not tell you what the issue is.  We've had this =
problem
with Javascript code that got redirected for authentication purposes =
(e.g.,
using a single sign-on service).  A request is issued for a JSON object, =
for
example, a 3xx is returned, and some HTML content is returned.  The
JavaScript code was completely oblivious to the 3xx.

We could have defined the procedure such that a redirection occurs, a =
401 is
then returned, then on the next request another 3xx is returned to =
redirect
the client back to the HTTP port.  The issue there was that one would =
not
know why the redirection occurred and it introduces more exchanges on =
the
wire.  We're not entirely opposed to 3xx, but we proposed this as an
optimization.
=20
> I don't understand how the user agent chooses which components to use.
>  Does the server request these?  Is the user agent just supposed to be
> prescient?

I assume you mean for generating the MAC?  We left that unspecified, as =
we
assume the user agent is the right entity to choose.  It is the one, =
after
all, that knows that it will send cookies that need protecting with a =
MAC or
other headers or a message body.  I'm personally not opposed to having =
the
server indicate a minimum set of components, where the UA would then =
provide
them if they are present.

Paul
=20
> Adam
>=20
>=20
> On Mon, Feb 21, 2011 at 11:09 AM, Gonzalo Salgueiro =
<gsalguei@cisco.com>
> wrote:
> > Folks,
> > We just published a significantly revised version of the secure =
state
> > management draft that we had been working on.=A0 The new draft can =
be
> > found
> > here:
> > =
http://tools.ietf.org/html/draft-salgueiro-secure-state-management-04
> >
> > We had received mixed feedback before, but it seemed there were two
> > recurring themes:
> > =B7=A0=A0=A0=A0=A0=A0=A0=A0=A0We wanted to move away from cookies =
for secure state
> > management, though perhaps continuing to use cookies as a means of
> > identifying the remote user agent =B7=A0=A0=A0=A0=A0=A0=A0=A0=A0We =
need to have a solution
> > that works over HTTP that does not require the use of Diffie-Hellman
> >
> > We took a step back to look at the problem we were trying to solve.
> > What we want is to ensure that a request coming from a client could =
be
> > trusted, even if transmitted over HTTP.=A0 So, what we wanted really
> > wasn=92t a secure cookie, but a guarantee that the request is =
genuine.
> >
> > With this draft, we=92ve moved away from cookies and focus on only
> > providing message authentication.=A0 To provide message =
authentication,
> > we still establish an association between the client and server.=A0 =
We
> > still allow for Diffie-Hellman to be used, but we have a mechanism =
in
> > place to allow HTTPS to be used for the sole purpose of establishing
> > associations, too.=A0 The end result is that, with this draft, we =
can
> > provide message integrity and we can avoid replay of messages.
> >
> > We invite you to look at this revised draft and provide us with
> feedback.
> > Warm Regards,
> > Gonzalo
> > _______________________________________________
> > http-state mailing list
> > http-state@ietf.org
> > https://www.ietf.org/mailman/listinfo/http-state
> >
> >
> _______________________________________________
> http-state mailing list
> http-state@ietf.org
> https://www.ietf.org/mailman/listinfo/http-state


From tho@koanlogic.com  Tue Feb 22 12:22:04 2011
Return-Path: <tho@koanlogic.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 75D6E3A6891 for <http-state@core3.amsl.com>; Tue, 22 Feb 2011 12:22:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.505
X-Spam-Level: *
X-Spam-Status: No, score=1.505 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,  IP_NOT_FRIENDLY=0.334, RDNS_NONE=0.1, SARE_RECV_IP_069060096=1.666]
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 ivabbj+7wJY5 for <http-state@core3.amsl.com>; Tue, 22 Feb 2011 12:22:03 -0800 (PST)
Received: from gonzo.koanlogic.com (unknown [69.60.118.166]) by core3.amsl.com (Postfix) with ESMTP id 5C4C23A67B0 for <http-state@ietf.org>; Tue, 22 Feb 2011 12:22:03 -0800 (PST)
Received: from host214-195-dynamic.43-79-r.retail.telecomitalia.it ([79.43.195.214]:65297 helo=[192.168.1.3]) by sp2844.serverpronto.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.50) id 1Prykp-0006yw-Cm for http-state@ietf.org; Tue, 22 Feb 2011 15:22:48 -0500
From: tho <tho@koanlogic.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Tue, 22 Feb 2011 21:22:05 +0100
Message-Id: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com>
To: http-state@ietf.org
Mime-Version: 1.0 (Apple Message framework v1082)
X-Mailer: Apple Mail (2.1082)
X-SA-Exim-Connect-IP: 79.43.195.214
X-SA-Exim-Mail-From: tho@koanlogic.com
X-Spam-DCC: : 
X-Spam-Pyzor: Reported 0 times.
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on sp2844.serverpronto.com)
Subject: [http-state] SCS I-D document
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: Tue, 22 Feb 2011 20:22:04 -0000

Hello all,

we have just uploaded the following I-D:

http://www.ietf.org/id/draft-secure-cookie-session-protocol-00.txt

The draft describes a tiny cryptographic protocol layered on top of =
cookies, that can be used to handle session state in cases where the =
origin server doesn't want to, or simply can't, use local storage. =20

It targets web server applications deployed on embedded devices with =
small or no disk, as well as distributed/parallel web apps that could =
benefit from the lack of a centralized data store or some other peering =
mechanism to maintain clients' state.

We were wondering if the draft could be taken as a working item by the =
http-state WG, in which case we're available to drive the related =
editing, implementation and interoperability activities.

In this respect, we've implemented a beta version of the protocol in one =
of our products, and are currently working on a reference implementation =
which will be licensed as Public Domain, BSD or GPL'd software, =
depending on the linked crypto toolkit.

The source code can be found at http://github.com/koanlogic/libscs and =
is open to contribution from anyone who wants to join: we have just =
setup the libscs-dev mailing list =
(http://koanlogic.com/cgi-bin/mailman/listinfo/libscs-dev) to coordinate =
the code development.=20

Any comment is very welcome !

t.=

From ietf@adambarth.com  Tue Feb 22 14:16:05 2011
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 7D3D73A692C for <http-state@core3.amsl.com>; Tue, 22 Feb 2011 14:16:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.842
X-Spam-Level: 
X-Spam-Status: No, score=-2.842 tagged_above=-999 required=5 tests=[AWL=0.135,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 OjtrZekLev2I for <http-state@core3.amsl.com>; Tue, 22 Feb 2011 14:16:03 -0800 (PST)
Received: from mail-wy0-f194.google.com (mail-wy0-f194.google.com [74.125.82.194]) by core3.amsl.com (Postfix) with ESMTP id 597833A6920 for <http-state@ietf.org>; Tue, 22 Feb 2011 14:16:03 -0800 (PST)
Received: by wye20 with SMTP id 20so359525wye.1 for <http-state@ietf.org>; Tue, 22 Feb 2011 14:16:47 -0800 (PST)
Received: by 10.227.9.222 with SMTP id m30mr2911023wbm.211.1298413007538; Tue, 22 Feb 2011 14:16:47 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id u9sm25555wbg.6.2011.02.22.14.16.46 (version=SSLv3 cipher=OTHER); Tue, 22 Feb 2011 14:16:46 -0800 (PST)
Received: by iwl42 with SMTP id 42so4720061iwl.31 for <http-state@ietf.org>; Tue, 22 Feb 2011 14:16:45 -0800 (PST)
Received: by 10.231.37.197 with SMTP id y5mr2464917ibd.180.1298413005163; Tue, 22 Feb 2011 14:16:45 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Tue, 22 Feb 2011 14:16:15 -0800 (PST)
In-Reply-To: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com>
References: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 22 Feb 2011 14:16:15 -0800
Message-ID: <AANLkTinYuzfqGLVvGh-O2TxnVhwVRiOurPS-72B+KQz2@mail.gmail.com>
To: tho <tho@koanlogic.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: http-state@ietf.org
Subject: Re: [http-state] SCS I-D document
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: Tue, 22 Feb 2011 22:16:05 -0000

Thanks for the draft.  I'm not sure I quite understood what problem
this protocol addresses or how it addresses that problem.  Maybe
including some example protocol traces with an explanation of what's
going on would be helpful?  For example,
<http://tools.ietf.org/html/draft-ietf-httpstate-cookie-22#section-3.1>
shows some example uses of the cookie protocol.

Adam


On Tue, Feb 22, 2011 at 12:22 PM, tho <tho@koanlogic.com> wrote:
> Hello all,
>
> we have just uploaded the following I-D:
>
> http://www.ietf.org/id/draft-secure-cookie-session-protocol-00.txt
>
> The draft describes a tiny cryptographic protocol layered on top of cooki=
es, that can be used to handle session state in cases where the origin serv=
er doesn't want to, or simply can't, use local storage.
>
> It targets web server applications deployed on embedded devices with smal=
l or no disk, as well as distributed/parallel web apps that could benefit f=
rom the lack of a centralized data store or some other peering mechanism to=
 maintain clients' state.
>
> We were wondering if the draft could be taken as a working item by the ht=
tp-state WG, in which case we're available to drive the related editing, im=
plementation and interoperability activities.
>
> In this respect, we've implemented a beta version of the protocol in one =
of our products, and are currently working on a reference implementation wh=
ich will be licensed as Public Domain, BSD or GPL'd software, depending on =
the linked crypto toolkit.
>
> The source code can be found at http://github.com/koanlogic/libscs and is=
 open to contribution from anyone who wants to join: we have just setup the=
 libscs-dev mailing list (http://koanlogic.com/cgi-bin/mailman/listinfo/lib=
scs-dev) to coordinate the code development.
>
> Any comment is very welcome !
>
> t.
> _______________________________________________
> http-state mailing list
> http-state@ietf.org
> https://www.ietf.org/mailman/listinfo/http-state
>

From tho@koanlogic.com  Wed Feb 23 02:23:45 2011
Return-Path: <tho@koanlogic.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 052563A6836 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 02:23:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.505
X-Spam-Level: *
X-Spam-Status: No, score=1.505 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,  IP_NOT_FRIENDLY=0.334, RDNS_NONE=0.1, SARE_RECV_IP_069060096=1.666]
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 PGnki3alfuCQ for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 02:23:44 -0800 (PST)
Received: from gonzo.koanlogic.com (unknown [69.60.118.166]) by core3.amsl.com (Postfix) with ESMTP id 71C933A6839 for <http-state@ietf.org>; Wed, 23 Feb 2011 02:23:43 -0800 (PST)
Received: from 93-63-252-189.ip30.fastwebnet.it ([93.63.252.189]:29251 helo=abergantin2.sunriseitaly.sunrisetelecom.com) by sp2844.serverpronto.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.50) id 1PsBtL-00084Q-6A; Wed, 23 Feb 2011 05:24:29 -0500
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: tho <tho@koanlogic.com>
In-Reply-To: <AANLkTinYuzfqGLVvGh-O2TxnVhwVRiOurPS-72B+KQz2@mail.gmail.com>
Date: Wed, 23 Feb 2011 11:24:15 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <24FCC78D-AFC9-4B87-93C6-E62EFCB56D83@koanlogic.com>
References: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com> <AANLkTinYuzfqGLVvGh-O2TxnVhwVRiOurPS-72B+KQz2@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
X-SA-Exim-Connect-IP: 93.63.252.189
X-SA-Exim-Mail-From: tho@koanlogic.com
X-Spam-DCC: : 
X-Spam-Pyzor: Reported 0 times.
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on sp2844.serverpronto.com)
Cc: http-state@ietf.org
Subject: Re: [http-state] SCS I-D document
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, 23 Feb 2011 10:23:45 -0000

Hello Adam,

On Feb 22, 2011, at 11:16 PM, Adam Barth wrote:
> Thanks for the draft.  I'm not sure I quite understood what problem
> this protocol addresses or how it addresses that problem. =20

the problem is the following: suppose a web app needs to save its =
execution state with a given client and has no local storage available =
to do so.

It can pack the state (say =
"user=3Dbob;role=3Dadmin;auth=3Dok;lang=3Den_us;..."), create an SCS =
cookie out of it, and send the SCS cookie to the client.

An SCS cookie is created such that:
a) the state string can be seen in clear-text by no one but the web =
application;
b) it embeds ancillary information that carries the proof of authorship =
of the given web application over the cookie.

So, when the client returns to the web app, the latter can verify that:
a) the supplied SCS cookie was its (i.e. generated by the web app),
b) the state string has not been tampered;
this way it can safely restore state and continue execution (or reject =
in case any of the two properties can't be satisfied).

This is especially useful in embedded devices (think for example of an =
home router with a web app providing configuration and monitoring via =
HTTP running from firmware), but could also come in handy at a =
completely different magnitude order.  When you have to deal with a =
massive web app you usually need to rely on a centralized storage to =
save/restore session state shared by the multiple nodes.  Using SCS =
cookies each node can dump/restore global application state =
independently, provided all the nodes are initially feeded with the same =
crypto material (i.e. the same ~64 bytes of entropy).

Hope the intent is less opaque now, of course I'm available for any =
further clarification.

ciao, t.



From ietf@adambarth.com  Wed Feb 23 02:40:55 2011
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 F2BA43A6A00 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 02:40:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.813
X-Spam-Level: 
X-Spam-Status: No, score=-1.813 tagged_above=-999 required=5 tests=[AWL=-0.908, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1, RCVD_IN_NJABL_SPAM=2.072]
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 O0vVXKR3I28W for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 02:40:55 -0800 (PST)
Received: from mail-iw0-f194.google.com (mail-iw0-f194.google.com [209.85.214.194]) by core3.amsl.com (Postfix) with ESMTP id 3793C3A69FC for <http-state@ietf.org>; Wed, 23 Feb 2011 02:40:55 -0800 (PST)
Received: by iwc10 with SMTP id 10so1581301iwc.1 for <http-state@ietf.org>; Wed, 23 Feb 2011 02:41:41 -0800 (PST)
Received: by 10.42.225.199 with SMTP id it7mr1755116icb.507.1298457701822; Wed, 23 Feb 2011 02:41:41 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id u9sm7146002ibe.2.2011.02.23.02.41.40 (version=SSLv3 cipher=OTHER); Wed, 23 Feb 2011 02:41:40 -0800 (PST)
Received: by iyj8 with SMTP id 8so2780936iyj.31 for <http-state@ietf.org>; Wed, 23 Feb 2011 02:41:40 -0800 (PST)
Received: by 10.42.219.198 with SMTP id hv6mr4833452icb.446.1298457700086; Wed, 23 Feb 2011 02:41:40 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Wed, 23 Feb 2011 02:41:10 -0800 (PST)
In-Reply-To: <24FCC78D-AFC9-4B87-93C6-E62EFCB56D83@koanlogic.com>
References: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com> <AANLkTinYuzfqGLVvGh-O2TxnVhwVRiOurPS-72B+KQz2@mail.gmail.com> <24FCC78D-AFC9-4B87-93C6-E62EFCB56D83@koanlogic.com>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 23 Feb 2011 02:41:10 -0800
Message-ID: <AANLkTi=Cd7rxUY5s3ZvWr1p66Y772Vvt=EWu2O_FAokq@mail.gmail.com>
To: tho <tho@koanlogic.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: http-state@ietf.org
Subject: Re: [http-state] SCS I-D document
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, 23 Feb 2011 10:40:56 -0000

On Wed, Feb 23, 2011 at 2:24 AM, tho <tho@koanlogic.com> wrote:
> On Feb 22, 2011, at 11:16 PM, Adam Barth wrote:
>> Thanks for the draft. =A0I'm not sure I quite understood what problem
>> this protocol addresses or how it addresses that problem.
>
> the problem is the following: suppose a web app needs to save its executi=
on state with a given client and has no local storage available to do so.
>
> It can pack the state (say "user=3Dbob;role=3Dadmin;auth=3Dok;lang=3Den_u=
s;..."), create an SCS cookie out of it, and send the SCS cookie to the cli=
ent.
>
> An SCS cookie is created such that:
> a) the state string can be seen in clear-text by no one but the web appli=
cation;
> b) it embeds ancillary information that carries the proof of authorship o=
f the given web application over the cookie.
>
> So, when the client returns to the web app, the latter can verify that:
> a) the supplied SCS cookie was its (i.e. generated by the web app),
> b) the state string has not been tampered;
> this way it can safely restore state and continue execution (or reject in=
 case any of the two properties can't be satisfied).
>
> This is especially useful in embedded devices (think for example of an ho=
me router with a web app providing configuration and monitoring via HTTP ru=
nning from firmware), but could also come in handy at a completely differen=
t magnitude order. =A0When you have to deal with a massive web app you usua=
lly need to rely on a centralized storage to save/restore session state sha=
red by the multiple nodes. =A0Using SCS cookies each node can dump/restore =
global application state independently, provided all the nodes are initiall=
y feeded with the same crypto material (i.e. the same ~64 bytes of entropy)=
.
>
> Hope the intent is less opaque now, of course I'm available for any furth=
er clarification.

Why does the server need any help from the user agent?  It seems like
the server can just encrypt and mac the data itself and store it in a
cookie.

Adam

From tho@koanlogic.com  Wed Feb 23 03:04:15 2011
Return-Path: <tho@koanlogic.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 7F6F53A684B for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 03:04:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.505
X-Spam-Level: *
X-Spam-Status: No, score=1.505 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,  IP_NOT_FRIENDLY=0.334, RDNS_NONE=0.1, SARE_RECV_IP_069060096=1.666]
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 8UxOxB8gcxXw for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 03:04:14 -0800 (PST)
Received: from gonzo.koanlogic.com (unknown [69.60.118.166]) by core3.amsl.com (Postfix) with ESMTP id 5F8213A680A for <http-state@ietf.org>; Wed, 23 Feb 2011 03:04:14 -0800 (PST)
Received: from 93-63-252-189.ip30.fastwebnet.it ([93.63.252.189]:52534 helo=abergantin2.sunriseitaly.sunrisetelecom.com) by sp2844.serverpronto.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.50) id 1PsCWY-0008An-4g; Wed, 23 Feb 2011 06:05:00 -0500
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: tho <tho@koanlogic.com>
In-Reply-To: <AANLkTi=Cd7rxUY5s3ZvWr1p66Y772Vvt=EWu2O_FAokq@mail.gmail.com>
Date: Wed, 23 Feb 2011 12:04:47 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <D18537E6-56CC-4080-B68D-A62B49CD27FA@koanlogic.com>
References: <6B225A95-E14E-4178-AF98-689C3161A584@koanlogic.com> <AANLkTinYuzfqGLVvGh-O2TxnVhwVRiOurPS-72B+KQz2@mail.gmail.com> <24FCC78D-AFC9-4B87-93C6-E62EFCB56D83@koanlogic.com> <AANLkTi=Cd7rxUY5s3ZvWr1p66Y772Vvt=EWu2O_FAokq@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
X-SA-Exim-Connect-IP: 93.63.252.189
X-SA-Exim-Mail-From: tho@koanlogic.com
X-Spam-DCC: : 
X-Spam-Pyzor: Reported 0 times.
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on sp2844.serverpronto.com)
Cc: http-state@ietf.org
Subject: Re: [http-state] SCS I-D document
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, 23 Feb 2011 11:04:15 -0000

Hello Adam,

On Feb 23, 2011, at 11:41 AM, Adam Barth wrote:
> On Wed, Feb 23, 2011 at 2:24 AM, tho <tho@koanlogic.com> wrote:
>> On Feb 22, 2011, at 11:16 PM, Adam Barth wrote:
>>> Thanks for the draft.  I'm not sure I quite understood what problem
>>> this protocol addresses or how it addresses that problem.
>>=20
>> the problem is the following: suppose a web app needs to save its =
execution state with a given client and has no local storage available =
to do so.
>>=20
>> It can pack the state (say =
"user=3Dbob;role=3Dadmin;auth=3Dok;lang=3Den_us;..."), create an SCS =
cookie out of it, and send the SCS cookie to the client.
>>=20
>> An SCS cookie is created such that:
>> a) the state string can be seen in clear-text by no one but the web =
application;
>> b) it embeds ancillary information that carries the proof of =
authorship of the given web application over the cookie.
>>=20
>> So, when the client returns to the web app, the latter can verify =
that:
>> a) the supplied SCS cookie was its (i.e. generated by the web app),
>> b) the state string has not been tampered;
>> this way it can safely restore state and continue execution (or =
reject in case any of the two properties can't be satisfied).
>>=20
>> This is especially useful in embedded devices (think for example of =
an home router with a web app providing configuration and monitoring via =
HTTP running from firmware), but could also come in handy at a =
completely different magnitude order.  When you have to deal with a =
massive web app you usually need to rely on a centralized storage to =
save/restore session state shared by the multiple nodes.  Using SCS =
cookies each node can dump/restore global application state =
independently, provided all the nodes are initially feeded with the same =
crypto material (i.e. the same ~64 bytes of entropy).
>>=20
>> Hope the intent is less opaque now, of course I'm available for any =
further clarification.
>=20
> Why does the server need any help from the user agent? =20

It doesn't, as long as the user agent has cookie support enabled, SCS =
works fine.

> It seems like the server can just encrypt and mac the data itself and =
store it in a cookie.

There are many ways in which a server could try to do authenticated =
encryption, and some are plain wrong
(http://www.iacr.org/cryptodb/data/paper.php?pubkey=3D11891).

SCS uses a scheme which is provably secure, and offers a single =
interface for doing such things.

It is what standards exist for, right ? :)

ciao, t.=

From fielding@gbiv.com  Wed Feb 23 14:06:59 2011
Return-Path: <fielding@gbiv.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 0D21E3A68FD for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 14:06:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 iktydKkQlP20 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 14:06:57 -0800 (PST)
Received: from homiemail-a73.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by core3.amsl.com (Postfix) with ESMTP id A84523A67FC for <http-state@ietf.org>; Wed, 23 Feb 2011 14:06:57 -0800 (PST)
Received: from homiemail-a73.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTP id 645C31F0078; Wed, 23 Feb 2011 14:07:45 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=Hs0UfWX/OocbFcTd O19avjWR1owS/OIi3Wu+jChjlphAs1m04l4jsCI9SIz4LlOX9ti/EyqrS5V8kn4G lHukwMRGGr0V+LA5GNQo10Yw1ne6UxwhPr1BwiIBXuOaZ44FFzp52UWyCNnrejmJ F7HSqNcghQIarN/W/su9aq53OWw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=CTI+0MbdHpsUB46Kll9lTONJW0s=; b=b0XJJlRBbPYnxfz5Yt4LgVWDk1zM Z49YXMUufpJiOTQ3r6MwkMocfE6ryOmdABwB0EdBaSKFNhnqhbaXMP7UHeRVdSdi DdCKYdvmP/OKdG3Gbjfqj/9bILvZWc1wruxbIiNZHZ3j4OMWc6zAJCpdczhBdWt8 Uc6UivqmxWDw2qY=
Received: from kiwi.corp.day.com (wsip-98-189-13-228.oc.oc.cox.net [98.189.13.228]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a73.g.dreamhost.com (Postfix) with ESMTPSA id EB78D1F0014;  Wed, 23 Feb 2011 14:07:44 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>
Date: Wed, 23 Feb 2011 14:07:44 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
Cc: iesg@iesg.org, http-state <http-state@ietf.org>
Subject: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 23 Feb 2011 22:06:59 -0000

On Feb 15, 2011, at 5:51 PM, Adam Barth wrote:
> On Tue, Feb 15, 2011 at 5:46 PM, Adam Barth <ietf@adambarth.com> =
wrote:
>> On Tue, Feb 15, 2011 at 3:55 PM, Roy T. Fielding <fielding@gbiv.com> =
wrote:
>>> On Feb 15, 2011, at 2:05 PM, Adam Barth wrote:
>>>> On Tue, Feb 15, 2011 at 1:22 PM, Julian Reschke =
<julian.reschke@gmx.de> wrote:
>>>>> On 15.02.2011 22:11, Adam Barth wrote:
>>>>>> ...
>>>>>> You really think we should recommend that servers use invalid =
UTF-8
>>>>>> sequences as cookie-values?  That sounds like bad advice...
>>>>>> ...
>>>=20
>>> I am not recommending that they use invalid UTF-8 sequences.
>>> The ABNF only tells the implementer what octets can be used
>>> and what needs to be anticipated while parsing.  If I were
>>> designing a new Cookie protocol, I would exclude the high bits,
>>> but this is how the current Cookie protocol actually works in
>>> practice.
>>=20
>> I feel like I'm just repeating myself.  The text you're complaining
>> about does not define how to parse a Set-Cookie header.
>=20
> To be crystal clear, this is the only text in the document that refers
> to this figure:
>=20
>          Servers SHOULD NOT send Set-Cookie headers
>          that fail to conform to the following grammar:

Which, as I said, is an incorrect requirement if this spec is
supposed to reflect how Cookie and Set-Cookie are used on
the Internet.  That should be more obvious in context:

Abstract:

   This document defines the HTTP Cookie and Set-Cookie header fields.
   These header fields can be used by HTTP servers to store state
   (called cookies) at HTTP user agents, letting the servers maintain a
   stateful session over the mostly stateless HTTP protocol.  Although
   cookies have many historical infelicities that degrade their security
   and privacy, the Cookie and Set-Cookie header fields are widely used
   on the Internet.

ToC

   4.  Server Requirements  . . . . . . . . . . . . . . . . . . . . . 12
     4.1.  Set-Cookie . . . . . . . . . . . . . . . . . . . . . . . . 12
       4.1.1.  Syntax . . . . . . . . . . . . . . . . . . . . . . . . 12
       4.1.2.  Semantics (Non-Normative)  . . . . . . . . . . . . . . 13
     4.2.  Cookie . . . . . . . . . . . . . . . . . . . . . . . . . . 16
       4.2.1.  Syntax . . . . . . . . . . . . . . . . . . . . . . . . 16
       4.2.2.  Semantics  . . . . . . . . . . . . . . . . . . . . . . 16
   5.  User Agent Requirements  . . . . . . . . . . . . . . . . . . . 17

4.1.1.  Syntax

   Informally, the Set-Cookie response header contains the header name
   "Set-Cookie" followed by a ":" and a cookie.  Each cookie begins with
   a name-value pair, followed by zero or more attribute-value pairs.
   Servers SHOULD NOT send Set-Cookie headers that fail to conform to
   the following grammar:


set-cookie-header =3D "Set-Cookie:" SP set-cookie-string
set-cookie-string =3D cookie-pair *( ";" SP cookie-av )
cookie-pair       =3D cookie-name "=3D" cookie-value
cookie-name       =3D token
cookie-value      =3D token / *base64-character
base64-character  =3D ALPHA / DIGIT / "+" / "/" / "=3D"
token             =3D <token, defined in [RFC2616], Section 2.2>


[BTW, the grammar loses indentation because the comment on
max-age-av is too long]

Your argument appears to be that the cookie-value production
doesn't need to reflect actual usage because the specification
does not include a separate section on how servers should parse
received Cookie values.  In other words, the spec is incomplete.

My argument is that server developers (like me) already have
implementations that parse the Cookie value in a similar way
that user agents parse the Set-Cookie value, largely because
those values are set by third-party modules that the server
has no real control over.  BTW, server implementations like
libapreq <http://httpd.apache.org/apreq/> will only allow
embedded whitespace in value if it is a quoted-string.

Therefore, I would like you to change the ABNF so that it
reflects the reality of (Set-)Cookie usage on the Internet,
for the same reason that you have insisted the algorithm
for user agent parsing reflects reality.  Changing the ABNF
to include base64 does not do that -- it is just another
fantasy production that differs from all prior specs of
the cookie algorithm.  Changing it to

 cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF

or just the minimum

 cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E

returns the definition to the original Netscape spec (at
least in the first case), reflects how they are implemented
on the Internet, and eliminates this artificial distinction
between the server and user agent requirements.

>>> I don't have any objection to a sentence that says servers
>>> SHOULD NOT send %x80-FF even though the grammar allows it.
>>> But I don't see any need for it either given the apparent
>>> interoperability shown by user agents.
>>=20
>> That's essentially what the current document says.  The only
>> difference is that it also recommends that servers not generate
>> characters such as %x24, whose role in cookies has been muddied by =
RFC
>> 2965.

I don't see any restrictions on '$' (it is a valid token char).

The current document says

 cookie-value      =3D token / *base64-character

which unnecessarily excludes DQUOTE, "(" , ")" , "<" , ">" ,
"@", ":" , "\" , "[" , "]" , "?" , "{" , and "}".  It excludes
Google's very common __utmz cookie because that cookie's format
uses both pipe "|" (only allowed in token) and equals "=3D"
(only allowed in *base64-character).

I do not see any reason for this working group to invent a
new grammar that has no implementation experience and differs
from every single prior specification of (Set-)Cookies.

The IESG should not approve such an error for publication,
since it will just require us to start this process over.

Cheers,

Roy T. Fielding                            <http://roy.gbiv.com/>
Principal Scientist, Adobe          <http://adobe.com/enterprise>


From stpeter@stpeter.im  Wed Feb 23 14:57:11 2011
Return-Path: <stpeter@stpeter.im>
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 8A5FD3A68F5 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 14:57:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 Sbw-4WJDG9y5 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 14:57:10 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 78ECA3A68EE for <http-state@ietf.org>; Wed, 23 Feb 2011 14:57:10 -0800 (PST)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 4F2F5400F6; Wed, 23 Feb 2011 16:16:44 -0700 (MST)
Message-ID: <4D6590F4.6010505@stpeter.im>
Date: Wed, 23 Feb 2011 15:57:56 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: "Roy T. Fielding" <fielding@gbiv.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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>	<AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>
In-Reply-To: <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms030205020207010906050907"
Cc: http-state <http-state@ietf.org>, iesg@iesg.org
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 23 Feb 2011 22:57:11 -0000

This is a cryptographically signed message in MIME format.

--------------ms030205020207010906050907
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/23/11 3:07 PM, Roy T. Fielding wrote:

<snip/>

> Therefore, I would like you to change the ABNF so that it
> reflects the reality of (Set-)Cookie usage on the Internet,
> for the same reason that you have insisted the algorithm
> for user agent parsing reflects reality.  Changing the ABNF
> to include base64 does not do that -- it is just another
> fantasy production that differs from all prior specs of
> the cookie algorithm.  Changing it to
>=20
>  cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>=20
> or just the minimum
>=20
>  cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E

Hi Roy,

The latter seems fine, and in conversation with Adam he indicated to me
that he would not object to such a change.

However, I see no reason to include characters from the Unicode range
U+0080 to U+00FF in cookie-value. Among other reasons, characters above
U-00A1 would introduce the need for internationalization considerations
of the kind that have derailed many a standardization effort (e.g., in
Unicode U+00BE undergoes compatibility decomposition). Let's avoid that
can of worms if at all possible...

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms030205020207010906050907
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWdu
aW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAzIFByaW1hcnkgSW50ZXJtZWRpYXRlIENs
aWVudCBDQTCCASIwDQYJKo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Q2lcW
UV3viMDykG2oyW7qXDs9002spoQE06jH5/CC5DJNBo/bLllO7z4n1BK0v+bshtMWDAMDBi7w
nhMssvZvzcApiD0b1e4kKyMfMheJkP4Yxf8PvmEaL5gXXp/j7RVmjh0fxaAhgXnmIqIgxgH/
Vocs2DC/wlXjPVhVYKv4ER/SvGcq3yoRdlMai8qFO+ia51yoMJrNdMc/yxNl/jKx6UpgAAAA
AAAA
--------------ms030205020207010906050907--

From Jeff.Hodges@KingsMountain.com  Wed Feb 23 15:03:02 2011
Return-Path: <Jeff.Hodges@KingsMountain.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 BF9A53A6920 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 15:03:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.432
X-Spam-Level: 
X-Spam-Status: No, score=-102.432 tagged_above=-999 required=5 tests=[AWL=0.167, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 qMYbvkvEz+Ec for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 15:03:01 -0800 (PST)
Received: from oproxy1-pub.bluehost.com (oproxy1-pub.bluehost.com [66.147.249.253]) by core3.amsl.com (Postfix) with SMTP id F11D03A688E for <http-state@ietf.org>; Wed, 23 Feb 2011 15:02:59 -0800 (PST)
Received: (qmail 19606 invoked by uid 0); 23 Feb 2011 23:03:48 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by oproxy1.bluehost.com.bluehost.com with SMTP; 23 Feb 2011 23:03:47 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=OeaBoYYyTFPr+Qz+6uea5SQaXVJkFuZsQGTDL1KTM8KaOJr08X/prLoTmcFdqKfZ93OosXP/3xg+D2eTkJtpzZA+HlnFbB1CvmnTD+NdEWB0bowqoHy43hKXtRHNSNKe;
Received: from outbound4.ebay.com ([216.113.168.128] helo=[10.244.137.169]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1PsNkJ-0002MT-GV for http-state@ietf.org; Wed, 23 Feb 2011 16:03:47 -0700
Message-ID: <4D659252.3090407@KingsMountain.com>
Date: Wed, 23 Feb 2011 15:03:46 -0800
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: IETF HTTP State WG <http-state@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 216.113.168.128 authed with jeff.hodges+kingsmountain.com}
Subject: [http-state] Netscape Cookie spec allowed chars
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, 23 Feb 2011 23:03:02 -0000

Roy said..
 >
 > Therefore, I would like you to change the ABNF so that it
 > reflects the reality of (Set-)Cookie usage on the Internet,
 > ...
 >  Changing it to
 >
 >  cookie-value      = %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
 >
 > or just the minimum
 >
 >  cookie-value      = %x21-2B / %x2D-3A / %x3C-7E
 >
 > returns the definition to the original Netscape spec (at
 > least in the first case)


Just so we all know for sure what the paraphrased (above) primary source 
actually says, here's the as-is spec being cited and a brief analysis of what 
it means...


[NSCP-COOKIE] "PERSISTENT CLIENT STATE HTTP COOKIES
Preliminary Specification - Use with caution"...
<http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/std/cookie_spec.html> 


###
   Syntax of the Set-Cookie HTTP Response Header

     This is the format a CGI script would use to add to the HTTP
     headers a new piece of data which is to be stored by the client
     for later retrieval.

     Set-Cookie: NAME=VALUE; expires=DATE;
     path=PATH; domain=DOMAIN_NAME; secure

     NAME=VALUE
           This string is a sequence of characters excluding semi-colon,
           comma and white space. If there is a need to place such data
           in the name or value, some encoding method such as URL style
           %XX encoding is recommended, though no encoding is defined or
           required.

           This is the only required attribute on the Set-Cookie header.
###

Operative statement from the above quote..

"..characters excluding semi-colon, comma and white space."

(note also that the text above is only explicitly referring to the "NAME=VALUE" 
production; it apparently has been commonly interpreted as referring to the 
entire value string of the "Set-Cookie" HTTP response header; note also that it 
apparently assumes "characters" means "octets", and when it says "whitespace" 
it is meaning the set of chars from the ASCII charset typically referred to as 
that (although that isn't necessarily a rigidly defined set [WS]))


As noted in the table below, the above operative statement has some 
ambiguities. For example, it doesn't explicitly include the high-bit-set chars 
%x80-FF, though apparently many have assumed it does.


----------------------------------------
Original Netscape Cookie spec
Allowed Characters ( [ASCII] (assumed) )
----------------------------------------
Decimal	    Hex       Symbol(s)
----------------------------------------

; %x00-20 -- non-printing control chars (excluded ?)
;            and whitespace ( BS, HT, LF, VT, FF, CR, SP
;                             all excluded ? correct list of
;                             "whitespace" chars as assumed by
;                             [NSCP-COOKIE] authors ? )

;  %x21-2B:

33-43       21-2B       ! " # $ % & ' ( ) * +


; 44          2C          , (excluded)

;  %x2D-3A:

45-47       2D-2F       - . /

48-57       30-39       0 - 9

58          3A          :

; 59          3B          ; (excluded)

;  %x3C-7E:

60-64       3C-40       < = > ? @

65-90       41-5A       A-Z

91-96       5B-60       [ \ ] ^ _ `

97-122      61-7A       a-z

123-126     7B-7E       { | } ~


; 127         7F        DEL  (excluded ?)

;  %x80-FF:

128-256     80-FF       high-bit-set chars  (included ?)


See also:

[ASCII]  ASCII (American Standard Code for Information Interchange) Code
          http://www.december.com/html/spec/asciiall.html

[WS]     Whitespace character
          https://secure.wikimedia.org/wikipedia/en/wiki/Whitespace_character


---
end








From fielding@gbiv.com  Wed Feb 23 17:00:59 2011
Return-Path: <fielding@gbiv.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 DA7DC3A6997 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 17:00:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 JsH22a09HX0q for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 17:00:59 -0800 (PST)
Received: from homiemail-a33.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by core3.amsl.com (Postfix) with ESMTP id E909C3A6960 for <http-state@ietf.org>; Wed, 23 Feb 2011 17:00:58 -0800 (PST)
Received: from homiemail-a33.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a33.g.dreamhost.com (Postfix) with ESMTP id 3B0CE594059; Wed, 23 Feb 2011 17:01:47 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=cq3aE93hjEikpI1s tCcINqZVHIPe5qT83rj2NwIPH5dr0WPg3YAnOtNmZvtdLzXqbhd1z641cl3uiNm2 VfF8A8DtqCiZ0hxXm1G1fFddh6P+Da+BHRsUmDpLi9SUcEjlD7r3b19I5lyUV0Ji EtFcCroRwD+LtzOkOipJnQF1o2c=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=byXRUw6HZIPetYTLjGSVJKAtc+U=; b=uzAguupHVZySYOakRB309Ax/RgQz PEInsLNXN3PaZcU0mkiRMhPYasd87t4miBaG/h+Sle1IYDEz3Zn89dY/7BLPtpX1 B/BaANP3IYGddaK2WtVQgnWHbTMkm6K99sw+Rnl/kDZwBRn3XOmZtuPQd57gYnqy S/QN5dKIaQNlnu0=
Received: from kiwi.corp.day.com (wsip-98-189-13-228.oc.oc.cox.net [98.189.13.228]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a33.g.dreamhost.com (Postfix) with ESMTPSA id 03887594058;  Wed, 23 Feb 2011 17:01:46 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <4D6590F4.6010505@stpeter.im>
Date: Wed, 23 Feb 2011 17:01:51 -0800
Content-Transfer-Encoding: 7bit
Message-Id: <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>	<AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im>
To: Peter Saint-Andre <stpeter@stpeter.im>
X-Mailer: Apple Mail (2.1082)
Cc: http-state <http-state@ietf.org>, iesg@iesg.org
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 01:01:00 -0000

On Feb 23, 2011, at 2:57 PM, Peter Saint-Andre wrote:
> On 2/23/11 3:07 PM, Roy T. Fielding wrote:
> 
> <snip/>
> 
>> Therefore, I would like you to change the ABNF so that it
>> reflects the reality of (Set-)Cookie usage on the Internet,
>> for the same reason that you have insisted the algorithm
>> for user agent parsing reflects reality.  Changing the ABNF
>> to include base64 does not do that -- it is just another
>> fantasy production that differs from all prior specs of
>> the cookie algorithm.  Changing it to
>> 
>> cookie-value      = %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>> 
>> or just the minimum
>> 
>> cookie-value      = %x21-2B / %x2D-3A / %x3C-7E
> 
> Hi Roy,
> 
> The latter seems fine, and in conversation with Adam he indicated to me
> that he would not object to such a change.

Okay by me.

> However, I see no reason to include characters from the Unicode range
> U+0080 to U+00FF in cookie-value. Among other reasons, characters above
> U-00A1 would introduce the need for internationalization considerations
> of the kind that have derailed many a standardization effort (e.g., in
> Unicode U+00BE undergoes compatibility decomposition). Let's avoid that
> can of worms if at all possible...

According to the cookie protocol, the value is not characters:
they are just opaque octets.  Generally speaking, i18n considerations
do not apply to opaque OCTETs, though I have no reason to object to such
an exclusion because it is consistent with httpbis recommendation to
avoid the use of %x80-FF in any HTTP header fields.  I do not know
of any use in practice.

....Roy

From fielding@gbiv.com  Wed Feb 23 19:30:22 2011
Return-Path: <fielding@gbiv.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 ABC4B3A67D6 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 19:30:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 TPHtEctsaZEm for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 19:30:19 -0800 (PST)
Received: from homiemail-a28.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by core3.amsl.com (Postfix) with ESMTP id 854753A67C2 for <http-state@ietf.org>; Wed, 23 Feb 2011 19:30:19 -0800 (PST)
Received: from homiemail-a28.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a28.g.dreamhost.com (Postfix) with ESMTP id 086301B4057; Wed, 23 Feb 2011 19:31:08 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=Xo+kQnrFUksUbif7 nnLXWfWw1l/SKNw16oeYk1w2d+VUdxEu8VjeG/yQ10NT5xlDw7c9+IxB2wCvjNnI rklKqEYfQZEiRWdK5siCkvXcThk9bvqGpe9REhhb7+EH65UjzuqOGG2/A4sNYB/0 X0QeqZrf6zW4/3/0jdCvm4Y9+aU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=1/bb0x93bEKTAJI/8QDt0VwtljY=; b=fGE5iZgP0nWxmMJlnZ/CcmUBXKuA 766XxaZTn/s6sGe4WsCIU/+vKhuvR+ymKy339aMFF6h9RqZmVNJlXyy38llCVgVt TPhQNbaE3mrAno7N55L+BSPXqZvbKJ1H5LI8Uc5aLi3rPWV0/21EmD6A0JmbVROO FSFbITu5VpczUlc=
Received: from kiwi.corp.day.com (wsip-98-189-13-228.oc.oc.cox.net [98.189.13.228]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a28.g.dreamhost.com (Postfix) with ESMTPSA id CFBA71B4009;  Wed, 23 Feb 2011 19:31:07 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <4D659252.3090407@KingsMountain.com>
Date: Wed, 23 Feb 2011 19:31:12 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <E20D5E19-DD27-47FB-87E3-204783CFB19E@gbiv.com>
References: <4D659252.3090407@KingsMountain.com>
To: =JeffH <Jeff.Hodges@KingsMountain.com>
X-Mailer: Apple Mail (2.1082)
Cc: IETF HTTP State WG <http-state@ietf.org>
Subject: Re: [http-state] Netscape Cookie spec allowed chars
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, 24 Feb 2011 03:30:23 -0000

On Feb 23, 2011, at 3:03 PM, =3DJeffH wrote:

> Roy said..
> >
> > Therefore, I would like you to change the ABNF so that it
> > reflects the reality of (Set-)Cookie usage on the Internet,
> > ...
> >  Changing it to
> >
> >  cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
> >
> > or just the minimum
> >
> >  cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E
> >
> > returns the definition to the original Netscape spec (at
> > least in the first case)
>=20
>=20
> Just so we all know for sure what the paraphrased (above) primary =
source actually says, here's the as-is spec being cited and a brief =
analysis of what it means...
>=20
>=20
> [NSCP-COOKIE] "PERSISTENT CLIENT STATE HTTP COOKIES
> Preliminary Specification - Use with caution"...
> =
<http://web.archive.org/web/20020803110822/http://wp.netscape.com/newsref/=
std/cookie_spec.html>=20
>=20
> ###
>  Syntax of the Set-Cookie HTTP Response Header
>=20
>    This is the format a CGI script would use to add to the HTTP
>    headers a new piece of data which is to be stored by the client
>    for later retrieval.
>=20
>    Set-Cookie: NAME=3DVALUE; expires=3DDATE;
>    path=3DPATH; domain=3DDOMAIN_NAME; secure
>=20
>    NAME=3DVALUE
>          This string is a sequence of characters excluding semi-colon,
>          comma and white space. If there is a need to place such data
>          in the name or value, some encoding method such as URL style
>          %XX encoding is recommended, though no encoding is defined or
>          required.
>=20
>          This is the only required attribute on the Set-Cookie header.
> ###
>=20
> Operative statement from the above quote..
>=20
> "..characters excluding semi-colon, comma and white space."
>=20
> (note also that the text above is only explicitly referring to the =
"NAME=3DVALUE" production; it apparently has been commonly interpreted =
as referring to the entire value string of the "Set-Cookie" HTTP =
response header; note also that it apparently assumes "characters" means =
"octets", and when it says "whitespace" it is meaning the set of chars =
from the ASCII charset typically referred to as that (although that =
isn't necessarily a rigidly defined set [WS]))
>=20
>=20
> As noted in the table below, the above operative statement has some =
ambiguities. For example, it doesn't explicitly include the high-bit-set =
chars %x80-FF, though apparently many have assumed it does.

Right, but it also defines it as an HTTP Response Header,
and (at the time Lou wrote that spec) all such header fields
forbid CTLs (other than WS) and allowed "Recipients of header
field TEXT containing octets outside the US-ASCII character set
may assume that they represent ISO-8859-1 characters."

Hence, it does say exactly the production that I suggested,
if you know the context, and well-written implementations
generally do exclude %x00-20, ";", ",", and %x7E when
processing what looks to be a Netscape-style cookie.

....Roy=

From ietf@adambarth.com  Wed Feb 23 21:16:12 2011
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 7D0993A69A6 for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 21:16:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.809
X-Spam-Level: 
X-Spam-Status: No, score=-2.809 tagged_above=-999 required=5 tests=[AWL=0.168,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 XF9U-pW2nSDu for <http-state@core3.amsl.com>; Wed, 23 Feb 2011 21:16:11 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id B7A443A69A2 for <http-state@ietf.org>; Wed, 23 Feb 2011 21:16:11 -0800 (PST)
Received: by iwl42 with SMTP id 42so118866iwl.31 for <http-state@ietf.org>; Wed, 23 Feb 2011 21:17:00 -0800 (PST)
Received: by 10.231.19.133 with SMTP id a5mr695710ibb.78.1298524620157; Wed, 23 Feb 2011 21:17:00 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by mx.google.com with ESMTPS id z4sm7924128ibg.13.2011.02.23.21.16.58 (version=SSLv3 cipher=OTHER); Wed, 23 Feb 2011 21:16:59 -0800 (PST)
Received: by iwl42 with SMTP id 42so118856iwl.31 for <http-state@ietf.org>; Wed, 23 Feb 2011 21:16:58 -0800 (PST)
Received: by 10.231.36.75 with SMTP id s11mr676263ibd.130.1298524616094; Wed, 23 Feb 2011 21:16:56 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.215.67 with HTTP; Wed, 23 Feb 2011 21:16:25 -0800 (PST)
In-Reply-To: <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com>
From: Adam Barth <ietf@adambarth.com>
Date: Wed, 23 Feb 2011 21:16:25 -0800
Message-ID: <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 05:16:12 -0000

On Wed, Feb 23, 2011 at 5:01 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 23, 2011, at 2:57 PM, Peter Saint-Andre wrote:
>> On 2/23/11 3:07 PM, Roy T. Fielding wrote:
>>
>> <snip/>
>>
>>> Therefore, I would like you to change the ABNF so that it
>>> reflects the reality of (Set-)Cookie usage on the Internet,
>>> for the same reason that you have insisted the algorithm
>>> for user agent parsing reflects reality. =A0Changing the ABNF
>>> to include base64 does not do that -- it is just another
>>> fantasy production that differs from all prior specs of
>>> the cookie algorithm. =A0Changing it to
>>>
>>> cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>>>
>>> or just the minimum
>>>
>>> cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E
>>
>> Hi Roy,
>>
>> The latter seems fine, and in conversation with Adam he indicated to me
>> that he would not object to such a change.
>
> Okay by me.

One nit: I would exclude %x22 because there are interoperability
problems with cookie-values that contain %x22.

Adam

From stpeter@stpeter.im  Thu Feb 24 13:00:25 2011
Return-Path: <stpeter@stpeter.im>
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 7DEAB3A684C for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:00:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.642
X-Spam-Level: 
X-Spam-Status: No, score=-102.642 tagged_above=-999 required=5 tests=[AWL=-0.043, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 uNeO8A3JMgz6 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:00:24 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id EF7043A6802 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:00:23 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 8F4FA4011B; Thu, 24 Feb 2011 14:20:05 -0700 (MST)
Message-ID: <4D66C718.3000300@stpeter.im>
Date: Thu, 24 Feb 2011 14:01:12 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>	<AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>	<1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>	<4D6590F4.6010505@stpeter.im>	<94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com>
In-Reply-To: <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms050209010107060502050507"
Cc: "Roy T. Fielding" <fielding@gbiv.com>, iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 21:00:25 -0000

This is a cryptographically signed message in MIME format.

--------------ms050209010107060502050507
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/23/11 10:16 PM, Adam Barth wrote:
> On Wed, Feb 23, 2011 at 5:01 PM, Roy T. Fielding <fielding@gbiv.com> wr=
ote:
>> On Feb 23, 2011, at 2:57 PM, Peter Saint-Andre wrote:
>>> On 2/23/11 3:07 PM, Roy T. Fielding wrote:
>>>
>>> <snip/>
>>>
>>>> Therefore, I would like you to change the ABNF so that it
>>>> reflects the reality of (Set-)Cookie usage on the Internet,
>>>> for the same reason that you have insisted the algorithm
>>>> for user agent parsing reflects reality.  Changing the ABNF
>>>> to include base64 does not do that -- it is just another
>>>> fantasy production that differs from all prior specs of
>>>> the cookie algorithm.  Changing it to
>>>>
>>>> cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>>>>
>>>> or just the minimum
>>>>
>>>> cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E
>>>
>>> Hi Roy,
>>>
>>> The latter seems fine, and in conversation with Adam he indicated to =
me
>>> that he would not object to such a change.
>>
>> Okay by me.
>=20
> One nit: I would exclude %x22 because there are interoperability
> problems with cookie-values that contain %x22.

So:

cookie-value    =3D %x21 / %x23-2B / %x2D-3A / %x3C-7E

If there are no objections, I'll add an RFC Editor note to that effect.

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms050209010107060502050507
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWdu
aW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAzIFByaW1hcnkgSW50ZXJtZWRpYXRlIENs
aWVudCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALmjSW4SPiDKlAinvVeL
ZOVfItiuP1aRHL530E7QUc9icCwL33+PH+Js1HAh8CgWFl34sOxx1FJyS/C4VLPRsqDfP72j
tzCVUAL0DAxZ7wgzQvFz7x61jGxfhYhqYb1+PPOLkYBbkRIrPMg3dLEdKmXIYJYXDH+mB/V/
jLo73/Kb7h/rNoNg/oHHSv5Jolyvp5IY2btfcTBfW/telEFj5rDTX2juTvZ3Qhf3XQX5ca3Q
7A10z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<fielding@gbiv.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 075503A6848 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:30:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.932
X-Spam-Level: 
X-Spam-Status: No, score=-103.932 tagged_above=-999 required=5 tests=[AWL=-1.333, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 1mRW7BBrk8cU for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:30:10 -0800 (PST)
Received: from homiemail-a71.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id C1E123A6807 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:30:10 -0800 (PST)
Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 64B1B428079; Thu, 24 Feb 2011 13:31:01 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=dHXgEQcq4FZiUiZi sbqfe5aXN3niAZLvNyIDNAkaGz5Hfp+LZsSSaxXHo50UHINweqImadOfDK5mPiGN utRQQk1AZeig0QkBcZBPqDg9fUlAEJmKQfFHNMKfwd6K//3jsmTjhKVSESB+ztVm MiitOV1n+O1cPjFCHeEudxdd41I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=xYXSrWvsFSkJtpUIsoHaclvGFSM=; b=PtHf1EsfpYBmDOXqcmQ2lWys7Uly GPYLS6EboAUK+PHSUMVE0nYsfs3mLkYntbgr9leN6m1uI6EcSEZKH4eLzLe9AdYj WWnlLidJHSeuaZOPdASgSY2d7LzHQHDgwEpEDeTcB9SjcmcvoQXhSEAdR5D+PPh3 O3udVpJjG5lfSNs=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id 1AD00428078;  Thu, 24 Feb 2011 13:31:01 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <4D66C718.3000300@stpeter.im>
Date: Thu, 24 Feb 2011 13:31:00 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>	<AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>	<1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>	<4D6590F4.6010505@stpeter.im>	<94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im>
To: Peter Saint-Andre <stpeter@stpeter.im>
X-Mailer: Apple Mail (2.1082)
Cc: http-state <http-state@ietf.org>, iesg@iesg.org
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 21:30:12 -0000

On Feb 24, 2011, at 1:01 PM, Peter Saint-Andre wrote:

> On 2/23/11 10:16 PM, Adam Barth wrote:
>> On Wed, Feb 23, 2011 at 5:01 PM, Roy T. Fielding <fielding@gbiv.com> =
wrote:
>>> On Feb 23, 2011, at 2:57 PM, Peter Saint-Andre wrote:
>>>> On 2/23/11 3:07 PM, Roy T. Fielding wrote:
>>>>=20
>>>> <snip/>
>>>>=20
>>>>> Therefore, I would like you to change the ABNF so that it
>>>>> reflects the reality of (Set-)Cookie usage on the Internet,
>>>>> for the same reason that you have insisted the algorithm
>>>>> for user agent parsing reflects reality.  Changing the ABNF
>>>>> to include base64 does not do that -- it is just another
>>>>> fantasy production that differs from all prior specs of
>>>>> the cookie algorithm.  Changing it to
>>>>>=20
>>>>> cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>>>>>=20
>>>>> or just the minimum
>>>>>=20
>>>>> cookie-value      =3D %x21-2B / %x2D-3A / %x3C-7E
>>>>=20
>>>> Hi Roy,
>>>>=20
>>>> The latter seems fine, and in conversation with Adam he indicated =
to me
>>>> that he would not object to such a change.
>>>=20
>>> Okay by me.
>>=20
>> One nit: I would exclude %x22 because there are interoperability
>> problems with cookie-values that contain %x22.
>=20
> So:
>=20
> cookie-value    =3D %x21 / %x23-2B / %x2D-3A / %x3C-7E
>=20
> If there are no objections, I'll add an RFC Editor note to that =
effect.

There have already been objections -- that is what started this thread.

%x22 is DQUOTE.  I am not aware of any interoperability concerns
with the use of DQUOTE in opaque cookie values, though I can
understand why they might be a concern.  However, use of them as
a quoted-string value (where browsers store the DQUOTEs as more
opaque data) is extremely common because the past two RFCs defined
the value as token / quoted-string.

I just noticed a grammar bug in my suggestion. It should have been

  cookie-value      =3D *( %x21-2B / %x2D-3A / %x3C-7E )

If we would like to limit the use of DQUOTE to how it was limited
in prior RFCs (matching outer pair), then I suggest

  cookie-value      =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
  cookie-octet      =3D %x21 / %x23-2B / %x2D-3A / %x3C-7E

since that does cover all current usage that I am aware of and
doesn't allow for odd usages of DQUOTE that might be misinterpreted
by parsers that did not implement the Netscape spec but did
implement one of the RFCs.

....Roy


From SRS0=JfYxFF=VV=lebeausoftware.org=remy@srs.bis.na.blackberry.com  Thu Feb 24 13:45:38 2011
Return-Path: <SRS0=JfYxFF=VV=lebeausoftware.org=remy@srs.bis.na.blackberry.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 5F14A3A683F for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:45:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.62
X-Spam-Level: 
X-Spam-Status: No, score=-4.62 tagged_above=-999 required=5 tests=[AWL=0.226,  BAYES_00=-2.599, MIME_BASE64_TEXT=1.753, RCVD_IN_DNSWL_MED=-4]
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 5J68RGHUSBXr for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:45:37 -0800 (PST)
Received: from smtp02.bis.na.blackberry.com (smtp02.bis.na.blackberry.com [216.9.248.49]) by core3.amsl.com (Postfix) with ESMTP id 394E73A6807 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:45:36 -0800 (PST)
Received: from bda933.bisx.prod.on.blackberry (bda933.bisx.prod.on.blackberry [172.20.220.96]) by srs.bis.na.blackberry.com (8.13.7 TEAMON/8.13.7) with ESMTP id p1OLkLH1003269; Thu, 24 Feb 2011 21:46:21 GMT
Received: from bda933.bisx.prod.on.blackberry (localhost.localdomain [127.0.0.1]) by bda933.bisx.prod.on.blackberry (8.13.7 TEAMON/8.13.7) with ESMTP id p1OLkIkg009433; Thu, 24 Feb 2011 21:46:18 GMT
X-rim-org-msg-ref-id: 552831854
Message-ID: <552831854-1298583977-cardhu_decombobulator_blackberry.rim.net-407773613-@bda461.bisx.prod.on.blackberry>
Content-Transfer-Encoding: base64
X-Priority: Normal
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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>	<1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>	<4D6590F4.6010505@stpeter.im>	<94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com><AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com><4D66C718.3000300@stpeter.im><1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.com>
In-Reply-To: <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.com>
Sensitivity: Normal
Importance: Normal
To: "Roy T. Fielding" <fielding@gbiv.com>, "Peter Saint-Andre" <stpeter@stpeter.im>
From: "Remy Lebeau" <remy@lebeausoftware.org>
Date: Thu, 24 Feb 2011 21:46:14 +0000
Content-Type: text/plain
MIME-Version: 1.0
Cc: iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: remy@lebeausoftware.org
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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2Vzbid0IGFsbG93IGZvciBvZGQgdXNhZ2Vz
IG9mIERRVU9URSB0aGF0IG1pZ2h0IGJlIG1pc2ludGVycHJldGVkDQpieSBwYXJzZXJzIHRoYXQg
ZGlkIG5vdCBpbXBsZW1lbnQgdGhlIE5ldHNjYXBlIHNwZWMgYnV0IGRpZA0KaW1wbGVtZW50IG9u
ZSBvZiB0aGUgUkZDcy4NCg0KLi4uLlJveQ0KDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fXw0KaHR0cC1zdGF0ZSBtYWlsaW5nIGxpc3QNCmh0dHAtc3RhdGVA
aWV0Zi5vcmcNCmh0dHBzOi8vd3d3LmlldGYub3JnL21haWxtYW4vbGlzdGluZm8vaHR0cC1zdGF0
ZQ0K


From ietf@adambarth.com  Thu Feb 24 13:50:28 2011
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 3679F3A680D for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:50:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.823
X-Spam-Level: 
X-Spam-Status: No, score=-2.823 tagged_above=-999 required=5 tests=[AWL=0.154,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 m-S3bNIWAkHe for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 13:50:27 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by core3.amsl.com (Postfix) with ESMTP id 9A1C33A6807 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:50:26 -0800 (PST)
Received: by iyj8 with SMTP id 8so616097iyj.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:51:17 -0800 (PST)
Received: by 10.231.169.74 with SMTP id x10mr2261441iby.26.1298584276973; Thu, 24 Feb 2011 13:51:16 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id d21sm8787618ibg.9.2011.02.24.13.51.15 (version=SSLv3 cipher=OTHER); Thu, 24 Feb 2011 13:51:16 -0800 (PST)
Received: by iyj8 with SMTP id 8so616069iyj.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 13:51:15 -0800 (PST)
Received: by 10.231.180.30 with SMTP id bs30mr1691718ibb.171.1298584275083; Thu, 24 Feb 2011 13:51:15 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.40.7 with HTTP; Thu, 24 Feb 2011 13:50:44 -0800 (PST)
In-Reply-To: <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im> <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.com>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 24 Feb 2011 13:50:44 -0800
Message-ID: <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 21:50:28 -0000

On Thu, Feb 24, 2011 at 1:31 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 24, 2011, at 1:01 PM, Peter Saint-Andre wrote:
>> On 2/23/11 10:16 PM, Adam Barth wrote:
>>> On Wed, Feb 23, 2011 at 5:01 PM, Roy T. Fielding <fielding@gbiv.com> wr=
ote:
>>>> On Feb 23, 2011, at 2:57 PM, Peter Saint-Andre wrote:
>>>>> On 2/23/11 3:07 PM, Roy T. Fielding wrote:
>>>>>
>>>>> <snip/>
>>>>>
>>>>>> Therefore, I would like you to change the ABNF so that it
>>>>>> reflects the reality of (Set-)Cookie usage on the Internet,
>>>>>> for the same reason that you have insisted the algorithm
>>>>>> for user agent parsing reflects reality. =A0Changing the ABNF
>>>>>> to include base64 does not do that -- it is just another
>>>>>> fantasy production that differs from all prior specs of
>>>>>> the cookie algorithm. =A0Changing it to
>>>>>>
>>>>>> cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E / %x80-FF
>>>>>>
>>>>>> or just the minimum
>>>>>>
>>>>>> cookie-value =A0 =A0 =A0=3D %x21-2B / %x2D-3A / %x3C-7E
>>>>>
>>>>> Hi Roy,
>>>>>
>>>>> The latter seems fine, and in conversation with Adam he indicated to =
me
>>>>> that he would not object to such a change.
>>>>
>>>> Okay by me.
>>>
>>> One nit: I would exclude %x22 because there are interoperability
>>> problems with cookie-values that contain %x22.
>>
>> So:
>>
>> cookie-value =A0 =A0=3D %x21 / %x23-2B / %x2D-3A / %x3C-7E
>>
>> If there are no objections, I'll add an RFC Editor note to that effect.
>
> There have already been objections -- that is what started this thread.
>
> %x22 is DQUOTE. =A0I am not aware of any interoperability concerns
> with the use of DQUOTE in opaque cookie values, though I can
> understand why they might be a concern. =A0However, use of them as
> a quoted-string value (where browsers store the DQUOTEs as more
> opaque data) is extremely common because the past two RFCs defined
> the value as token / quoted-string.
>
> I just noticed a grammar bug in my suggestion. It should have been
>
> =A0cookie-value =A0 =A0 =A0=3D *( %x21-2B / %x2D-3A / %x3C-7E )
>
> If we would like to limit the use of DQUOTE to how it was limited
> in prior RFCs (matching outer pair), then I suggest
>
> =A0cookie-value =A0 =A0 =A0=3D *cookie-octet / ( DQUOTE *cookie-octet DQU=
OTE )
> =A0cookie-octet =A0 =A0 =A0=3D %x21 / %x23-2B / %x2D-3A / %x3C-7E
>
> since that does cover all current usage that I am aware of and
> doesn't allow for odd usages of DQUOTE that might be misinterpreted
> by parsers that did not implement the Netscape spec but did
> implement one of the RFCs.

DQUOTE is a cargo cult.  Matching DQUOTEs, as above, are less
problematic although they do have interoperability problems.  For
example, some user agents will incorrectly parse

Set-Cookie: foo=3D"bar\"; Secure

(allowed by the grammar above) and will not interpret this header as
containing a Secure cookie.  If you insist on DQUOTE, we'll probably
be better off excluding %x5C from cookie-octet.

On Thu, Feb 24, 2011 at 1:46 PM, Remy Lebeau <remy@lebeausoftware.org> wrot=
e:
> My original problem with DQUOTE handling, and is still a concern for me, =
is that the current draft does not allow the use of DQUOTE around attribute=
 values at all, let alone around cookie values. DQUOTE around attribute val=
ues is common to see because it is part of RFC 2109, and it cannot be treat=
ed as opaque data like it can in cookie values. The grammer rules for parsi=
ng attributes must allow for recognizing and removing DQUOTE when extractin=
g attribute values.

Based on data about how cookies are used on the Internet and studying
the behavior of existing user agents, we need only tolerate DQUOTE in
the Expires attribute, which the current draft does.  In no case is it
advantageous for a server to send DQUOTE.

Adam

From fielding@gbiv.com  Thu Feb 24 14:21:11 2011
Return-Path: <fielding@gbiv.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 07EB73A685A for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:21:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.599
X-Spam-Level: 
X-Spam-Status: No, score=-103.599 tagged_above=-999 required=5 tests=[AWL=-1.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 rRQl6B4xL9ge for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:21:08 -0800 (PST)
Received: from homiemail-a31.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by core3.amsl.com (Postfix) with ESMTP id E6DF93A6826 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:21:08 -0800 (PST)
Received: from homiemail-a31.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTP id 68172202044; Thu, 24 Feb 2011 14:21:59 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to; q=dns; s=gbiv.com; b=DQyEcmN9Bv7GFntb NHI2RV0N/ayyJjLFBYcCxl2c2pAu4ZpBcU9s1Qe2+W9eiGj7pzGwcjzeul8MUJvG Hyh3MiuEnQvR2vys7Hql934b2+J8t4npLEF/st079zHQSXbCXKY7l4e9b01wDqKu 9uueodXJpSBn7qG3MMel2cZF2FI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=subject :mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=WtNjSXpHidUOOF1a44GwmIywlj8=; b=x49lE0EEadvYev1Bs1j7KxTP/rm5 3lg4/butnDPw+wLUz8rmuBNhfXwVblDEUC+oCfcj/9hs2z2phdyknRZufMr8/clw fTmIGVfxuV1aIz2Lb1mAPrQhUIT8Ud/GMzPZ1cLoWK4pdgwd6cvoxAL6ovJahJ8Z XsniD7LMcQtstPE=
Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a31.g.dreamhost.com (Postfix) with ESMTPSA id BC42A202043;  Thu, 24 Feb 2011 14:21:58 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com>
Date: Thu, 24 Feb 2011 14:21:58 -0800
Content-Transfer-Encoding: 7bit
Message-Id: <D2187615-4E0C-4C3B-B5C7-A0A8CCD9FA0F@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im> <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@ gbiv.com> <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com>
To: Adam Barth <ietf@adambarth.com>
X-Mailer: Apple Mail (2.1082)
Cc: http-state State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 22:21:11 -0000

On Feb 24, 2011, at 1:50 PM, Adam Barth wrote:
> On Thu, Feb 24, 2011 at 1:31 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
>> If we would like to limit the use of DQUOTE to how it was limited
>> in prior RFCs (matching outer pair), then I suggest
>> 
>>  cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
>>  cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-7E
>> 
>> since that does cover all current usage that I am aware of and
>> doesn't allow for odd usages of DQUOTE that might be misinterpreted
>> by parsers that did not implement the Netscape spec but did
>> implement one of the RFCs.
> 
> DQUOTE is a cargo cult.  Matching DQUOTEs, as above, are less
> problematic although they do have interoperability problems.  For
> example, some user agents will incorrectly parse
> 
> Set-Cookie: foo="bar\"; Secure
> 
> (allowed by the grammar above) and will not interpret this header as
> containing a Secure cookie.  If you insist on DQUOTE, we'll probably
> be better off excluding %x5C from cookie-octet.

Right, that's because the RFCs allowed backslash quoting by referring
to the quoted-string production of HTTP.  Given the choice, I'd rather
lose backslash than DQUOTE.  I haven't seen any Windows pathnames
included in cookie values and sending such data would be unwise.
Excluding %x5C should be okay.

 cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
 cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
                   ; ASCII characters excluding CTLs, whitespace,
                   ; DQUOTE, comma, semicolon, and backslash

....Roy

From ietf@adambarth.com  Thu Feb 24 14:29:05 2011
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 64FE63A6808 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:29:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.829
X-Spam-Level: 
X-Spam-Status: No, score=-2.829 tagged_above=-999 required=5 tests=[AWL=0.148,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 ex0nCLqZclE8 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:29:03 -0800 (PST)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by core3.amsl.com (Postfix) with ESMTP id 185913A687A for <http-state@ietf.org>; Thu, 24 Feb 2011 14:29:02 -0800 (PST)
Received: by wyb42 with SMTP id 42so1114533wyb.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:29:53 -0800 (PST)
Received: by 10.227.147.14 with SMTP id j14mr1380568wbv.98.1298586593178; Thu, 24 Feb 2011 14:29:53 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id w25sm1188wbd.11.2011.02.24.14.29.51 (version=SSLv3 cipher=OTHER); Thu, 24 Feb 2011 14:29:52 -0800 (PST)
Received: by iyj8 with SMTP id 8so634801iyj.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:29:50 -0800 (PST)
Received: by 10.231.40.1 with SMTP id i1mr2298225ibe.71.1298586590094; Thu, 24 Feb 2011 14:29:50 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.40.7 with HTTP; Thu, 24 Feb 2011 14:29:20 -0800 (PST)
In-Reply-To: <D2187615-4E0C-4C3B-B5C7-A0A8CCD9FA0F@gbiv.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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im> <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com> <D2187615-4E0C-4C3B-B5C7-A0A8CCD9FA0F@gbiv.com>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 24 Feb 2011 14:29:20 -0800
Message-ID: <AANLkTimSTYBD7Qx9G-hS7fSFGWj3_s6JJiih4ZXLDmDC@mail.gmail.com>
To: "Roy T. Fielding" <fielding@gbiv.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: http-state State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 22:29:05 -0000

On Thu, Feb 24, 2011 at 2:21 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
> On Feb 24, 2011, at 1:50 PM, Adam Barth wrote:
>> On Thu, Feb 24, 2011 at 1:31 PM, Roy T. Fielding <fielding@gbiv.com> wro=
te:
>>> If we would like to limit the use of DQUOTE to how it was limited
>>> in prior RFCs (matching outer pair), then I suggest
>>>
>>> =A0cookie-value =A0 =A0 =A0=3D *cookie-octet / ( DQUOTE *cookie-octet D=
QUOTE )
>>> =A0cookie-octet =A0 =A0 =A0=3D %x21 / %x23-2B / %x2D-3A / %x3C-7E
>>>
>>> since that does cover all current usage that I am aware of and
>>> doesn't allow for odd usages of DQUOTE that might be misinterpreted
>>> by parsers that did not implement the Netscape spec but did
>>> implement one of the RFCs.
>>
>> DQUOTE is a cargo cult. =A0Matching DQUOTEs, as above, are less
>> problematic although they do have interoperability problems. =A0For
>> example, some user agents will incorrectly parse
>>
>> Set-Cookie: foo=3D"bar\"; Secure
>>
>> (allowed by the grammar above) and will not interpret this header as
>> containing a Secure cookie. =A0If you insist on DQUOTE, we'll probably
>> be better off excluding %x5C from cookie-octet.
>
> Right, that's because the RFCs allowed backslash quoting by referring
> to the quoted-string production of HTTP. =A0Given the choice, I'd rather
> lose backslash than DQUOTE. =A0I haven't seen any Windows pathnames
> included in cookie values and sending such data would be unwise.
> Excluding %x5C should be okay.
>
> =A0cookie-value =A0 =A0 =A0=3D *cookie-octet / ( DQUOTE *cookie-octet DQU=
OTE )
> =A0cookie-octet =A0 =A0 =A0=3D %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-=
7E
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; ASCII characters excluding CTLs, wh=
itespace,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; DQUOTE, comma, semicolon, and backs=
lash

Works for me.  Thanks Roy.

Adam

From dan.winship@gmail.com  Thu Feb 24 14:30:25 2011
Return-Path: <dan.winship@gmail.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 8E1703A680D for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:30:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.677
X-Spam-Level: 
X-Spam-Status: No, score=-1.677 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_MISMATCH_ORG=0.611, HOST_MISMATCH_COM=0.311]
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 WIQpnSn+GanK for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:30:24 -0800 (PST)
Received: from mysterion.org (li168-117.members.linode.com [173.230.128.117]) by core3.amsl.com (Postfix) with ESMTP id 860CC3A6808 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:30:24 -0800 (PST)
Received: from desktop.home.mysterion.org (c-76-97-71-164.hsd1.ga.comcast.net [76.97.71.164]) by mysterion.org (Postfix) with ESMTPSA id EE0D934E5D; Thu, 24 Feb 2011 17:31:14 -0500 (EST)
Message-ID: <4D66DC31.1020200@gmail.com>
Date: Thu, 24 Feb 2011 17:31:13 -0500
From: Dan Winship <dan.winship@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net>	<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>	<AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com>	<4D5AEE94.6010303@gmx.de>	<AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com>	<DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com>	<AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com>	<AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com>	<1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com>	<4D6590F4.6010505@stpeter.im>	<94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com>	<AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com>	<4D66C718.3000300@stpeter.im>	<1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.com> <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com>
In-Reply-To: <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Cc: "Roy T. Fielding" <fielding@gbiv.com>, iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 22:30:25 -0000

On 02/24/2011 04:50 PM, Adam Barth wrote:
> DQUOTE is a cargo cult.  Matching DQUOTEs, as above, are less
> problematic although they do have interoperability problems.  For
> example, some user agents will incorrectly parse
> 
> Set-Cookie: foo="bar\"; Secure
> 
> (allowed by the grammar above) and will not interpret this header as
> containing a Secure cookie.  If you insist on DQUOTE, we'll probably
> be better off excluding %x5C from cookie-octet.

I currently have some cookies with \" in them.

Rather than trying to deal with this in the grammar, we could handle it
like Max-Age, and just add "WARNING: If the cookie-value starts with a
DQUOTE, some existing user agents will require it to be a valid
quoted-string."

-- Dan

From ietf@adambarth.com  Thu Feb 24 14:34:08 2011
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 4B0D43A6867 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:34:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.834
X-Spam-Level: 
X-Spam-Status: No, score=-2.834 tagged_above=-999 required=5 tests=[AWL=0.143,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 EOpUSM-A-g4U for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:34:07 -0800 (PST)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id 198F63A67F1 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:34:07 -0800 (PST)
Received: by iwl42 with SMTP id 42so653069iwl.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:34:57 -0800 (PST)
Received: by 10.231.39.71 with SMTP id f7mr2250522ibe.182.1298586896901; Thu, 24 Feb 2011 14:34:56 -0800 (PST)
Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx.google.com with ESMTPS id gy41sm8827038ibb.17.2011.02.24.14.34.55 (version=SSLv3 cipher=OTHER); Thu, 24 Feb 2011 14:34:55 -0800 (PST)
Received: by iyj8 with SMTP id 8so637043iyj.31 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:34:55 -0800 (PST)
Received: by 10.231.180.30 with SMTP id bs30mr1759302ibb.171.1298586895077; Thu, 24 Feb 2011 14:34:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.231.40.7 with HTTP; Thu, 24 Feb 2011 14:34:25 -0800 (PST)
In-Reply-To: <4D66DC31.1020200@gmail.com>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net> <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> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im> <1CE31B7F-5D95-4CFE-B9A1-FBCC9461E472@gbiv.com> <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com> <4D66DC31.1020200@gmail.com>
From: Adam Barth <ietf@adambarth.com>
Date: Thu, 24 Feb 2011 14:34:25 -0800
Message-ID: <AANLkTikejL7TRYJVkrCxMHe7SSZD5caLKt+bJwnK1yE+@mail.gmail.com>
To: Dan Winship <dan.winship@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: "Roy T. Fielding" <fielding@gbiv.com>, iesg@iesg.org, http-state <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 22:34:08 -0000

On Thu, Feb 24, 2011 at 2:31 PM, Dan Winship <dan.winship@gmail.com> wrote:
> On 02/24/2011 04:50 PM, Adam Barth wrote:
>> DQUOTE is a cargo cult. =A0Matching DQUOTEs, as above, are less
>> problematic although they do have interoperability problems. =A0For
>> example, some user agents will incorrectly parse
>>
>> Set-Cookie: foo=3D"bar\"; Secure
>>
>> (allowed by the grammar above) and will not interpret this header as
>> containing a Secure cookie. =A0If you insist on DQUOTE, we'll probably
>> be better off excluding %x5C from cookie-octet.
>
> I currently have some cookies with \" in them.
>
> Rather than trying to deal with this in the grammar, we could handle it
> like Max-Age, and just add "WARNING: If the cookie-value starts with a
> DQUOTE, some existing user agents will require it to be a valid
> quoted-string."

Those cookies will continue to work fine in user agents that follow
the spec.  However, we shouldn't recommend that servers send those
sorts of cookie values.  They're just causing themselves
interoperability problems.

Adam

From stpeter@stpeter.im  Thu Feb 24 14:40:48 2011
Return-Path: <stpeter@stpeter.im>
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 E0F0B3A6867 for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:40:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.636
X-Spam-Level: 
X-Spam-Status: No, score=-102.636 tagged_above=-999 required=5 tests=[AWL=-0.037, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 m3RBPvEuFLav for <http-state@core3.amsl.com>; Thu, 24 Feb 2011 14:40:47 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8E64C3A67F1 for <http-state@ietf.org>; Thu, 24 Feb 2011 14:40:47 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id BA0404011B; Thu, 24 Feb 2011 16:00:29 -0700 (MST)
Message-ID: <4D66DEA0.8050704@stpeter.im>
Date: Thu, 24 Feb 2011 15:41:36 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: Adam Barth <ietf@adambarth.com>
References: <20110204184735.26023.qmail@mm01.prod.mesa1.secureserver.net> <49225418-A1AF-4299-8C4F-2E608D34265D@gbiv.com> <AANLkTimrJF3LFR4t4j=U2L33kFh+wf-R=sjjwexcmyPi@mail.gmail.com> <26240DE2-4DD3-4863-81B1-635D34BA4AE4@gbiv.com> <AANLkTikzB=VORtn7xiG2JY8ymTjk4epC9huZTC-s0nzq@mail.gmail.com> <4D5AEE94.6010303@gmx.de> <AANLkTimkmZ99qDcXB6=-PGtXq6WQ7+RSreRwsBAHryEj@mail.gmail.com> <DA7A626A-9613-4A49-8A46-8096F7F465B4@gbiv.com> <AANLkTi=aX26NgDx3J0zk6a6H-Fg-9hyuBhfwvVW5nBiH@mail.gmail.com> <AANLkTinnySHEXvaQSxoUAKNaPWThDWdJwnhvCdVfa5Vr@mail.gmail.com> <1E7DE6DF-864A-48AF-B9A3-698DEF4B3B2D@gbiv.com> <4D6590F4.6010505@stpeter.im> <94DA5CF6-88AB-43BD-99AE-921BCA98C7A3@gbiv.com> <AANLkTikxOBCgiAwvg3z2DwyHtJXhTK1=6ipTo16csKr9@mail.gmail.com> <4D66C718.3000300@stpeter.im> <AANLkTim18Lu-_8+OB_oXyRK_x6aPV++m2=ZgnahNSLvK@mail.gmail.com> <D2187615-4E0C-4C3B-B5C7-A0A8CCD9FA0F@gbiv.com> <AANLkTimSTYBD7Qx9G-hS7fSFGWj3_s6JJiih4ZXLDmDC@mail.gmail.com>
In-Reply-To: <AANLkTimSTYBD7Qx9G-hS7fSFGWj3_s6JJiih4ZXLDmDC@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms060308070107030003010000"
Cc: "Roy T. Fielding" <fielding@gbiv.com>, http-state State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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, 24 Feb 2011 22:40:49 -0000

This is a cryptographically signed message in MIME format.

--------------ms060308070107030003010000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/24/11 3:29 PM, Adam Barth wrote:
> On Thu, Feb 24, 2011 at 2:21 PM, Roy T. Fielding <fielding@gbiv.com> wr=
ote:
>> On Feb 24, 2011, at 1:50 PM, Adam Barth wrote:
>>> On Thu, Feb 24, 2011 at 1:31 PM, Roy T. Fielding <fielding@gbiv.com> =
wrote:
>>>> If we would like to limit the use of DQUOTE to how it was limited
>>>> in prior RFCs (matching outer pair), then I suggest
>>>>
>>>>  cookie-value      =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE=
 )
>>>>  cookie-octet      =3D %x21 / %x23-2B / %x2D-3A / %x3C-7E
>>>>
>>>> since that does cover all current usage that I am aware of and
>>>> doesn't allow for odd usages of DQUOTE that might be misinterpreted
>>>> by parsers that did not implement the Netscape spec but did
>>>> implement one of the RFCs.
>>>
>>> DQUOTE is a cargo cult.  Matching DQUOTEs, as above, are less
>>> problematic although they do have interoperability problems.  For
>>> example, some user agents will incorrectly parse
>>>
>>> Set-Cookie: foo=3D"bar\"; Secure
>>>
>>> (allowed by the grammar above) and will not interpret this header as
>>> containing a Secure cookie.  If you insist on DQUOTE, we'll probably
>>> be better off excluding %x5C from cookie-octet.
>>
>> Right, that's because the RFCs allowed backslash quoting by referring
>> to the quoted-string production of HTTP.  Given the choice, I'd rather=

>> lose backslash than DQUOTE.  I haven't seen any Windows pathnames
>> included in cookie values and sending such data would be unwise.
>> Excluding %x5C should be okay.
>>
>>  cookie-value      =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )=

>>  cookie-octet      =3D %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
>>                   ; ASCII characters excluding CTLs, whitespace,
>>                   ; DQUOTE, comma, semicolon, and backslash
>=20
> Works for me.  Thanks Roy.

In the datatracker, I've updated the RFC Editor note accordingly.

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms060308070107030003010000
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDVQQ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hkiG
9w0BAQEFAASCAQACrGzo5/dSY7EwmT3OZiuoBa/U9QpkGkZYEgu6ZvfTpkqKN1vaFbAEWwJq
rrIdtdGbSyfg9W6JPdAT8QQCL0k4vyGejVnqNFE1cTltPQdiV6XuTkSnDlf3mwRXsER74vUp
Lm6/nYiDn4dZaZ9COrx2aSUlmvCjY5fSogzvEmAXRlzxTJmLACHXsNW8bSk/hi4Fof/k03b6
eel/mEb0OCWU4WF8LI6BTZSmG7BoL8P+N6HRoPdnGrxMQ/ciMZGNu8yyDSy143SC71NRogQQ
HA5kqe6RrCwW09RRLGoZOVFh2eg1iPzNtrKm2Xu0VDAN9evcO9fEnR3huNT6sRJ3c4pAAAAA
AAAA
--------------ms060308070107030003010000--

From tho@koanlogic.com  Fri Feb 25 00:07:38 2011
Return-Path: <tho@koanlogic.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 2FEFA3A6936 for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 00:07:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.501
X-Spam-Level: ***
X-Spam-Status: No, score=3.501 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_COM=0.553,  IP_NOT_FRIENDLY=0.334, J_CHICKENPOX_43=0.6, MIME_QP_LONG_LINE=1.396, RDNS_NONE=0.1, SARE_RECV_IP_069060096=1.666]
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 9UciwOPiAxNU for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 00:07:37 -0800 (PST)
Received: from gonzo.koanlogic.com (unknown [69.60.118.166]) by core3.amsl.com (Postfix) with ESMTP id 130213A681C for <http-state@ietf.org>; Fri, 25 Feb 2011 00:07:36 -0800 (PST)
Received: from [85.20.220.234] (port=61926 helo=[192.168.1.17]) by sp2844.serverpronto.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.50) id 1PssiY-0003Ks-Oj; Fri, 25 Feb 2011 03:08:20 -0500
From: tho <tho@koanlogic.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Fri, 25 Feb 2011 09:07:11 +0100
Message-Id: <54DFC6B8-7DE9-4976-9AAA-6A36634CA6A1@koanlogic.com>
To: http-state@ietf.org
Mime-Version: 1.0 (Apple Message framework v1082)
X-Mailer: Apple Mail (2.1082)
X-SA-Exim-Connect-IP: 85.20.220.234
X-SA-Exim-Mail-From: tho@koanlogic.com
X-Spam-DCC: : 
X-Spam-Pyzor: Reported 0 times.
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on sp2844.serverpronto.com)
Cc: Todd A Ouska <todd@yassl.com>, Lorenzo Cavallaro <lorenzo.cavallaro@gmail.com>, Steven Dorigotti <stewy@koanlogic.com>, tat@koanlogic.com, David Wagner <daw@cs.berkeley.edu>
Subject: [http-state] SCS and new cookie-value encoding
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: Fri, 25 Feb 2011 08:07:38 -0000

Hello all,

I greatly appreciate the newly proposed cookie-value encoding, as it can =
make a slimmer SCS.

We can now pack up the five fields together in one only cookie by using =
a non-base64 char (e.g. '|') as field separator, like this:

=
ANY_COOKIE_NAME=3D430=3D|MTI5ODU1ODgwNA=3D=3D|dGlk|L5aJeXxqzD2pJ062ztdc4w=3D=
=3D|xFe9Rg+0wqc9KzLFbj62XbXQTLg=3D

which is a much better solution in terms of:
- protocol and browser friendliness;
- API simplification;
- free choice of cookie naming;
at nearly no cost, except a small reduction of space for state data =
(still about 3.5KB.)

In the meantime we have had some really valuable feedback from David =
Wagner for fixing the HMAC computation which was buggy in the published =
version of the draft.

This is to say that the -00 will soon be made obsolete by a new version =
which will include such changes and more precise algorithm description =
based on the implementation experience we've gained so far.

In the meanwhile I'm asking the http-state WG the following question:=20
is the whole "authenticated/encrypted cookie" matter worth being adopted =
as a working item by the group or not ?

My biased opinion is, of course, yes :) at least for the following =
reasons:
1) there exist real-world use cases where such technique is the only =
available option (e.g. embedded web servers on severely constrained =
hardware);
2) there exist real-world use cases where such technique would be a =
valuable option compared to others (e.g. multi instantiated web apps =
that would otherwise need a way to synchronize the application state =
information);
3) anyone facing the same problem would need to reinvent the same wheel, =
perhaps incorrectly from a cryptographic standpoint (see our HMAC =
computation bug).
4) there is one important shift in cookie semantics when the cookie =
producer is not the owner of the cookie bits that is worth making =
explicit to implementers/users of this facility (see section 7.2.2. of =
SCS-00);
5) there are security advantages in using SCS over plain cookies at a =
quite negligible cost -- just some fast symmetric key encryption and =
HMAC'ing -- which would make SCS an ad-interim fix for some of the =
cookie model vulnerabilities (e.g. session brute forcing).


Ok I.m here, let me know :)
Bye, t.=

From tho@koanlogic.com  Fri Feb 25 01:08:08 2011
Return-Path: <tho@koanlogic.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 A07B03A6944 for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 01:08:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.505
X-Spam-Level: **
X-Spam-Status: No, score=2.505 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_RELAY_NODNS=1.451, GB_AFFORDABLE=1, HELO_MISMATCH_COM=0.553, IP_NOT_FRIENDLY=0.334, RDNS_NONE=0.1, SARE_RECV_IP_069060096=1.666]
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 KwpUAkhM197L for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 01:08:07 -0800 (PST)
Received: from gonzo.koanlogic.com (unknown [69.60.118.166]) by core3.amsl.com (Postfix) with ESMTP id C11D03A6940 for <http-state@ietf.org>; Fri, 25 Feb 2011 01:08:07 -0800 (PST)
Received: from 89-96-153-157.ip13.fastwebnet.it ([89.96.153.157]:64448 helo=[192.168.72.164]) by sp2844.serverpronto.com with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.50) id 1PstfD-0003U2-6i; Fri, 25 Feb 2011 04:08:58 -0500
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=us-ascii
From: tho <tho@koanlogic.com>
In-Reply-To: <54DFC6B8-7DE9-4976-9AAA-6A36634CA6A1@koanlogic.com>
Date: Fri, 25 Feb 2011 10:08:00 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <FFA6BB19-BBE7-4BFA-891E-A3F7D7298E90@koanlogic.com>
References: <54DFC6B8-7DE9-4976-9AAA-6A36634CA6A1@koanlogic.com>
To: http-state@ietf.org
X-Mailer: Apple Mail (2.1082)
X-SA-Exim-Connect-IP: 89.96.153.157
X-SA-Exim-Mail-From: tho@koanlogic.com
X-Spam-DCC: : 
X-Spam-Pyzor: 
X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100)
X-SA-Exim-Scanned: Yes (on sp2844.serverpronto.com)
Cc: Todd A Ouska <todd@yassl.com>, tat@koanlogic.com, Steven Dorigotti <stewy@koanlogic.com>, Lorenzo Cavallaro <lorenzo.cavallaro@gmail.com>, David Wagner <daw@cs.berkeley.edu>
Subject: Re: [http-state] SCS and new cookie-value encoding
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: Fri, 25 Feb 2011 09:08:08 -0000

On Feb 25, 2011, at 9:07 AM, tho wrote:
> 1-5)

6) it incorporates the basic keyset management mechanisms natively, in a =
simple, affordable way.=

From Jeff.Hodges@KingsMountain.com  Fri Feb 25 09:21:02 2011
Return-Path: <Jeff.Hodges@KingsMountain.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 672BA3A6781 for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 09:21:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.349
X-Spam-Level: 
X-Spam-Status: No, score=-102.349 tagged_above=-999 required=5 tests=[AWL=-0.083, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, USER_IN_WHITELIST=-100]
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 dVFVgISS-fD9 for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 09:21:01 -0800 (PST)
Received: from oproxy2-pub.bluehost.com (oproxy2-pub.bluehost.com [67.222.39.60]) by core3.amsl.com (Postfix) with SMTP id 5DF263A65A5 for <http-state@ietf.org>; Fri, 25 Feb 2011 09:21:01 -0800 (PST)
Received: (qmail 26569 invoked by uid 0); 25 Feb 2011 17:21:54 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by oproxy2.bluehost.com with SMTP; 25 Feb 2011 17:21:54 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=vYKjqmsPRk4H9DvSDRQLRFQJY3QnnZMfjUlDs1gpIQCDPOJWMCTHG+9LMv8SqmJy8OL8Ut0v2XmXOexJ5J1dD1h82foJlwlYLPFe/hJY+arWZD8+repfYa3kj90K6Tv8;
Received: from outbound4.ebay.com ([216.113.168.128] helo=[10.244.136.88]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1Pt1MW-00053R-Ng for http-state@ietf.org; Fri, 25 Feb 2011 10:21:52 -0700
Message-ID: <4D67E530.6070102@KingsMountain.com>
Date: Fri, 25 Feb 2011 09:21:52 -0800
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: http-state State WG <http-state@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 216.113.168.128 authed with jeff.hodges+kingsmountain.com}
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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: Fri, 25 Feb 2011 17:21:02 -0000

 >>>  cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
 >>>  cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
 >>>                   ; ASCII characters excluding CTLs, whitespace,
 >>>                   ; DQUOTE, comma, semicolon, and backslash
 >>
 >> Works for me.  Thanks Roy.
 >
 > In the datatracker, I've updated the RFC Editor note accordingly.

great, thx all for sorting this out.

Also, I'm glad you've added the comment to the ABNF above, tho one might add..

s/ASCII/7-bit ASCII/

..or something similar to explicitly indicate exclusion of %x80-FF.

thx,

=JeffH



From julian.reschke@gmx.de  Fri Feb 25 09:27:25 2011
Return-Path: <julian.reschke@gmx.de>
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 EC2553A67B0 for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 09:27:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.026
X-Spam-Level: 
X-Spam-Status: No, score=-104.026 tagged_above=-999 required=5 tests=[AWL=-1.427, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 2MxsDCcrIOYM for <http-state@core3.amsl.com>; Fri, 25 Feb 2011 09:27:25 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by core3.amsl.com (Postfix) with SMTP id 9B71C3A67EB for <http-state@ietf.org>; Fri, 25 Feb 2011 09:27:24 -0800 (PST)
Received: (qmail invoked by alias); 25 Feb 2011 17:28:15 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.134]) [217.91.35.233] by mail.gmx.net (mp015) with SMTP; 25 Feb 2011 18:28:15 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19V8gN+msVV0mKpIfOX3fxL/wG1JCgvL4TTv3Jlyf +C5bG810yrIB7i
Message-ID: <4D67E6A8.50301@gmx.de>
Date: Fri, 25 Feb 2011 18:28:08 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
MIME-Version: 1.0
To: =JeffH <Jeff.Hodges@KingsMountain.com>
References: <4D67E530.6070102@KingsMountain.com>
In-Reply-To: <4D67E530.6070102@KingsMountain.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: http-state State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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: Fri, 25 Feb 2011 17:27:26 -0000

On 25.02.2011 18:21, =JeffH wrote:
>  >>> cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
>  >>> cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
>  >>> ; ASCII characters excluding CTLs, whitespace,
>  >>> ; DQUOTE, comma, semicolon, and backslash
>  >>
>  >> Works for me. Thanks Roy.
>  >
>  > In the datatracker, I've updated the RFC Editor note accordingly.
>
> great, thx all for sorting this out.
>
> Also, I'm glad you've added the comment to the ABNF above, tho one might
> add..
>
> s/ASCII/7-bit ASCII/
>
> ..or something similar to explicitly indicate exclusion of %x80-FF.

"US-ASCII", please.

From Jeff.Hodges@KingsMountain.com  Sun Feb 27 10:47:52 2011
Return-Path: <Jeff.Hodges@KingsMountain.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 980943A6A00 for <http-state@core3.amsl.com>; Sun, 27 Feb 2011 10:47:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.776
X-Spam-Level: 
X-Spam-Status: No, score=-100.776 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, IP_NOT_FRIENDLY=0.334, USER_IN_WHITELIST=-100]
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 E0PHMtuhgHNC for <http-state@core3.amsl.com>; Sun, 27 Feb 2011 10:47:51 -0800 (PST)
Received: from oproxy2-pub.bluehost.com (oproxy2-pub.bluehost.com [67.222.39.60]) by core3.amsl.com (Postfix) with SMTP id 8B11E3A67D6 for <http-state@ietf.org>; Sun, 27 Feb 2011 10:47:51 -0800 (PST)
Received: (qmail 30446 invoked by uid 0); 27 Feb 2011 18:48:49 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by oproxy2.bluehost.com with SMTP; 27 Feb 2011 18:48:49 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=FT85KZ91LNp6+LekSPWs5QHOLvtlUFH2I2p95sO4gGGwx2ayOj424C89uCQwTP9ToNkqrsFBo/9/1/otluzX7asCfkIm6Dtdxzx4kup/g9y9aRvRm9I1s/lP2s0BmahR;
Received: from c-24-4-122-173.hsd1.ca.comcast.net ([24.4.122.173] helo=[192.168.11.10]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1Ptlfl-0000o1-Eb for http-state@ietf.org; Sun, 27 Feb 2011 11:48:49 -0700
Message-ID: <4D6A9C8D.7090401@KingsMountain.com>
Date: Sun, 27 Feb 2011 10:48:45 -0800
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7
MIME-Version: 1.0
To: IETF HTTP State WG <http-state@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 24.4.122.173 authed with jeff.hodges+kingsmountain.com}
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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: Sun, 27 Feb 2011 18:47:52 -0000

Julian noted..
 >
 > On 25.02.2011 18:21, =JeffH wrote:
 >>  >>> cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
 >>  >>> cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
 >>  >>> ; ASCII characters excluding CTLs, whitespace,
 >>  >>> ; DQUOTE, comma, semicolon, and backslash
 >>  >>
 >>  >> Works for me. Thanks Roy.
 >>  >
 >>  > In the datatracker, I've updated the RFC Editor note accordingly.
 >>
 >> great, thx all for sorting this out.
 >>
 >> Also, I'm glad you've added the comment to the ABNF above, tho one might
 >> add..
 >>
 >> s/ASCII/7-bit ASCII/
 >>
 >> ..or something similar to explicitly indicate exclusion of %x80-FF.
 >
 > "US-ASCII", please.

doh, yes of course.

at this point I'm thinking we should add an RFC-Editor Note to the effect of 
adding an explicit normative reference to..

         US-ASCII. Coded Character Set - 7-Bit American Standard Code for
         Information Interchange. Standard ANSI X3.4-1986, ANSI, 1986.

We already use the term "US-ASCII" also in section 2.2 (of -cookie-22) but 
without citation.

=JeffH



From stpeter@stpeter.im  Mon Feb 28 10:57:36 2011
Return-Path: <stpeter@stpeter.im>
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 0F5A93A6B2E for <http-state@core3.amsl.com>; Mon, 28 Feb 2011 10:57:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.632
X-Spam-Level: 
X-Spam-Status: No, score=-102.632 tagged_above=-999 required=5 tests=[AWL=-0.033, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 AhBElrho9L-L for <http-state@core3.amsl.com>; Mon, 28 Feb 2011 10:57:34 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id BB8553A6A31 for <http-state@ietf.org>; Mon, 28 Feb 2011 10:57:34 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id AD254400F6; Mon, 28 Feb 2011 12:17:47 -0700 (MST)
Message-ID: <4D6BF059.2010909@stpeter.im>
Date: Mon, 28 Feb 2011 11:58:33 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: =JeffH <Jeff.Hodges@KingsMountain.com>
References: <4D6A9C8D.7090401@KingsMountain.com>
In-Reply-To: <4D6A9C8D.7090401@KingsMountain.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms000702050204020501070103"
Cc: IETF HTTP State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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: Mon, 28 Feb 2011 18:57:36 -0000

This is a cryptographically signed message in MIME format.

--------------ms000702050204020501070103
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/27/11 11:48 AM, =3DJeffH wrote:
> Julian noted..
>>
>> On 25.02.2011 18:21, =3DJeffH wrote:
>>>  >>> cookie-value =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )=

>>>  >>> cookie-octet =3D %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
>>>  >>> ; ASCII characters excluding CTLs, whitespace,
>>>  >>> ; DQUOTE, comma, semicolon, and backslash
>>>  >>
>>>  >> Works for me. Thanks Roy.
>>>  >
>>>  > In the datatracker, I've updated the RFC Editor note accordingly.
>>>
>>> great, thx all for sorting this out.
>>>
>>> Also, I'm glad you've added the comment to the ABNF above, tho one mi=
ght
>>> add..
>>>
>>> s/ASCII/7-bit ASCII/
>>>
>>> ..or something similar to explicitly indicate exclusion of %x80-FF.
>>
>> "US-ASCII", please.
>=20
> doh, yes of course.
>=20
> at this point I'm thinking we should add an RFC-Editor Note to the
> effect of adding an explicit normative reference to..
>=20
>         US-ASCII. Coded Character Set - 7-Bit American Standard Code fo=
r
>         Information Interchange. Standard ANSI X3.4-1986, ANSI, 1986.
>=20
> We already use the term "US-ASCII" also in section 2.2 (of -cookie-22)
> but without citation.

I agree with Julian: not an RFC Editor note (I really don't like those
because they aren't very transparent), but a revised I-D.

Here is XML for the citation:

<reference anchor=3D"US-ASCII">
<front>
<title>Coded Character Set - 7-bit American Standard Code for
Information Interchange</title>
<author>
<organization>American National Standards Institute</organization>
</author>
<date month=3D"" year=3D"1986" />
</front>
<seriesInfo name=3D"ANSI" value=3D"X3.4" />
</reference>

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms000702050204020501070103
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMD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ODA2BgNVBAMTL1N0YXJ0
Q29tIENsYXNzIDMgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgIAizANBgkqhkiG
9w0BAQEFAASCAQBZ8CnN0nWAqbKv+ZwbVPw4ixOIdT6EaHaS9nGxaZf+A9tnCgYUwj6hXPYI
X76xrJdllrfCMf6SWqDsOCV3yxjgoD6bw+W5wMHioPHiKjQKUz784jLJyL6eaLsX/aIWf0og
2arruj+X5WAByul56mRXw5ZS5nWipLBkQIhmF0YRrY5TxHw0lNgKR5sAbJpwEn2j7LvwDaAG
2iRhbGKQjVFUtrEPw6lhdxeL9ZHMdwLlJDRqaKCNK9rgAPiHh5TgY/jN0WM7h6C52ue+Ulx/
YWbWcUmkG1gdOVaub3E5ReJa/uGBAcqKfyhQn11rREN7MFc+/Suc1Df3kuHi9dmGkoFKAAAA
AAAA
--------------ms000702050204020501070103--

From stpeter@stpeter.im  Mon Feb 28 13:51:05 2011
Return-Path: <stpeter@stpeter.im>
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 7AD253A6CA2 for <http-state@core3.amsl.com>; Mon, 28 Feb 2011 13:51:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.63
X-Spam-Level: 
X-Spam-Status: No, score=-102.63 tagged_above=-999 required=5 tests=[AWL=-0.031, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 pKHiEYFj4dNA for <http-state@core3.amsl.com>; Mon, 28 Feb 2011 13:51:01 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id CA23B3A6A21 for <http-state@ietf.org>; Mon, 28 Feb 2011 13:51:00 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id E2F45400F6; Mon, 28 Feb 2011 15:11:14 -0700 (MST)
Message-ID: <4D6C1900.1050005@stpeter.im>
Date: Mon, 28 Feb 2011 14:52:00 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: =JeffH <Jeff.Hodges@KingsMountain.com>
References: <4D6A9C8D.7090401@KingsMountain.com> <4D6BF059.2010909@stpeter.im>
In-Reply-To: <4D6BF059.2010909@stpeter.im>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms040804080502070807050003"
Cc: IETF HTTP State WG <http-state@ietf.org>
Subject: Re: [http-state] parser rules of draft-ietf-httpstate-cookie-22
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: Mon, 28 Feb 2011 21:51:05 -0000

This is a cryptographically signed message in MIME format.

--------------ms040804080502070807050003
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2/28/11 11:58 AM, Peter Saint-Andre wrote:
> On 2/27/11 11:48 AM, =3DJeffH wrote:
>> Julian noted..
>>>
>>> On 25.02.2011 18:21, =3DJeffH wrote:
>>>>  >>> cookie-value =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE =
)
>>>>  >>> cookie-octet =3D %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
>>>>  >>> ; ASCII characters excluding CTLs, whitespace,
>>>>  >>> ; DQUOTE, comma, semicolon, and backslash
>>>>  >>
>>>>  >> Works for me. Thanks Roy.
>>>>  >
>>>>  > In the datatracker, I've updated the RFC Editor note accordingly.=

>>>>
>>>> great, thx all for sorting this out.
>>>>
>>>> Also, I'm glad you've added the comment to the ABNF above, tho one m=
ight
>>>> add..
>>>>
>>>> s/ASCII/7-bit ASCII/
>>>>
>>>> ..or something similar to explicitly indicate exclusion of %x80-FF.
>>>
>>> "US-ASCII", please.
>>
>> doh, yes of course.
>>
>> at this point I'm thinking we should add an RFC-Editor Note to the
>> effect of adding an explicit normative reference to..
>>
>>         US-ASCII. Coded Character Set - 7-Bit American Standard Code f=
or
>>         Information Interchange. Standard ANSI X3.4-1986, ANSI, 1986.
>>
>> We already use the term "US-ASCII" also in section 2.2 (of -cookie-22)=

>> but without citation.
>=20
> I agree with Julian: not an RFC Editor note (I really don't like those
> because they aren't very transparent), but a revised I-D.

The reason I don't particularly like RFC Editor notes is that they are
not very transparent (how many people watch the datatracker history?).
So here is some transparency for you...

The RFC Editor note currently on file in the datatracker is:

###

RFC Editor Note

   1. Please add the following sentence to the end of the Abstract:

      "This document obsoletes RFC 2395."

   2. In Section 4.1.1, please change:

      cookie-value     =3D token / *base64-character
      base64-character =3D ALPHA / DIGIT / "+" / "/" / "=3D"

   to:

      cookie-value     =3D *cookie-octet / ( DQUOTE *cookie-octet DQUOTE =
)
      cookie-octet     =3D %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
                       ; US-ASCII characters excluding CTLs,
                       ; whitespace DQUOTE, comma, semicolon,
                       ; and backslash

   3. In Section 2.2, please change both instances of:

      any US-ASCII character

   to:

      any [US-ASCII] character

   4. Please add the following reference:

      [US-ASCII] American National Standards Institute, "Coded
      Character Set - 7-bit American Standard Code for Information
      Interchange," ANSI X3.4, 1986.

###

Peter

--=20
Peter Saint-Andre
https://stpeter.im/




--------------ms040804080502070807050003
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIITzjCC
BjQwggQcoAMCAQICASMwDQYJKoZIhvcNAQELBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoT
DVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNp
Z25pbmcxKTAnBgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA3
MTAyNDIxMDMzM1oXDTE3MTAyNDIxMDMzM1owgYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1T
dGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0ZSBTaWdu
aW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAzIFByaW1hcnkgSW50ZXJtZWRpYXRlIENs
aWVudCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALmjSW4SPiDKlAinvVeL
ZOVfItiuP1aRHL530E7QUc9icCwL33+PH+Js1HAh8CgWFl34sOxx1FJyS/C4VLPRsqDfP72j
tzCVUAL0DAxZ7wgzQvFz7x61jGxfhYhqYb1+PPOLkYBbkRIrPMg3dLEdKmXIYJYXDH+mB/V/
jLo73/Kb7h/rNoNg/oHHSv5Jolyvp5IY2btfcTBfW/telEFj5rDTX2juTvZ3Qhf3XQX5ca3Q
7A10zrUV/cWJOJ7F5RltbEIaboZmX5JBUb3FhUiAdBotehAX6DbDOuYoJtVxmGof6GuVGcPo
98K4T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