﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18403	Issue with redefined SimpleCookie with invalid cookie name	Stefano Crosta <stefano@…>	nobody	"To provoke the error:

{{{
from django.http import HttpResponse
response= HttpResponse()
response.set_cookie(""a:.b/"",1)


> AttributeError: 'SimpleCookie' object has no attribute 'bad_cookies' 
}}}

with a python version that does not accept colons ("":"") in the cookie name.

Django http/__init__.py redefines the SimpleCookie, and initializes {{{bad_cookies}}} in a method {{{load(self, rawdata)}}} that does not seem to be called in this case.
 
Beside the obvious fact that the cookie name is totally invalid, it looks like {{{bad_cookies}}} is not correctly initialized (I wouldn't mind an error, but a real one!)

Or am I using set_cookie uncorrectly here?"	Bug	new	HTTP handling	1.4	Normal		cookie		Unreviewed	0	0	0	0	0	0
