[http-state] Cookie path and trailing "/"

Zhong Yu <zhong.j.yu@gmail.com> Tue, 02 April 2013 01:01 UTC

Return-Path: <zhong.j.yu@gmail.com>
X-Original-To: http-state@ietfa.amsl.com
Delivered-To: http-state@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DDF8711E811F for <http-state@ietfa.amsl.com>; Mon, 1 Apr 2013 18:01:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level:
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OgkB+lWnd2C4 for <http-state@ietfa.amsl.com>; Mon, 1 Apr 2013 18:01:44 -0700 (PDT)
Received: from mail-oa0-f48.google.com (mail-oa0-f48.google.com [209.85.219.48]) by ietfa.amsl.com (Postfix) with ESMTP id 64CDA11E80F8 for <http-state@ietf.org>; Mon, 1 Apr 2013 18:01:44 -0700 (PDT)
Received: by mail-oa0-f48.google.com with SMTP id j1so2486605oag.35 for <http-state@ietf.org>; Mon, 01 Apr 2013 18:01:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=M7n0pyfyE9jVHfjxejiq6iVcV8M5Z/fugMZlT9qNc2k=; b=WgPGSQQiGOjFBsKT8uAJ3q0kVQt3tchhrev48dzX6FYrNi4PY7SnqmPEhK0ARp5/b0 HBWirRmcsAeZB9akuYYgUCCd3BiatTnoCX4L0R7pDA0eur3M+OrhuNQGwOgWKPKiziQA laX5aDDyew3Gr9bxOWW+ZYUl3vnyHFzIAAQwJQyyXVWJ4Ck6UW+/nEpbhcoIHp5DKKnx tRsQ/TfV+ofJHXfO9CMuJyw3OjMDmVnOG2nsoC+NY+QYmI48MDoJyyOUxs0Gyq2TWkig cYN53028KodsDV1pFPrRF5YyZ0TbK4LMg+sKjpueM52te7FcVep647zY3LcFpO9ejGPs 17Ug==
MIME-Version: 1.0
X-Received: by 10.60.173.199 with SMTP id bm7mr3030992oec.108.1364864500423; Mon, 01 Apr 2013 18:01:40 -0700 (PDT)
Received: by 10.76.22.130 with HTTP; Mon, 1 Apr 2013 18:01:40 -0700 (PDT)
Date: Mon, 1 Apr 2013 20:01:40 -0500
Message-ID: <CACuKZqFvJ5avoyZ6KT_nhjF6LBm4xKH5xdGTufL_a_CTsXWYyw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: abarth@eecs.berkeley.edu, Barry Leiba <barryleiba@computer.org>, Pete Resnick <presnick@qti.qualcomm.com>, Jeff.Hodges@kingsmountain.com, http-state@ietf.org
Content-Type: multipart/alternative; boundary=089e01184bccb6e3c404d95647a4
Subject: [http-state] Cookie path and trailing "/"
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 02 Apr 2013 01:01:45 -0000

Hello cookie masters,

In the follow example of an http response, two cookies are set which
differs in the trailing slash of the Path attribute

    HTTP/1.1 200 OK
    Set-Cookie: n=v1; Path=/abc
    Set-Cookie: n=v2; Path=/abc/

According to RFC6265, these are two distinct cookies. And cookie#2 is not
applicable to request-path "/abc".

In my tests, IE and Chrome conform to these requirement. My question is,
are these requirement as intended? What was the reason behind?

On Firefox the two cookies are also treated as distinct cookies; however
Firefox erroneously sends cookie#2 for request-path "/abc". Should that be
considered a bug?

Thanks,
Zhong Yu