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

Peter Vashchuk <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121751|0                           |1
        is obsolete|                            |
 Attachment #121752|0                           |1
        is obsolete|                            |
 Attachment #121753|0                           |1
        is obsolete|                            |
 Attachment #121754|0                           |1
        is obsolete|                            |
 Attachment #121755|0                           |1
        is obsolete|                            |
 Attachment #121756|0                           |1
        is obsolete|                            |

--- Comment #23 from Peter Vashchuk <[email protected]> ---
Created attachment 121837
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121837&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 screens 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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to