Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#19585 closed Bug (fixed)

Unable to load cookie values as a dict

Reported by: Claude Paroz Owned by: nobody
Component: HTTP handling Version: dev
Severity: Release blocker Keywords: regression
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Starting from the unicode_literals patch, we lost the possibility to load a cookie value by passing a dict to the load() method, as allowed by the Python docs (http://docs.python.org/2/library/cookie.html#Cookie.BaseCookie.load).
We shouldn't inconditionally transform the rawdata parameter in a string.

Attachments (1)

19585-1.diff (1.3 KB ) - added by Claude Paroz 12 years ago.

Download all attachments as: .zip

Change History (5)

by Claude Paroz, 12 years ago

Attachment: 19585-1.diff added

comment:1 by Florian Apolloner, 12 years ago

Triage Stage: AcceptedReady for checkin

Looks good to me.

comment:2 by Claude Paroz <claude@…>, 12 years ago

Resolution: fixed
Status: newclosed

In f08e739bc2ba5d3530a806378087227728369464:

Fixed #19585 -- Fixed loading cookie value as a dict

This regression was introduced by the 'unicode_literals' patch.

comment:3 by Claude Paroz <claude@…>, 12 years ago

In 1d03ff06bbcc726c815f26f79067692019b2c71a:

[1.5.x] Fixed #19585 -- Fixed loading cookie value as a dict

This regression was introduced by the 'unicode_literals' patch.
Backport of f08e739bc2 from master.

comment:4 by Claude Paroz <claude@…>, 12 years ago

In 1d03ff06bbcc726c815f26f79067692019b2c71a:

[1.5.x] Fixed #19585 -- Fixed loading cookie value as a dict

This regression was introduced by the 'unicode_literals' patch.
Backport of f08e739bc2 from master.

Note: See TracTickets for help on using tickets.
Back to Top