#24422: Messages framework not correctly encoding messages
-------------------------------+--------------------
     Reporter:  YPCrumble      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.7
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 I'm using Django 1.7.5. I added the messages framework that added a cookie
 to my machine. When I send a request from my browser, my cookie is
 included in the following raw_cookie  string:

 'djdttop=29;
 
messages=71cd3671ca23bf7d6a599fb79d21a35c119780a4$[[\\"__json_message\\"\\0540\\05420\\054\\"This
 is my message.\\"]\\054[\\"__json_message\\"\\0540\\05425\\054\\"My second
 messages.\\"]]; sessionid=dqvje0lqh8czad0r7qxm2in4c7g3i25z;
 djdtRedirectsPanel=on; djdtSettingsPanel=off; djdtHeadersPanel=off;
 csrftoken=cRDz29PIcf0M2jmMgJdfehb8JUTvyPik; djdtTimerPanel=on; djdt=show'

 When python tries to decode this string (using Cookie.SmartCookie), it
 only outputs: <SmartCookie: djdttop='29'>

 It's because my messages have been improperly encoded. If you take out the
 messages from the string, the rest of the cookies decode fine. Somehow
 Django isn't correctly encoding the messages cookie and it's interrupting
 other cookies in my browser.

--
Ticket URL: <https://code.djangoproject.com/ticket/24422>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.c290d189288367cee72914b619f0a05c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to