#16842: RedirectView (class based) query string format bug
-------------------+-------------------------------
Reporter: slafs | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: Generic views
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------+-------------------------------
There is a problem with the new class based RedirectView with query_string
= True and some unicode string in QUERY_STRING.
I made a sample of the error on bitbucket
https://bitbucket.org/slafs/redirectviewtest/src
The error that I'm getting is :
{{{
File "/usr/local/lib/python2.7/dist-
packages/django/views/generic/base.py" in get_redirect_url
146. return url % kwargs
Exception Type: ValueError at /test/
Exception Value: unsupported format character 'C' (0x43) at index 15
}}}
Basically the problem is when a QUERY_STRING contains some unicode chars
that were previously encoded with urlencode (i.e. {{ request.GET.urlencode
}} - like in my bitbucket example ) and for example polish "ż" is encoded
as "%C5" which breaks the "%" formatting.
The relevant topic on Google Groups is here
https://groups.google.com/d/topic/django-users/L0hkxuyUt4U/discussion
As Karen M. Tracey suggested I opened this ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/16842>
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 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.