Closed Bug 609828 Opened 14 years ago Closed 14 years ago

Traceback on admin page (KeyError: other)

Categories

(Input :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wenzel, Assigned: wenzel)

Details

(Whiteboard: [qa-])

Should get this into 2.0 because this us currently broken on production :-/ and makes it hard to debug things.

----



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/admin/options.py", line 239, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/utils/decorators.py", line 76, in _wrapped_view
    response = view_func(request, *args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/views/decorators/cache.py", line 69, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/sites.py", line 190, in inner
    return view(request, *args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/utils/decorators.py", line 21, in _wrapper
    return decorator(bound_func)(*args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/utils/decorators.py", line 76, in _wrapped_view
    response = view_func(request, *args, **kwargs)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/utils/decorators.py", line 17, in bound_func
    return func(self, *args2, **kwargs2)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/options.py", line 1091, in changelist_view
    ], context, context_instance=context_instance)

  File "/data/www/django/input.mozilla.com/reporter/apps/myadmin/__init__.py", line 16, in django_to_jinja
    source = loader.render_to_string(template_name, context, context_instance)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/loader.py", line 186, in render_to_string
    return t.render(context_instance)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 173, in render
    return self._render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 809, in render_node
    return node.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/loader_tags.py", line 125, in render
    return compiled_parent._render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 167, in _render
    return self.nodelist.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 809, in render_node
    return node.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 809, in render_node
    return node.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 796, in render
    bits.append(self.render_node(node, context))

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 809, in render_node
    return node.render(context)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/template/__init__.py", line 954, in render
    dict = func(*args)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/templatetags/admin_list.py", line 209, in result_list
    'results': list(results(cl))}

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/templatetags/admin_list.py", line 201, in results
    yield list(items_for_result(cl, res, None))

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/templatetags/admin_list.py", line 138, in items_for_result
    f, attr, value = lookup_field(field_name, result, cl.model_admin)

  File "/data/www/django/input.mozilla.com/reporter/vendor/packages/Django/django/contrib/admin/util.py", line 268, in lookup_field
    attr = getattr(obj, name)

  File "/data/www/django/input.mozilla.com/reporter/apps/feedback/models.py", line 83, in os_name
    return OSES[self.os].pretty

KeyError: u'other'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'SSID': 'AwD6tSkAAAQAlbR8TApRGgHhY7BLGgAAAAAAAAAAAAAAAADBi7RMAAAM_v__AAAAAAAEAAAA',
 'SSRT': 'wou0TAE',
 'WT_FPC': 'id=85.181.10.237-2255553088.30072172:lv=1288924202977:ss=1288924198609',
 '__unam': 'f7237fc-121c105346a-753060f2-45',
 '__utma': '183859642.2106430076.1244471591.1271659146.1271668864.113',
 'csrftoken': '6b887cb250863c4400f67483c478f331',
 's_vi': '',
 's_vsn_mozillabrowserchoicemozillacom_1': '9888699434054',
 's_vsn_mozillacom_1': '59972537154',
 's_vsn_mozillacomdev_1': '1311561379786',
 's_vsn_mozillaservicesmozcom_1': '4828080975688',
 'sessionid': 'bc07b80d9ef966e1265dc7637aad4052',
 'wtspl': '153445'},
META:{'CSRF_COOKIE': '6b887cb250863c4400f67483c478f331',
 'CSRF_COOKIE_USED': True,
 'DOCUMENT_ROOT': '/data/www/django/input.mozilla.com/reporter',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTPS': 'on',
 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
 'HTTP_ACCEPT_CHARSET': 'UTF-8,*',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.7,de;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 's_vi=[CS]v1|4A2D062F000017B3-A02084D00000053[CE]; __utma=183859642.2106430076.1244471591.1271659146.1271668864.113; __unam=f7237fc-121c105346a-753060f2-45; SSID=AwD6tSkAAAQAlbR8TApRGgHhY7BLGgAAAAAAAAAAAAAAAADBi7RMAAAM_v__AAAAAAAEAAAA; s_vsn_mozillacom_1=59972537154; s_vsn_mozillacomdev_1=1311561379786; s_vsn_mozillabrowserchoicemozillacom_1=9888699434054; s_vsn_mozillaservicesmozcom_1=4828080975688; WT_FPC=id=85.181.10.237-2255553088.30072172:lv=1288737785001:ss=1288737785001; csrftoken=6b887cb250863c4400f67483c478f331; SSRT=wou0TAE; WT_FPC=id=85.181.10.237-2255553088.30072172:lv=1288924202977:ss=1288924198609; wtspl=153445; sessionid=bc07b80d9ef966e1265dc7637aad4052',
 'HTTP_HOST': 'input.mozilla.com',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'https://input.mozilla.com/admin/',
 'HTTP_SSLCLIENTCERTSTATUS': 'NoClientCert',
 'HTTP_SSLCLIENTCIPHER': 'SSL_RSA_WITH_RC4_128_SHA, version=TLSv1, bits=128',
 'HTTP_SSLSESSIONID': 'FDE9577800CC757D71727C5342E0DC724E606720766ADE953CC14E65FA3C46FE',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12',
 'HTTP_X_CLUSTER_CLIENT_IP': '63.235.13.3',
 'PATH_INFO': u'/admin/feedback/opinion/',
 'PATH_TRANSLATED': '/data/www/django/input.mozilla.com/reporter/wsgi/reporter.wsgi/admin/feedback/opinion/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.8.81.200',
 'REMOTE_PORT': '46927',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/admin/feedback/opinion/',
 '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': '81',
 'mod_wsgi.process_group': 'input-ssl',
 'mod_wsgi.request_handler': 'wsgi-script',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (3, 3),
 'wsgi.errors': <mod_wsgi.Log object at 0x2aaab20cadf0>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x2aaab0199af8>,
 'wsgi.input': <mod_wsgi.Input object at 0x2aaab0ac8970>,
 'wsgi.loaded': datetime.datetime(2010, 11, 4, 6, 34, 57, 885907),
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'https',
 'wsgi.version': (1, 1)}>
Oops. There is proper error handlign in there, but instead of catching KeyError, we caught IndexError. It's on the admin pages only, so I am marking this qa-.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Component: Input → General
Product: Webtools → Input
You need to log in before you can comment on or make changes to this bug.