Closed
Bug 606001
Opened 14 years ago
Closed 14 years ago
Traceback caused by unicode in search queries
Categories
(Input :: General, defect, P2)
Input
General
Tracking
(Not tracked)
VERIFIED
FIXED
2.0
People
(Reporter: wenzel, Assigned: wenzel)
References
()
Details
Traceback (most recent call last): File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/syndication/views.py", line 34, in __call__ feedgen = self.get_feed(obj, request) File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/syndication/views.py", line 103, in get_feed title = self.__get_dynamic_attr('title', obj), File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/syndication/views.py", line 67, in __get_dynamic_attr return attr(obj) File "/data/www/django/input.mozilla.com/reporter/apps/search/views.py", line 63, in title return (_("Firefox Input: '{query}'").format(query=query) if query else UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 25: ordinal not in range(128) <WSGIRequest GET:<QueryDict: {u'q': [u'dossier marque page effac\xe9'], u'product': [u'firefox']}>, POST:<QueryDict: {}>, COOKIES:{'WT_FPC': 'id=90.9.193.189-949263536.30107934:lv=1287571402479:ss=1287569647677', 'wtspl': '746600'}, META:{'CSRF_COOKIE': 'f54ddafe10f238c59c79b21451140bca', 'DOCUMENT_ROOT': '/data/www/django/input.mozilla.com/reporter', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'WT_FPC=id=90.9.193.189-949263536.30107934:lv=1287571038995:ss=1287569647677; wtspl=746600; WT_FPC=id=90.9.193.189-949263536.30107934:lv=1287571402479:ss=1287569647677', 'HTTP_HOST': 'input.mozilla.com', 'HTTP_KEEP_ALIVE': '115', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.11) Gecko/20101012 Ant.com Toolbar 2.0.1 Firefox/3.6.11 ( .NET CLR 3.0.4506.2152)', 'HTTP_X_CLUSTER_CLIENT_IP': '90.36.85.26', 'PATH_INFO': u'/fr/search/atom/', 'PATH_TRANSLATED': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi/fr/search/atom/', 'QUERY_STRING': 'q=dossier+marque+page+effac%C3%A9&product=firefox', 'REMOTE_ADDR': '10.8.81.200', 'REMOTE_PORT': '49173', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/fr/search/atom/?q=dossier+marque+page+effac%C3%A9&product=firefox', 'SCRIPT_FILENAME': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '10.8.81.20', 'SERVER_ADMIN': 'webmaster@mozilla.com', 'SERVER_NAME': 'input.mozilla.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '', 'SERVER_SOFTWARE': 'Apache', 'mod_wsgi.application_group': 'input.mozilla.com|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.handler_script': '', 'mod_wsgi.input_chunked': '0', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'input', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.version': (3, 2), 'wsgi.errors': <mod_wsgi.Log object at 0x2acb7646e4b0>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x2acb74ff9210>, 'wsgi.input': <mod_wsgi.Input object at 0x2acb7646eb30>, 'wsgi.loaded': datetime.datetime(2010, 10, 20, 13, 18, 50, 521362), 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 1)}>
Updated•14 years ago
|
Flags: in-litmus?
Assignee | ||
Comment 1•14 years ago
|
||
Fix and test: http://github.com/fwenzel/reporter/commit/0f7d10c
Status: NEW → RESOLVED
Closed: 14 years ago
Priority: -- → P2
Resolution: --- → FIXED
Updated•14 years ago
|
Flags: in-litmus? → in-litmus-
Comment 2•14 years ago
|
||
Verified FIXED (no traceback); and, thanks for the test!
Status: RESOLVED → VERIFIED
in-litmus+: https://litmus.mozilla.org/show_test.cgi?searchType=by_id&id=13697
Flags: in-litmus- → in-litmus+
Updated•13 years ago
|
Component: Input → General
Product: Webtools → Input
You need to log in
before you can comment on or make changes to this bug.
Description
•