Module: check_mk
Branch: master
Commit: 376a889ede54b7877d06db5ec22f1ee5c6ae8478
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=376a889ede54b7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 22 12:06:44 2014 +0200
FIX Fixed exception during first login of a user when saving of access times is enabled
When a user logged in for the first time an exception could occur when the
tracking of user access times is enabled.
---
.werks/1060 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/userdb.py | 1 +
3 files changed, 12 insertions(+)
diff --git a/.werks/1060 b/.werks/1060
new file mode 100644
index 0000000..c9ef747
--- /dev/null
+++ b/.werks/1060
@@ -0,0 +1,10 @@
+Title: Fixed exception during first login of a user when saving of access times is
enabled
+Level: 1
+Component: multisite
+Class: fix
+State: unknown
+Version: 1.2.5i5
+Date: 1406023447
+
+When a user logged in for the first time an exception could occur when the
+tracking of user access times is enabled.
diff --git a/ChangeLog b/ChangeLog
index 5b6b80c..2591715 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -74,6 +74,7 @@
* 1036 FIX: doc/treasures/downtime: fix --url option, better error output
* 1074 FIX: Fix Virtual Host Tree snapin...
* 1059 FIX: LDAP: Using configured user filter during login to prevent temporary
created users...
+ * 1060 FIX: Fixed exception during first login of a user when saving of access times
is enabled...
WATO:
* 0825 WATO: Hover menu of user online state shows the last seen date/time now
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 7fbecee..d0dc871 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -345,6 +345,7 @@ def load_custom_attr(userid, key, conv_func, default = None):
def save_custom_attr(userid, key, val):
basedir = defaults.var_dir + "/web/" + userid
+ make_nagios_directory(basedir)
create_user_file('%s/%s.mk' % (basedir, key),
'w').write('%s\n' % val)
def get_online_user_ids():