#7776: Test cookie isn't deleted if persistent data in Newforms-Admin login
----------------------------------------+-----------------------------------
          Reporter:  Mnewman            |         Owner:  brosner           
            Status:  assigned           |     Milestone:  1.0               
         Component:  Admin interface    |       Version:  SVN               
        Resolution:                     |      Keywords:  Admin auth cookies
             Stage:  Ready for checkin  |     Has_patch:  1                 
        Needs_docs:  0                  |   Needs_tests:  0                 
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Comment (by rajeshdhawan):

 anonymous: Yes, I see that it does the same check. It's strange, though,
 because I have been lately seeing the following trace (I got a few of
 these this morning using the latest svn checkout):

 {{{

 Traceback:
 File "/home/rajesh/Development/default-
 django/django/core/handlers/base.py"
 in get_response 86. response = callback(request, *callback_args,
 **callback_kwargs)
 File "/home/rajesh/Development/default-
 django/django/contrib/admin/sites.py"
 in root 156. return self.login(request)
 File "/home/rajesh/Development/django-
 svn/django/views/decorators/cache.py"
 in _wrapped_view_func 44. response = view_func(request, *args, **kwargs)
 File "/home/rajesh/Development/default-
 django/django/contrib/admin/sites.py"
 in login 280. request.session.delete_test_cookie()
 File "/home/rajesh/Development/default-
 django/django/contrib/sessions/backends/base.py"
 in delete_test_cookie 84. del self[self.TEST_COOKIE_NAME]
 File "/home/rajesh/Development/default-
 django/django/contrib/sessions/backends/base.py"
 in __delitem__ 53. del self._session[key]
 Exception Type: KeyError at /admin/ Exception Value: 'testcookie'

 }}}

 I haven't traced this down to the session.delete_test_cookie function to
 be able to confirm that it's a bug in the sessions module (it happens very
 intermittently, so it's hard to debug).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7776#comment:6>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to