Your message dated Sat, 10 Nov 2018 10:42:56 +0000
with message-id <1541846576.3542.38.ca...@adam-barratt.org.uk>
and subject line Closing bugs for updates included in 9.6
has caused the Debian Bug report #910719,
regarding stretch-pu: package nagstamon/2.0.1-5+deb9u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
910719: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910719
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian....@packages.debian.org
Usertags: pu

Hi SRM,

[Cc'ed Moritz Schlarb <mosch...@metalabs.de>]

When configuring a server using the monitoring type set to IcingaWeb2
and using basic authetication, then nagstamon will crash with

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/Nagstamon/QUI/__init__.py", line 3538, 
in get_status
    status = self.server.GetStatus()
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/Generic.py", line 798, 
in GetStatus
    self.init_HTTP()
  File "/usr/lib/python3/dist-packages/Nagstamon/Servers/IcingaWeb2.py", line 
99, in init_HTTP
    form_inputs[form_input] = form.find('input', {'name': form_input})['value']
TypeError: 'NoneType' object is not subscriptable
Aborted

Filled as #910717 for this tracking.

This was adressed with
https://github.com/HenriWahl/Nagstamon/commit/907b69a999fc73e371369ff7512531296fad32e0
and the fix already included in unstable.

Attached is the debdiff tested for a respective configured instance.

Regards,
Salvatore
diff -Nru nagstamon-2.0.1/debian/changelog nagstamon-2.0.1/debian/changelog
--- nagstamon-2.0.1/debian/changelog    2017-05-03 14:55:30.000000000 +0200
+++ nagstamon-2.0.1/debian/changelog    2018-10-10 09:39:44.000000000 +0200
@@ -1,3 +1,13 @@
+nagstamon (2.0.1-5+deb9u1) stretch; urgency=medium
+
+  * Non-maintainer upload.
+  * Address IcingaWeb2 Basic auth issue.
+    Configuring a server with monitoring type "IcingaWeb2" using Basic
+    authentication crashes nagstamon with "TypeError: NoneType object is not
+    subscriptable". (Closes: #910717)
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Wed, 10 Oct 2018 09:39:44 +0200
+
 nagstamon (2.0.1-5) unstable; urgency=medium
 
   * Don't disable InsecureRequestWarning warnings from urllib3 
diff -Nru nagstamon-2.0.1/debian/patches/series 
nagstamon-2.0.1/debian/patches/series
--- nagstamon-2.0.1/debian/patches/series       2017-05-03 14:55:30.000000000 
+0200
+++ nagstamon-2.0.1/debian/patches/series       2018-10-10 09:35:34.000000000 
+0200
@@ -3,3 +3,4 @@
 no-QtCore-in-setup-py.patch
 spelling-error-in-manpage.patch
 fix-duplicated-compressed-file.patch
+try-to-fix-IcingaWeb2-Basic-auth-bug.patch
diff -Nru 
nagstamon-2.0.1/debian/patches/try-to-fix-IcingaWeb2-Basic-auth-bug.patch 
nagstamon-2.0.1/debian/patches/try-to-fix-IcingaWeb2-Basic-auth-bug.patch
--- nagstamon-2.0.1/debian/patches/try-to-fix-IcingaWeb2-Basic-auth-bug.patch   
1970-01-01 01:00:00.000000000 +0100
+++ nagstamon-2.0.1/debian/patches/try-to-fix-IcingaWeb2-Basic-auth-bug.patch   
2018-10-10 09:39:44.000000000 +0200
@@ -0,0 +1,29 @@
+From: Henri Wahl <h.w...@ifw-dresden.de>
+Date: Thu, 20 Jul 2017 12:10:11 +0200
+Subject: try to fix IcingaWeb2 Basic auth bug
+Origin: 
https://github.com/HenriWahl/Nagstamon/commit/907b69a999fc73e371369ff7512531296fad32e0
+Bug-Debian: https://bugs.debian.org/910717
+
+---
+ Nagstamon/Servers/IcingaWeb2.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/Nagstamon/Servers/IcingaWeb2.py b/Nagstamon/Servers/IcingaWeb2.py
+index 86f909cc4f1d..101667d319ba 100644
+--- a/Nagstamon/Servers/IcingaWeb2.py
++++ b/Nagstamon/Servers/IcingaWeb2.py
+@@ -96,7 +96,10 @@ class IcingaWeb2Server(GenericServer):
+                     form = login.result.find('form')
+                     form_inputs = {}
+                     for form_input in ('redirect', 'formUID', 'CSRFToken', 
'btn_submit'):
+-                        form_inputs[form_input] = form.find('input', {'name': 
form_input})['value']
++                        if not form.find('input', {'name': form_input}) is 
None:
++                            form_inputs[form_input] = form.find('input', 
{'name': form_input})['value']
++                        else:
++                            form_inputs[form_input] = ''
+                     form_inputs['username'] = self.username
+                     form_inputs['password'] = self.password
+     
+-- 
+2.11.0
+

--- End Message ---
--- Begin Message ---
Version: 9.6

Hi,

The update referenced by each of these bugs was included in this
morning's stretch point release.

Regards,

Adam

--- End Message ---

Reply via email to