Changes by Berker Peksag :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Improper handling of duplicate cookies
___
Python tracker
Martin Melin added the comment:
FYI, this looks like the same issue as #1375011
--
nosy: +mmelin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7504
___
Terry J. Reedy added the comment:
Which also has patches.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7504
___
___
Python-bugs-list mailing
Terry J. Reedy tjre...@udel.edu added the comment:
Unless you can quote something in the manual that says or implies that
cookie.py should already have this feature, it looks like a feature request. Is
it possible to add a new unittest? Prepare any new patches against py3k branch,
now
Andrey Chichak c...@kit.tomsk.ru added the comment:
1. Cookie.py.diff is fix for error, very rare error.
2. Cookie_multi.diff is extention for supporting same name cookies set for
diferent pathes.
Cookie.py contain error!
--
___
Python tracker
Andrey Chichak c...@kit.tomsk.ru added the comment:
Remake for patch due the requirements of
http://www.python.org/dev/patches/
--
Added file: http://bugs.python.org/file15606/Cookie_multi.diff
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
For this kind of report you should provide more information. Is this an
enhancement to the Cookie object? Why is it needed?
Do you really propose that users directly use the _multi attribute
directly (the leading _ suggest an internal
Andrey Chichak c...@kit.tomsk.ru added the comment:
This is fix for rare problem. If I set 2 cookies:
sid=pub.GHoBitAWLt, path=/
sid=cab.S97jUfeihM, path=/cab
All browsers in Cookie header send for any URL '/cab*':
sid=cab.S97jUfeihM; sid=pub.GHoBitAWLt
Current implementation always returns
New submission from Andrey Chichak c...@kit.tomsk.ru:
After setting cookies with same name and different path only nearest to
root cookie is available.
Attached patch:
1. Set Cookie to nearest value.
2. Collects all same name values in Cookie._multi['cookie name'] in
order.
--