#22426: Django >= 1.6.0 can't handle old style messages cookie
----------------------------------+-----------------------------------
     Reporter:  iivvoo            |      Owner:  nobody
         Type:  Bug               |     Status:  new
    Component:  contrib.messages  |    Version:  1.6
     Severity:  Normal            |   Keywords:  messages, cookie, 1.4
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  0                 |      UI/UX:  0
----------------------------------+-----------------------------------
 The message cookie format has changed in Django 1.5.x, Django 1.6.x no
 longer supports the old format.

 If you upgrade your project from Django 1.4.x directly to 1.6.x (skipping
 the 1.5 release), your application will fail quickly on old-style message
 cookies:


 {{{
  Exception Type: IndexError
  Exception Value:
  list index out of range
  Exception Location: (...) django/contrib/messages/storage/cookie.py in
 process_messages, line 37
 }}}


 Django 1.5 contained some backward compatibility to handle both styles:

 
https://github.com/django/django/commit/9e7183073f64e541587e8dcfd8bb3ddeb47f8162

 but this code is no longer present in Django 1.6.2

 Since you can't ask all your users to delete their cookies if they run
 into this error, there's no easy/quick workaround.

 It's not uncommon for projects to skip a version. Also, Django 1.4.x is
 LTS and people may jump from LTS release to LTS release, which means they
 will also run into this issue.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22426>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.17366b116783d41ea713de9751f794f5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to