[Koha-bugs] [Bug 31013] Reserved words as branchcodes cause search error in Elasticsearch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 22 15:21:13 CEST 2022


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 136412
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136412&action=edit
Bug 31013: Quote branchcodes in Elasticsearch limits

This patch adds quoting when handling branchcodes in searching in order
to prevent errors when branchcodes are reserved words in ES

To test:
0 - Be using Elasticsearch with Koha
1 - Add a new branch code:OR name:Orly
2 - Add an item to this branch
3 - Use advanced search to limit search to only Orly
4 - Oh really bad, the search fails!
5 - Apply patch
6 - Repeat search
7 - Oh really good, the search succeeds
8 - prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

-- 
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