Django test client can't store cookies after upgrade to Python 2.6.5
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
After upgrading to Python 2.6.5, Django test client is storing malformed cookies, thus not allowing to test anything session-related
The error is relatively hard to track, as no exception is raised by DB session backend.
File-based session backend raises
SuspiciousOperation: Invalid characters (directory components) in session key
It looks like the error is caused by the change to Cookie module introduced here: http://svn.python.org/view/python/trunk/Lib/Cookie.py?r1=71029&r2=74647
Not sure if this change affects other libraries.
Change History (2)
comment:1 Changed 7 years ago by
|Patch needs improvement:||unset|
|Summary:||Python 2.6.5 breaks Django test client's ability to store cookies → Django test client can't store cookies after upgrade to Python 2.6.5|