#5176: Bug in django.utils.cache._generate_cache_key(request, headerlist,
key_prefix)
-----------------------------------+----------------------------------------
          Reporter:  Eratothene    |         Owner:  nobody       
            Status:  reopened      |     Milestone:               
         Component:  Cache system  |       Version:  SVN          
        Resolution:                |      Keywords:  cache session
             Stage:  Accepted      |     Has_patch:  1            
        Needs_docs:  0             |   Needs_tests:  0            
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Comment (by jcharpentier):

 When i launch my project's test suite i have several errors ''!TypeError:
 update() argument 1 must be string or read-only buffer, not
 !SimpleCookie''

 All of theses appear because of same backtrace on description :

 {{{
 File
 "/var/www/caverne.bearstech.com/caverne/../django/middleware/cache.py",
 line 92, in process_response
     cache_key = learn_cache_key(request, response, timeout,
 self.key_prefix)
   File "/var/www/caverne.bearstech.com/caverne/../django/utils/cache.py",
 line 192, in learn_cache_key
     return _generate_cache_key(request, headerlist, key_prefix)
   File "/var/www/caverne.bearstech.com/caverne/../django/utils/cache.py",
 line 145, in _generate_cache_key
     ctx.update(value)

  }}}

 4 Django's tests fails (tests launched in the begining of an ''./manage.py
 test''):
 {{{
 ERROR: test_confirm_complete
 (django.contrib.auth.tests.views.PasswordResetTest)
 ERROR: test_confirm_invalid
 (django.contrib.auth.tests.views.PasswordResetTest)
 ERROR: test_confirm_valid
 (django.contrib.auth.tests.views.PasswordResetTest)
 ERROR: Error is raised if the provided email address isn't currently
 registered
 }}}

 And somes of my project tests fails too : the views who fails use
 ''request.user'' and ''request.user.is_staff'', the other views won't
 fail.
 If I deactivate the cache, test suite is OK.
 I have tried my testsuite with and without ''client.login''  .

 I have tried the middleware cache order on documentation and the new
 recommended here.
 SVN rev is 8911

 Hope that can help to fix this ticket before 1.0

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5176#comment:8>
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