Module: check_mk
Branch: master
Commit: 1f0723f5bb2573cf481ebc30eb7a3fe4867db16d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f0723f5bb2573…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Sep 30 11:53:09 2014 +0200
#1121 FIX Rule based notifications formular: No longer raises Request-Uri-Too-Large
errors
If you wanted to create/edit a rule based notifcation and the formular itself had too
much
configurable host tags, contact groups, etc. there was a problem on sending this formular
to the server.
The data was sent with a GET request, which only allowed a limited url length.
This formular is now sent with a POST request.
---
.werks/1121 | 12 ++++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/1121 b/.werks/1121
new file mode 100644
index 0000000..0a7d70a
--- /dev/null
+++ b/.werks/1121
@@ -0,0 +1,12 @@
+Title: Rule based notifications formular: No longer raises Request-Uri-Too-Large errors
+Level: 1
+Component: wato
+Compatible: compat
+Version: 1.2.5i6
+Date: 1412070448
+Class: fix
+
+If you wanted to create/edit a rule based notifcation and the formular itself had too
much
+configurable host tags, contact groups, etc. there was a problem on sending this formular
to the server.
+The data was sent with a GET request, which only allowed a limited url length.
+This formular is now sent with a POST request.
diff --git a/ChangeLog b/ChangeLog
index 60164b4..f837830 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -129,6 +129,7 @@
* 1396 FIX: Fix default setting of Enable sounds in views...
* 1109 FIX: WATO active checks: passwords no longer shown as plain text....
* 1119 FIX: WATO create rule: No longer raises an incorrect permission warning when
creating a new rule...
+ * 1121 FIX: Rule based notifications formular: No longer raises Request-Uri-Too-Large
errors...
Notifications:
* 1151 Add variables (HOST/SERVICE)ACK(AUTHOR/COMMENT) to notification context...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 12088e8..ad72b8d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9105,7 +9105,7 @@ def mode_notification_rule(phase, profilemode):
return "notifications"
- html.begin_form("rule")
+ html.begin_form("rule", method = "POST")
vs.render_input("rule", rule)
vs.set_focus("rule")
forms.end()