favicon.ico isn't being set

NEW
Unassigned

Status

Webtools
DXR
3 years ago
3 years ago

People

(Reporter: uberj, Unassigned)

Tracking

Trunk
x86_64
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: easy)

(Reporter)

Description

3 years ago
This traceback happened the first time I loaded the toy dxr-serve.py server in ~/dxr/tests/test_basic. Refreshing the page didn't cause the problem to be reproduced.

vagrant@vagrant-ubuntu-trusty-64:~/dxr/tests/test_basic$ sudo dxr-serve.py -a target -p 80
 * Running on http://0.0.0.0:80/
 * Restarting with reloader
33.33.33.1 - - [29/Oct/2014 16:25:28] "GET / HTTP/1.1" 302 -
33.33.33.1 - - [29/Oct/2014 16:25:28] "GET /code/source/ HTTP/1.1" 200 -
33.33.33.1 - - [29/Oct/2014 16:25:29] "GET /static/icons/mimetypes/c.png HTTP/1.1" 200 -
33.33.33.1 - - [29/Oct/2014 16:25:34] "GET /code/source/dot_c.c HTTP/1.1" 200 -
33.33.33.1 - - [29/Oct/2014 16:25:35] "GET /static/js/panel.js HTTP/1.1" 200 -
33.33.33.1 - - [29/Oct/2014 16:25:35] "GET /static/js/code-highlighter.js HTTP/1.1" 200 -
33.33.33.1 - - [29/Oct/2014 16:25:36] "GET /favicon.ico HTTP/1.1" 302 -
33.33.33.1 - - [29/Oct/2014 16:25:36] "GET /favicon.ico HTTP/1.1" 302 -
33.33.33.1 - - [29/Oct/2014 16:25:36] "GET /favicon.ico/source/ HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1701, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1689, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/vagrant/dxr/dxr/app.py", line 192, in browse
    index=config['ES_ALIASES'][tree],
KeyError: u'favicon.ico'
Whiteboard: easy
You need to log in before you can comment on or make changes to this bug.