Module: check_mk
Branch: master
Commit: 65d553a3f1830060e8a3e4eaf2e5c1719b2d8dba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=65d553a3f18300…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Mar 16 09:15:00 2015 +0100
#1230 FIX Fixed possible encoding problem with useres containing non ASCII Characters
---
.werks/1230 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/lib.py | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/1230 b/.werks/1230
new file mode 100644
index 0000000..80ba941
--- /dev/null
+++ b/.werks/1230
@@ -0,0 +1,10 @@
+Title: Fixed possible encoding problem with useres containing non ASCII Characters
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1426493622
+
+
diff --git a/ChangeLog b/ChangeLog
index ab4a302..e7ad11f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -353,6 +353,7 @@
* 2084 FIX: Disabled notification for a user is now shown on profile page even when
not permitted to edit...
* 2045 FIX: Avoid fetching SNMP data when showing service list in WATO - unless Full
Scan is pressed
* 2047 FIX: Allow overriding existing WATO rules by own files in local/ hierarchy...
+ * 1230 FIX: Fixed possible encoding problem with useres containing non ASCII
Characters
Notifications:
* 1662 notification plugin spectrum: finalized script. now able to handle host
notications
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index 7e0ffe5..fd56acf 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -82,6 +82,7 @@ class MKInternalError(MKException):
# Create directory owned by common group of Nagios and webserver,
# and make it writable for the group
def make_nagios_directory(path):
+ path = path.decode('utf-8')
if not os.path.exists(path):
parent_dir, lastpart = path.rstrip('/').rsplit('/', 1)
make_nagios_directory(parent_dir)