Module: check_mk
Branch: master
Commit: a4d9451cb646be5ef7f9aec3f974aa43e53c8cd2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a4d9451cb646be…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 5 13:39:10 2016 +0100
Updated bug entries #2473
---
.bugs/2473 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.bugs/2473 b/.bugs/2473
new file mode 100644
index 0000000..9fffa17
--- /dev/null
+++ b/.bugs/2473
@@ -0,0 +1,10 @@
+Title: Virtual host trees should have ids
+Component: multisite
+State: open
+Date: 2016-12-05 13:37:42
+Targetversion: 1.2.9
+Class: bug
+
+The virtual host trees are currently being referenced by their index. In case a tree is deleted, the
+tree that a user references may change because the elements in the list virtual_host_trees have
+different indexes now.
Module: check_mk
Branch: master
Commit: 7221fcec3e09d0aabd3285507dbeb2129c590a20
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7221fcec3e09d0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 5 13:35:42 2016 +0100
4128 FIX Fixed exception in "Virtual host tree" snapin in case a user tries to access a not existing tree
---
.werks/4128 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 7 +++++--
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.werks/4128 b/.werks/4128
new file mode 100644
index 0000000..a495669
--- /dev/null
+++ b/.werks/4128
@@ -0,0 +1,10 @@
+Title: Fixed exception in "Virtual host tree" snapin in case a user tries to access a not existing tree
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i3
+Date: 1480941304
+
+
diff --git a/ChangeLog b/ChangeLog
index 2dd9262..be8768d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,6 +61,7 @@
* 4072 FIX: Fixed multiple issues in BI availability when groups or names contain umlauts
* 4080 FIX: Fixed possible exception "unsupported operand type" in matrix views
* 4127 FIX: Fixed possible "maximum recursion depth exceeded" error when sorting tables with a lot of text in cells
+ * 4128 FIX: Fixed exception in "Virtual host tree" snapin in case a user tries to access a not existing tree
WATO:
* 3984 Permissions can now be filtered by providing a search term on the "edit role" page...
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 2350bc3..83766ff 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -2056,7 +2056,6 @@ def render_tag_tree():
if type(tree_conf) == int:
tree_conf = {"tree": tree_conf, "cwd":{}} # convert from old style
-
choices = [ (str(i), v[0]) for i, v in enumerate(config.virtual_host_trees)]
html.begin_form("vtree")
@@ -2071,7 +2070,11 @@ def render_tag_tree():
html.end_form()
html.final_javascript(virtual_host_tree_js)
- title, taggroups = config.virtual_host_trees[tree_conf["tree"]]
+ try:
+ title, taggroups = config.virtual_host_trees[tree_conf["tree"]]
+ except IndexError:
+ # Fallback to first host tree in case the wanted does not exist (anymore)
+ title, taggroups = config.virtual_host_trees[0]
tree = compute_tag_tree(taggroups)
render_tag_tree_level(taggroups, [], cwd, _("Virtual Host Tree"), tree)
Module: check_mk
Branch: master
Commit: 7be5aa3128858a32aa1d8167f828d3c47ede0616
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7be5aa3128858a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 5 13:05:39 2016 +0100
Updated bug entries #2547
---
.bugs/2547 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.bugs/2547 b/.bugs/2547
new file mode 100644
index 0000000..a30fd1c
--- /dev/null
+++ b/.bugs/2547
@@ -0,0 +1,12 @@
+Title: Event Console delete icon does not work if checkboxes are enabled
+Component: ec
+State: open
+Date: 2016-12-05 13:04:28
+Targetversion: 1.2.8
+Class: bug
+
+If you activate checkboxes and the use the delete icon for
+deleting one event you will run into an error message that
+no items are selected. I fear that I some *would* be selected,
+then all those would be deleted instead of just that one
+where the icon was clicked.
Module: check_mk
Branch: master
Commit: cb769bd59146ff96d6211b9a9e499782c40e3c1a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb769bd59146ff…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 5 11:14:01 2016 +0100
Small code change to be able to see response content in crash reports
---
web/htdocs/sites.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/sites.py b/web/htdocs/sites.py
index cd0e700..0e7844d 100644
--- a/web/htdocs/sites.py
+++ b/web/htdocs/sites.py
@@ -111,10 +111,13 @@ def _connect_multiple_sites():
# Fetch status of sites by querying the version of Nagios and livestatus
# This may be cached by a proxy for up to the next configuration reload.
_live.set_prepend_site(True)
- for site_id, v1, v2, ps, num_hosts, num_services in _live.query(
+ for response in _live.query(
"GET status\n"
"Cache: reload\n"
"Columns: livestatus_version program_version program_start num_hosts num_services"):
+
+ site_id, v1, v2, ps, num_hosts, num_services = response
+
_update_site_status(site_id, {
"state" : "online",
"livestatus_version" : v1,