Bug#944646: nagstamon: crash when acknowledging alert from an Icinga server

2019-12-27 Thread Moritz Schlarb
Control: forwarded -1 https://github.com/HenriWahl/Nagstamon/issues/612

Dear Jonathan,

On 13.11.19 11:06, Jonathan Wiltshire wrote:
> When acknowledging an alert from an Icinga2 server a traceback occurs
> submitting the form:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/Nagstamon/QUI/__init__.py", line 3967, 
> in acknowledge
> self.server.set_acknowledge(info_dict)
>   File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Generic.py", line 
> 359, in set_acknowledge
> all_services)
>   File "/usr/lib/python3/dist-packages/Nagstamon/Servers/IcingaWeb2.py", line 
> 368, in _set_acknowledge
> CSRFToken = formtag.findNext('input', {'name':'CSRFToken'})['value']
> AttributeError: 'NoneType' object has no attribute 'findNext'
> Aborted
> 
> The icinga-web2 version used is 2.6.2.

I just uploaded the next released version of Nagstamon (3.4-1) - could
you please try it again with that version?

I couldn't reproduce it in that version with the Demo site at
https://icinga.com/demo/.

Regards,
-- 
Moritz Schlarb
Unix-Gruppe | Systembetreuung
Zentrum für Datenverarbeitung
Johannes Gutenberg-Universität Mainz
Raum 01-331 - Tel. +49 6131 39-29441
OpenPGP Fingerprint: DF01 2247 BFC6
5501 AFF2 8445 0C24 B841 C7DD BAAF



signature.asc
Description: OpenPGP digital signature


Bug#944646: nagstamon: crash when acknowledging alert from an Icinga server

2019-11-13 Thread Jonathan Wiltshire
Package: nagstamon
Version: 3.2.1-1
Severity: important

When acknowledging an alert from an Icinga2 server a traceback occurs
submitting the form:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/Nagstamon/QUI/__init__.py", line 3967, 
in acknowledge
self.server.set_acknowledge(info_dict)
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Generic.py", line 359, 
in set_acknowledge
all_services)
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/IcingaWeb2.py", line 
368, in _set_acknowledge
CSRFToken = formtag.findNext('input', {'name':'CSRFToken'})['value']
AttributeError: 'NoneType' object has no attribute 'findNext'
Aborted

The icinga-web2 version used is 2.6.2.

-- System Information:
Debian Release: 10.2
  APT prefers proposed-updates
  APT policy: (990, 'proposed-updates'), (500, 'stable-updates'), (500, 
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nagstamon depends on:
ii  libqt5multimedia5-plugins5.11.3-2
ii  python3  3.7.3-1
ii  python3-bs4  4.7.1-1
ii  python3-dbus.mainloop.pyqt5  5.11.3+dfsg-1+b3
ii  python3-keyring  17.1.1-1
ii  python3-lxml 4.3.2-1
ii  python3-pkg-resources40.8.0-1
ii  python3-psutil   5.5.1-1
ii  python3-pyqt55.11.3+dfsg-1+b3
ii  python3-pyqt5.qtmultimedia   5.11.3+dfsg-1+b3
ii  python3-pyqt5.qtsvg  5.11.3+dfsg-1+b3
ii  python3-requests 2.21.0-1
ii  python3-requests-kerberos0.11.0-2

Versions of packages nagstamon recommends:
ii  python3-secretstorage  2.3.1-2

nagstamon suggests no packages.

-- no debconf information