[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
Fri Jun 18 09:49:03 CEST 2021


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

Peter Vashchuk <stalkernoid at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121975|0                           |1
        is obsolete|                            |
 Attachment #121976|0                           |1
        is obsolete|                            |
 Attachment #121977|0                           |1
        is obsolete|                            |
 Attachment #121978|0                           |1
        is obsolete|                            |
 Attachment #121979|0                           |1
        is obsolete|                            |
 Attachment #121980|0                           |1
        is obsolete|                            |

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

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

This patch adds additional regexes that remove the colons at 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