Module: check_mk
Branch: master
Commit: 1590986d32c982aa80f9b29be6d56205cef7205e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1590986d32c982…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jun 19 09:16:53 2017 +0200
4832 FIX Quicksearch: Malformed regular expressions generated no error message when no
specific filters were set
Change-Id: I8da36798fe5983a94da57cfc18ed1f9caf55d6c3
---
.werks/4832 | 11 +++++++++++
web/htdocs/sidebar.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4832 b/.werks/4832
new file mode 100644
index 0000000..f8bf8c6
--- /dev/null
+++ b/.werks/4832
@@ -0,0 +1,11 @@
+Title: Quicksearch: Malformed regular expressions generated no error message when no
specific filters were set
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1497856541
+
+
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 91eb971..d5351a9 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -1080,7 +1080,7 @@ class LivestatusQuicksearch(object):
# No explicit filters set.
# Use configured quicksearch search order
for (filter_name, filter_behaviour) in config.quicksearch_search_order:
- self._search_objects.append(LivestatusSearchConductor({filter_name:
[self._query]}, filter_behaviour))
+ self._search_objects.append(LivestatusSearchConductor({filter_name:
[to_regex(self._query)]}, filter_behaviour))
# Collect the raw data from livestatus