#1130: logging crashes when URL contains unicode symbols and user is logged in
(mod_python system)
------------------------+---------------------------------------------------
 Reporter:  dado1945    |        Owner:  anonymous       
     Type:  defect      |       Status:  new             
 Priority:  normal      |    Milestone:  __unclassified__
Component:  TurboGears  |      Version:  1.0.8           
 Severity:  minor       |   Resolution:                  
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by chrisz):

 Thanks, kikidonk, this is much clearer now.

 I can reproduce the issue in comment:13 (you forgot to mention that you
 also need to login as user "ß", and it happens only with certain browsers
 such as MSIE, while Firefox does not seem to cause problem because it
 always urlencodes the url).

 Btw, instead of 'ß'.decode('utf-8') you can also write u'ß' if your code
 is written in utf-8. And you should point to the current code at
 http://trac.turbogears.org/browser/branches/1.0 instead of the very old
 http://trac.turbogears.org/browser/tags/1.0b1/.

 I can also confirm the issue in comment:14. TurboGears should really
 convert the base64-user-pass string to unicode in decode_basic_credentials
 before splitting it with ':' and returning it. Unfortunately, RFC2617 does
 not specify any charset here and some googling shows that there is
 disaccord whether latin-1 or utf-8 is to be used. Probably we should try
 to decode as utf-8 first, and if that fails, decode as latin-1.

 These kind of problems are why I really appreciate the changes made in
 Python 3.0...

-- 
Ticket URL: <http://trac.turbogears.org/ticket/1130#comment:15>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to