Module: check_mk
Branch: master
Commit: b9cb3180cbe6f7199834cb5b56af3e6b6a38a993
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b9cb3180cbe6f7…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Thu Feb 15 16:03:10 2018 +0100
Windows agent: fix config host restriction comment
Use the correct entry 'host' instead of 'only_on'.
---
agents/windows/Configuration.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/Configuration.h b/agents/windows/Configuration.h
index 34f2a9e..edccb02 100644
--- a/agents/windows/Configuration.h
+++ b/agents/windows/Configuration.h
@@ -36,7 +36,7 @@ class Environment;
[global]
# Process this logfile only on the following hosts
-only_on = zhamzr12
+host = zhamzr12
# Restrict access to certain IP addresses
only_from = 127.0.0.1 192.168.56.0/24
Module: check_mk
Branch: master
Commit: 57fb1517debd6a69c1a9215bac5dfeea36829068
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57fb1517debd6a…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Mon Feb 19 09:39:32 2018 +0100
Win-agent: parse ini file with simpleini library
* Remember to sort keys and values back into load order as the order
plays a role with e.g. config host restriction.
* Drop line numbers from parse error messages as simpleini does not
provide them.
* Add more unit tests for readConfigFile:
* print
* invalid entry
* failed to interpret
---
agents/windows/Configuration.cc | 179 ++++++++++++++++++++-----------
agents/windows/Configuration.h | 13 +--
agents/windows/Makefile.am | 2 +-
agents/windows/build_version | 2 +-
agents/windows/test/ConfigurationTest.cc | 110 +++++++++++++++++--
5 files changed, 222 insertions(+), 84 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=57fb1517de…
Module: check_mk
Branch: master
Commit: 400e8af85dfa0bd4ca0044b32c8f01dd0862886c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=400e8af85dfa0b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 20 15:22:18 2018 +0100
Resetting check config variable structure before loading the checks
Change-Id: I1a47cd0f8cee18598f503539c8fd3ced82cec9e0
---
cmk_base/checks.py | 3 +++
tests/cmk_base/test_checks.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk_base/checks.py b/cmk_base/checks.py
index 12668b6..dcdda9e 100644
--- a/cmk_base/checks.py
+++ b/cmk_base/checks.py
@@ -103,6 +103,9 @@ def get_plugin_paths(*dirs):
# If a check or check.include is both found in local/ and in the
# normal structure, then only the file in local/ must be read!
def load_checks(filelist):
+ # Initialize some data structures which are populated while loading the checks
+ _check_variables.clear()
+
loaded_files = set()
check_variable_defaults = {}
ignored_variable_types = [ type(lambda: None), type(os) ]
diff --git a/tests/cmk_base/test_checks.py b/tests/cmk_base/test_checks.py
index fca7e8d..731befa 100644
--- a/tests/cmk_base/test_checks.py
+++ b/tests/cmk_base/test_checks.py
@@ -206,7 +206,7 @@ check_info["test_check_2"] = {
# Test whether or not factory settings and checkgroup parameters work
-def test_test_check_factory_settings(request, test_cfg, site, web):
+def test_check_factory_settings(request, test_cfg, site, web):
test_check_path = "local/share/check_mk/checks/test_check_3"
def cleanup():
Module: check_mk
Branch: master
Commit: 3d630be10c11344a14182c2cb61e920862992917
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3d630be10c1134…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 20 14:26:25 2018 +0100
5853 FIX Fixed escaped HTML entities in view columns
When creating a PDF report which contains a view element. The columns
in this view could contain HTML escaped special characters like "&quot;".
These signs are now displayed correctly in the PDF export.
Change-Id: Icafe74d682d18daa979e9bb26c46e2dd48ed17fb
---
.werks/5853 | 13 +++++++++++++
web/htdocs/htmllib.py | 7 +++++++
web/htdocs/views.py | 1 +
3 files changed, 21 insertions(+)
diff --git a/.werks/5853 b/.werks/5853
new file mode 100644
index 0000000..e2c1aa6
--- /dev/null
+++ b/.werks/5853
@@ -0,0 +1,13 @@
+Title: Fixed escaped HTML entities in view columns
+Level: 1
+Component: reporting
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i4
+Date: 1519133099
+
+When creating a PDF report which contains a view element. The columns
+in this view could contain HTML escaped special characters like "&quot;".
+These signs are now displayed correctly in the PDF export.
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index e114929..025b97a 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -136,6 +136,13 @@ class Escaper(object):
.replace(">", ">")
+ def unescape_attributes(self, value):
+ return value.replace("&", "&")\
+ .replace(""", "\"")\
+ .replace("<", "<")\
+ .replace(">", ">")
+
+
# render HTML text.
# We only strip od some tags and allow some simple tags
# such as <h1>, <b> or <i> to be part of the string.
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 410c71a..cf1e5da 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -805,6 +805,7 @@ class Cell(object):
else:
txt = img_filename
+ txt = html.unescape_attributes(txt)
txt = html.strip_tags(txt)
return css_classes, txt