[Koha-bugs] [Bug 16976] Authorities searches with double quotes gives ZOOM error 20003

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 5 09:15:48 CEST 2017


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

--- Comment #2 from Marc Véron <veron at veron.ch> ---
Created attachment 63957
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63957&action=edit
Bug 16976: Authorities searches with double quotes gives ZOOM error 20003

To recreate:
Go to Home > Authorities
Search "test" (including double quotes

Result: Internal server error, plack error log says:
ZOOM error 20003 "can't set prefix query" (addinfo: "@or @attr 7=1 @attr
1=Heading 0  @attr 1=Heading-Main  @attr 5=1 @attr 4=6 "\\"test\\""") from
diag-set 'ZOOM'

To test:
- Appply patch, restart memchached an dplack
- Repeat search "test"
- Verify that there is no internal server error
- Add an authority containing quotes, e.g. Johann "Wolfie" Goethe
- Search after Wolfie (without quotes)
- Verify that authority ist found
- Search after "Wolfie"
- Verify that authority is found
- Verify that other searches for authorities behave as before

Technical note: Escaping did not work. The patch simply removes double
quotes from search values. Not sure if that is the ultimate solution, but
it works.

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


More information about the Koha-bugs mailing list