not found unicode URLs will throw an exception

Bug #754796 reported by Kaweh Kazemi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bobo
New
Undecided
Unassigned

Bug Description

bobo behind apache/mod_wsgi

given this request (which is obviously a bogus request)

XXX.XXX.XXX.XXX - - [08/Apr/2011:18:22:32 +0200] "\xa5$7\x93\x7f\xdd\x19\xa8\xbe\x1d~\xe4\x9cM6\xf6O\xe7" 500 630 "-" "-"

will yield:

Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/bobo-0.2.2-py2.6.egg/boboserver.py", line 142, in __call__
     return self.app(environ, start_response)
   File "/usr/local/lib/python2.6/dist-packages/bobo-0.2.2-py2.6.egg/bobo.py", line 213, in __call__
     return self.bobo_response(request, request.path_info, request.method
   File "/usr/local/lib/python2.6/dist-packages/bobo-0.2.2-py2.6.egg/bobo.py", line 193, in bobo_response
     return self.method_not_allowed(request, method, v.allowed)
   File "/usr/local/lib/python2.6/dist-packages/bobo-0.2.2-py2.6.egg/bobo.py", line 279, in method_not_allowed
     [('Allow', ', '.join(sorted(methods)))])
   File "/usr/local/lib/python2.6/dist-packages/bobo-0.2.2-py2.6.egg/bobo.py", line 285, in _err_response
     response.unicode_body = _html_template % (title, message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa5 in position 24: ordinal not in range(128)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.