Module: check_mk
Branch: master
Commit: 5f17d7049319959a0c8d31113662289328aa104a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5f17d704931995…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 15 15:28:36 2019 +0100
Fixed validation error when cloning uncheckedsvc view
An invalid default value in the builtin view lead to the
validation error.
Change-Id: Ic3477fbb34ebb63c68065908f0b427c0c9ca5f64
---
cmk/gui/plugins/views/builtin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/plugins/views/builtin.py b/cmk/gui/plugins/views/builtin.py
index 825d3c6..e985fa7 100644
--- a/cmk/gui/plugins/views/builtin.py
+++ b/cmk/gui/plugins/views/builtin.py
@@ -2029,7 +2029,7 @@ multisite_builtin_views.update({
'description': _(
'Services that have not been checked for too long according to their configured check intervals.'
),
- 'group_painters': [('host', 'host', '')],
+ 'group_painters': [('host', 'host')],
'hard_filters': [
'service_staleness',
'service_scheduled_downtime_depth',
Module: check_mk
Branch: master
Commit: d6fd5f703e1cc81153483f58eac7ccfeb8cd2efb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6fd5f703e1cc8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 15 17:28:59 2019 +0100
7071 FIX Fixed missing form error highlighting for cascaded dropdown fields
Some dropdown fields were not highlighted in case there are input validation
errors detected during form submit. This made it hard for the user to find
the field that needs to be corrected.
Change-Id: I6174434b506e6e3371410e5677ce25d741115b4c
---
.werks/7071 | 13 +++++++++++++
cmk/gui/valuespec.py | 6 +++---
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/.werks/7071 b/.werks/7071
new file mode 100644
index 0000000..9183310
--- /dev/null
+++ b/.werks/7071
@@ -0,0 +1,13 @@
+Title: Fixed missing form error highlighting for cascaded dropdown fields
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1547561948
+
+Some dropdown fields were not highlighted in case there are input validation
+errors detected during form submit. This made it hard for the user to find
+the field that needs to be corrected.
diff --git a/cmk/gui/valuespec.py b/cmk/gui/valuespec.py
index d7f0f8a..c5b853d 100644
--- a/cmk/gui/valuespec.py
+++ b/cmk/gui/valuespec.py
@@ -2053,11 +2053,11 @@ class CascadingDropdown(ValueSpec):
self._encoding_type.__name__)
vs.validate_datatype(value[1], varprefix + "_%d" % nr)
return
- raise MKUserError(varprefix, _("Value %r is not allowed here.") % value)
+ raise MKUserError(varprefix + "_sel", _("Value %r is not allowed here.") % value)
def validate_value(self, value, varprefix):
if self._no_preselect and value == self._no_preselect_value:
- raise MKUserError(varprefix, self._no_preselect_error)
+ raise MKUserError(varprefix + "_sel", self._no_preselect_error)
choices = self.choices()
for nr, (val, _title, vs) in enumerate(choices):
@@ -2066,7 +2066,7 @@ class CascadingDropdown(ValueSpec):
vs.validate_value(value[1], varprefix + "_%d" % nr)
ValueSpec.custom_validate(self, value, varprefix)
return
- raise MKUserError(varprefix, _("Value %r is not allowed here.") % (value,))
+ raise MKUserError(varprefix + "_sel", _("Value %r is not allowed here.") % (value,))
# The same logic as the dropdown choice, but rendered
Module: check_mk
Branch: master
Commit: f7819d36121d5d09714a1d62b20c7513de38c772
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f7819d36121d5d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 15 16:33:36 2019 +0100
7030 FIX Fixed baking of solaris packages with custom package names containing "_"
The ruleset "Name of agent packages (Linux/UNIX)" allows customizing the name of the
RPM, DEB, PKG packages. Previous versions allowed to use underscores as parts of the
package names which broke building Solaris PKGs. Underscores are now disallowed by
the ruleset.
CMK-1533
Change-Id: I64c547f9bd2e5fe76786758030fa73b85519fa36
---
.werks/7030 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.werks/7030 b/.werks/7030
new file mode 100644
index 0000000..4e3a716
--- /dev/null
+++ b/.werks/7030
@@ -0,0 +1,14 @@
+Title: Fixed baking of solaris packages with custom package names containing "_"
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1547560141
+
+The ruleset "Name of agent packages (Linux/UNIX)" allows customizing the name of the
+RPM, DEB, PKG packages. Previous versions allowed to use underscores as parts of the
+package names which broke building Solaris PKGs. Underscores are now disallowed by
+the ruleset.
Module: check_mk
Branch: master
Commit: b15011a31735bcd834be0a0f5c10c02d717587a6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b15011a31735bc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 15 16:33:55 2019 +0100
Fixed recently introduced issue with get_checkbox()
Change-Id: I6b5a58a783dcde416c27d2905e008f2a70de41c5
---
cmk/gui/htmllib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmk/gui/htmllib.py b/cmk/gui/htmllib.py
index f6f2cf7..989c613 100644
--- a/cmk/gui/htmllib.py
+++ b/cmk/gui/htmllib.py
@@ -1922,6 +1922,8 @@ class html(HTMLGenerator):
# the form a second time while showing value typed in at the first
# time and complaining about invalid user input)
def form_submitted(self, form_name=None):
+ if form_name is None:
+ return self.request.has_var("filled_in")
return self.request.var("filled_in") == form_name
# Get value of checkbox. Return True, False or None. None means