Module: check_mk
Branch: master
Commit: 5a949e7a74303f1093d5fa2bd9e7924662fc8805
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a949e7a74303f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 10:04:18 2017 +0100
Updated bug entries #2477
Change-Id: I8f64f590aaeb6943717fa5ee88ffe6c9c87b5120
---
.bugs/2477 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.bugs/2477 b/.bugs/2477
new file mode 100644
index 0000000..df31c9e
--- /dev/null
+++ b/.bugs/2477
@@ -0,0 +1,13 @@
+Title: Drop the "site icons" feature
+Component: multisite
+State: open
+Date: 2017-02-24 10:03:00
+Targetversion: 1.5.0
+Class: nastiness
+
+There is a annicient and now hidden feature "site icons". The user can set the option
+use_siteicons = True in the multisite.mk and put an icon named like this into the
+images/icons directory: icons/site-%s-24.png.
+
+This can currently not be configured via WATO. Remove this feature, because this can
+be configured using the custom host/service icon feature these days via WATO.
Module: check_mk
Branch: master
Commit: b2f9e17669c2ef4127a0c65cdb788f038f0c28d7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2f9e17669c2ef…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 10:05:52 2017 +0100
4396 FIX Fixed exception in BI views when using site icons
There is a annicient and now hidden feature "site icons". The user can set the option
use_siteicons = True in the multisite.mk and put an icon named like this into the
images/icons directory: icons/site-%s-24.png.
When this is enabled and the sites icon painter is added to a BI view, this leads
to an exception. That the "site" key is not available.
Change-Id: I09f6f678e117dad121f9ec23a05e82f8c07c43bc
---
.werks/4396 | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.werks/4396 b/.werks/4396
new file mode 100644
index 0000000..4670546
--- /dev/null
+++ b/.werks/4396
@@ -0,0 +1,16 @@
+Title: Fixed exception in BI views when using site icons
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1487927077
+
+There is a annicient and now hidden feature "site icons". The user can set the option
+use_siteicons = True in the multisite.mk and put an icon named like this into the
+images/icons directory: icons/site-%s-24.png.
+
+When this is enabled and the sites icon painter is added to a BI view, this leads
+to an exception. That the "site" key is not available.
Module: check_mk
Branch: master
Commit: d8308c3bc7eee93379a4cb9a0995be1ba41087e8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d8308c3bc7eee9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 09:26:30 2017 +0100
4395 FIX Inventory filters: Fixed error handling when entering invalid regexes
Change-Id: I7c7edd13fcd1af3ac3e0d642e7375d48debcfa22
---
.werks/4395 | 11 +++++++++++
web/plugins/visuals/inventory.py | 24 +++++++++++++++++++++---
2 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/.werks/4395 b/.werks/4395
new file mode 100644
index 0000000..590af27
--- /dev/null
+++ b/.werks/4395
@@ -0,0 +1,11 @@
+Title: Inventory filters: Fixed error handling when entering invalid regexes
+Level: 1
+Component: inv
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1487924766
+
+
diff --git a/web/plugins/visuals/inventory.py b/web/plugins/visuals/inventory.py
index af54a35..12a9809 100644
--- a/web/plugins/visuals/inventory.py
+++ b/web/plugins/visuals/inventory.py
@@ -54,7 +54,13 @@ class FilterInvtableText(Filter):
if not filtertext:
return rows
- regex = re.compile(filtertext, re.IGNORECASE)
+ try:
+ regex = re.compile(filtertext, re.IGNORECASE)
+ except re.error:
+ raise MKUserError(htmlvar,
+ _('You search statement is not valid. You need to provide a regular '
+ 'expression (regex). For example you need to use <tt>\\\\</tt> instead of <tt>\\</tt> '
+ 'if you like to search for a single backslash.'))
newrows = []
for row in rows:
@@ -332,7 +338,13 @@ class FilterInvText(Filter):
if not filtertext:
return rows
- regex = re.compile(filtertext, re.IGNORECASE)
+ try:
+ regex = re.compile(filtertext, re.IGNORECASE)
+ except re.error:
+ raise MKUserError(htmlvar,
+ _('You search statement is not valid. You need to provide a regular '
+ 'expression (regex). For example you need to use <tt>\\\\</tt> instead of <tt>\\</tt> '
+ 'if you like to search for a single backslash.'))
newrows = []
for row in rows:
@@ -487,7 +499,13 @@ class FilterInvHasSoftwarePackage(Filter):
negate = html.get_checkbox(self._varprefix + "negate")
match = html.var(self._varprefix + "match")
if match == "regex":
- name = re.compile(name)
+ try:
+ name = re.compile(name)
+ except re.error:
+ raise MKUserError(self._varprefix + "name",
+ _('You search statement is not valid. You need to provide a regular '
+ 'expression (regex). For example you need to use <tt>\\\\</tt> instead of <tt>\\</tt> '
+ 'if you like to search for a single backslash.'))
new_rows = []
for row in rows:
Module: check_mk
Branch: master
Commit: 1d744052da29fdce5d72ad5ee332bc97923806dc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d744052da29fd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 09:38:44 2017 +0100
Integration tests: When trying to install another package wait for other dpkg to finish
Change-Id: I1fb95a8ee1ed427d4648e95edbdf216052cc1148
---
tests/testlib/__init__.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index fa54837..fdfd74a 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -137,6 +137,13 @@ class CMKVersion(object):
raise Exception("Failed to load package: %s" % self.package_url())
file(temp_package_path, "w").write(response.content)
+ # The following gdebi call will fail in case there is another package
+ # manager task being active. Try to wait for other task to finish. Sure
+ # this is not race free, but hope it's sufficient.
+ while os.system("sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1") >> 8 == 0:
+ print("Waiting for other dpkg process to complete...\n")
+ time.sleep(1)
+
cmd = "sudo /usr/bin/gdebi --non-interactive %s" % temp_package_path
print(cmd)
sys.stdout.flush()