[Koha-bugs] [Bug 28316] Fix ES crashes related to various punctuation characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 10 12:51:23 CEST 2021


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

Peter Vashchuk <stalkernoid at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121443|0                           |1
        is obsolete|                            |
 Attachment #121562|0                           |1
        is obsolete|                            |

--- Comment #16 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 121751
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121751&action=edit
Bug 28316: remove unquoted semicolons and screen all followup colons

Currently searches like: "book:", ":book" and "host-item:test:n"
cause internal server errors.

This patch adds additional regexes that strips the colons from the start
and end of the query, and another regex that screens all follow-up
colons that go after the first colon to avoid errors when searching for
"host-item:test:n".

To reproduce:
1) using ES, search for the book with title that contains
semicolon at the start or at the end of the line, separated with spaces,
this should cause internal server error.
2) try doing the same with something like "host-item:test:n", it should 
result in error as well.
3) apply the patch.
4) repeat steps 1-2, ensure that it works now.

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


More information about the Koha-bugs mailing list