#29972: Django QueryDict replace plus "+" by space in query string
-----------------------------------------+------------------------
               Reporter:  Vuong Hoang    |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  HTTP handling  |        Version:  2.1
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 When query string contains plus sign "+", e.g `GET
 /api/tasks/?start_time=2018-11-21T11:47:15+07:00`
 I expect that on server:
 {{{request.GET['start_time'] == '2018-11-21T11:47:15+07:00'}}}

 But actual:
 {{{request.GET['start_time'] == '2018-11-21T11:47:15 07:00'}}}
 make the server validation failed (Invalid ISO8061 datetime string in my
 case)

 After debugging, I find out QueryDict using `limited_parse_qsl()`
 function, that replace `+` with space ` `
 https://github.com/django/django/blob/master/django/utils/http.py#L433

 Is this behavior a bug or some feature?

 Thank you

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29972>
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/050.2882f98c7872c2ade74b3327b7c28526%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to