Searchresults query string generates Unicode traceback

Bug #788234 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Chris Rossi

Bug Description

https://karl.soros.org/searchresults.html?body=Drask%F3czi

...produces:

       Traceback (most recent call last):
  File "/srv/osfkarl/production/19/eggs/karl-3.60-py2.6.egg/karl/errorpage.py", line 51, in __call__
    resp = req.get_response(self.app)
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 920, in get_response
    application, catch_exc_info=False)
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 888, in call_application
    app_iter = application(self.environ, start_response)
  File "/srv/osfkarl/production/19/eggs/karl-3.60-py2.6.egg/karl/errorlog.py", line 16, in middleware
    return app(environ, start_response)
  File "/srv/osfkarl/production/19/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py", line 88, in __call__
    app_iter = self.application(environ, replace_start_response)
  File "/srv/osfkarl/production/19/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py", line 21, in __call__
    result = self.next_app(environ, start_response)
  File "/srv/osfkarl/production/19/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py", line 23, in __call__
    result = self.application(environ, save_status_and_headers)
  File "/srv/osfkarl/production/19/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py", line 107, in __call__
    app_iter = app(environ, wrapper.wrap_start_response)
  File "/srv/osfkarl/production/19/eggs/repoze.urchin-0.1-py2.6.egg/repoze/urchin/__init__.py", line 20, in __call__
    resp = req.get_response(self.app)
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 920, in get_response
    application, catch_exc_info=False)
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/request.py", line 888, in call_application
    app_iter = application(self.environ, start_response)
  File "/srv/osfkarl/production/19/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py", line 130, in __call__
    response = view_callable(context, request)
  File "/srv/osfkarl/production/19/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view
    return view(context, request)
  File "/srv/osfkarl/production/19/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1704, in _rendered_view
    response = view(context, request)
  File "/srv/osfkarl/production/19/eggs/karl-3.60-py2.6.egg/karl/views/search.py", line 204, in searchresults_view
    query=query),
  File "/srv/osfkarl/production/19/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/url.py", line 218, in model_url
    qs = '?' + urlencode(kw['query'], doseq=True)
  File "/srv/osfkarl/production/19/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/encode.py", line 82, in urlencode
    query = query.items()
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/multidict.py", line 415, in items
    for k, v in self.multi.iteritems()]
  File "/srv/osfkarl/production/19/eggs/WebOb-0.9.8.0_osi1-py2.6.egg/webob/multidict.py", line 305, in _decode_value
    value = value.decode(self.encoding, self.errors)
  File "/srv/osfkarl/production/19/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 5: invalid continuation byte

Tags: r3.64
Changed in karl3:
milestone: m58 → m59
Changed in karl3:
status: New → In Progress
Changed in karl3:
status: In Progress → Fix Committed
JimPGlenn (jpglenn09)
tags: added: r3.64
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
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.