[Koha-bugs] [Bug 28292] Searching with colon ":" in the end of query gives internal server error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 21 14:07:46 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28292

--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 121273
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121273&action=edit
Bug 28292: strip the colon when it ends the query

This patch adds additional regexp that strips the colon when it ends
the query to avoid the internal server error. Also this patch adds new
tests that check if colon gets removed from the very beginning and
the very end of the query.

To reproduce:
1) Enable ES and try to search "test:", which should give the internal server
error.
2) Apply the patch, perform the same search again. Make sure that it doesn't
gives that same error.
3) Additionally run t/Koha/SearchEngine/Elasticsearch/QueryBuilder.t test and
ensure that all tests are successful.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list