[Bug 30386] New: Prevent search errors if deleted record still remains in search indexes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Bug ID: 30386 Summary: Prevent search errors if deleted record still remains in search indexes Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: kyle@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org If a bib is deleted, but for some reason doesn't get deleted from the search indexes, any search where that record is a result will produce the error: Can't call method "items" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 2064. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |kyle@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 --- Comment #1 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 132349 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132349&action=edit Bug 30386: Prevent search errors if deleted record still remains in search indexes If a bib is deleted, but for some reason doesn't get deleted from the search indexes, any search where that record is a result will produce the error: Can't call method "items" on an undefined value at /usr/share/koha/lib/C4/Search.pm line 2064. Test Plan: 1) Enable item-level_itypes 2) Create 3 records in Koha that share a word 3) Search for that word, note your 3+ results 4) Delete one of those recordst from the database using koha-mysql 5) Search for the word again 6) Note the error! 7) Apply this patch 8) Search for the word again 9) Note you get results! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- I could not reproduce this error. I also tried this test plan: 1) Enable item-level_itypes 2) Create 3 records in Koha that share a word 3) Ran koha-rebuild-zebra 4) Search for that word, note your 3+ results 5) Ran koha-indexer --stop kohadev 6) delete from biblio where biblionumber = XXX; 7) Searched again, deleted record still returned along with the others. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Liz Rea <wizzyrea@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wizzyrea@gmail.com --- Comment #3 from Liz Rea <wizzyrea@gmail.com> --- This is for elastic search, I believe, not zebra. Cheers, Liz -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30386 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com Resolution|--- |DUPLICATE Status|Needs Signoff |RESOLVED --- Comment #4 from Nick Clemens <nick@bywatersolutions.com> --- *** This bug has been marked as a duplicate of bug 29374 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org