[Django] #12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError for international URL

View: New views
3 Messages — Rating Filter:   Alert me  

[Django] #12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError for international URL

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError
for international URL
---------------------------+------------------------------------------------
 Reporter:  oldium         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN      
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 The problem is in get_full_path() when the path component contains unicode
 data. The path (unicode) cannot be used in the HttpResponseRedirect. The
 iri_to_uri should be used for the whole string I think. The simplest
 example that triggers the problem is this (when the URL contains
 international characters)

 {{{
   def view(request):
     return HttpResponseRedirect(request.get_full_path())
 }}}

--
Ticket URL: <http://code.djangoproject.com/ticket/12186>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError for international URL

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError
for international URL
------------------------------------+---------------------------------------
          Reporter:  oldium         |         Owner:  nobody
            Status:  closed         |     Milestone:        
         Component:  Uncategorized  |       Version:  SVN  
        Resolution:  duplicate      |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0    
        Needs_docs:  0              |   Needs_tests:  0    
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by Alex):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => duplicate
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Dupe of ##11522.  Please search trac before filing  a new ticket.

--
Ticket URL: <http://code.djangoproject.com/ticket/12186#comment:1>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError for international URL

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError
for international URL
------------------------------------+---------------------------------------
          Reporter:  oldium         |         Owner:  nobody
            Status:  closed         |     Milestone:        
         Component:  Uncategorized  |       Version:  SVN  
        Resolution:  duplicate      |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0    
        Needs_docs:  0              |   Needs_tests:  0    
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by oldium):

 Sorry, I've searched for get_full_path, not for UnicodeEncodeError.

--
Ticket URL: <http://code.djangoproject.com/ticket/12186#comment:2>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---