Zope doesn't handle multiple cookies with the same id

Bug #143938 reported by dom_1
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Low
Unassigned

Bug Description

Zope stores cookies keyed by their id, but browsers can present two cookies with the same id, set at different paths:

from http://www.ietf.org/rfc/rfc2109.txt:

"If multiple cookies satisfy the criteria above, they are ordered in
   the Cookie header such that those with more specific Path attributes
   precede those with less specific. Ordering with respect to other
   attributes (e.g., Domain) is unspecified."

The first (i.e. most specific and therefore most relevant) cookie will be unavailable from Zope. This is a real problem when using cookie paths to manage multiple sessions with differing data depending on the locale.

Tags: bug zope
Revision history for this message
dom_1 (dom-1) wrote :

> The first (i.e. most specific and therefore most relevant) cookie will be
> unavailable from Zope. This is a real problem when using cookie paths to
> manage multiple sessions with differing data depending on the locale.

... that should probably read "...only the last (and therefore least relevant) cookie will be available from Zope" (!)

Revision history for this message
dom_1 (dom-1) wrote :

> = Comment - Entry #2 by dom_1 on Aug 1, 2007 12:03 am
>
> > The first (i.e. most specific and therefore most relevant) cookie will be
> > unavailable from Zope.
>
> ... that should probably read "...only the last (and therefore least
> relevant) cookie will be available from Zope" (!)

Sorry for the noise here - the above statements were incorrect - Zope does return the most relevant cookie, just not all cookies holding the same id. Consequently, this bug is far less problematic than first thought.

Revision history for this message
Andreas Jung (ajung) wrote :

Changes: submitter email, edited transcript, importance (medium => low)

Changed in zope2:
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.