Alignak-monitoring-contrib / alignak-webui

Web User Interface for Alignak monitoring framework
GNU Affero General Public License v3.0
8 stars 4 forks source link

Edition form 500 error with backend 0.9 #307

Closed mohierf closed 7 years ago

mohierf commented 7 years ago

With the most recent backend (0.9), an internal error 500 may raise when editing an host or service:

[2017-08-01 09:58:26,807] INFO: [alignak_webui.utils.plugin] Get form: 5980349006fd4b26c577bf0e
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3643, in wrapper
    return template(tpl_name, **tplvars)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3619, in template
    return TEMPLATES[tplid].render(kwargs)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3409, in render
    self.execute(stdout, env)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3396, in execute
    eval(self.co, env)
  File "/home/alignak/alignak-webui/alignak_webui/views/_form.tpl", line 719, in <module>
    %  if allowed[0].startswith('inner://'):
AttributeError: 'int' object has no attribute 'startswith'