Skip to content

Global server report: Key error in routes.py

Hi, After upgading burp to latest stable-candidate (1.4.30), I've lost possibility to display graph data in "Global server report". User data is still available. Output from debug mode of burp-ui can be found below. If more data is needed please ask.

/usr/local/lib/python2.7/dist-packages/burpui/misc/backend/burp1.py:586 => line: 'testuser      2       i       2 1 1422518530  1 1 1421825322'
--------------------------------------------------------------------------------
::ffff:xxx.xxx.xxx.xxx- - [29/Jan/2015 17:26:53] "GET /api/clients-report.json HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/flask_login.py", line 758, in decorated_view
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/burpui/routes.py", line 328, in clients_report_json
    j.append( { 'clients': cl, 'backups': sorted(ba, key=lambda k: k['end']) } )
  File "/usr/local/lib/python2.7/dist-packages/burpui/routes.py", line 328, in <lambda>
    j.append( { 'clients': cl, 'backups': sorted(ba, key=lambda k: k['end']) } )
KeyError: 'end'
::ffff:xxx.xxx.xxx.xxx- - [29/Jan/2015 17:26:53] "GET /api/running.json HTTP/1.1"