Module: check_mk
Branch: master
Commit: 880dda03365cb1fbd5f5c09be706debbb8fca8cf
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=880dda03365cb1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 10 18:08:37 2016 +0100
Invalid exception handling when trying to edit a non existing custom user attribute
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ed7da65..b96c522 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14259,7 +14259,7 @@ def mode_edit_custom_attr(phase, what):
if not new:
attr = [ a for a in attrs if a['name'] == name ]
if not attr:
- raise MKUserError(_('The attribute does not exist.'))
+ raise MKUserError(None, _('The attribute does not exist.'))
else:
attr = attr[0]
else:
Module: check_mk
Branch: master
Commit: cfbc234964665b6cd8f9357698f3eb77b14cae21
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cfbc234964665b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 10 13:52:23 2016 +0100
3285 FIX Fixed exception when editing large bookmark lists
---
.werks/3285 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/pagetypes.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3285 b/.werks/3285
new file mode 100644
index 0000000..013724d
--- /dev/null
+++ b/.werks/3285
@@ -0,0 +1,10 @@
+Title: Fixed exception when editing large bookmark lists
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457614325
+
+
diff --git a/ChangeLog b/ChangeLog
index 8c752fb..da52703 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -92,6 +92,7 @@
* 3090 FIX: fixed perf-o-meter link leading to old graph page even when new graphs are being used
* 3260 FIX: Availability: ignores completely unmonitored objects in summary calculation
* 3279 FIX: LDAP: Fixed default values of attribute selections...
+ * 3285 FIX: Fixed exception when editing large bookmark lists
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node selection...
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index 9a2040a..3045a53 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -907,7 +907,7 @@ class Overridable:
if page:
raise MKUserError("_p_name", _("You already have an element with the ID <b>%s</b>") % page_dict["name"])
- new_page_dict = forms.edit_valuespec(vs, page_dict, validate=validate, focus="_p_title")
+ new_page_dict = forms.edit_valuespec(vs, page_dict, validate=validate, focus="_p_title", method="POST")
if new_page_dict != None:
# Take over keys from previous value that are specific to the page type
# and not edited here.