[Bug 38737] New: Batch item deletion w/delete record broken
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38737 Bug ID: 38737 Summary: Batch item deletion w/delete record broken Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: magnus@libriotech.no QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl To reproduce in koha-testing-docker (I started it wirh "ktd --es7 up"): - Find a record with at least one item - Click on "Select all" for the items - Click on "Delete selected items" - Click the checkbox for "Delete records if no items remain." - Click on "Delete selected items" - Click on "View detail of the enqueued job" - The job failed Logs: ==> /var/log/koha/kohadev/worker-output.log <== {UNKNOWN}: An Elasticsearch error occurred during bulk delete at /kohadevbox/koha/Koha/BackgroundJob/BatchDeleteItem.pm line 153. at /kohadevbox/koha/Koha/BackgroundJob/BatchDeleteItem.pm line 177 [2024/12/18 08:55:39] [WARN] Uncaught exception processing job id=9: encountered object '{UNKNOWN}: An Elasticsearch error occurred during bulk delete at /kohadevbox/koha/Koha/BackgroundJob/BatchDeleteItem.pm line 153. at /kohadevbox/koha/Koha/BackgroundJob/BatchDeleteItem.pm line 177 ', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /kohadevbox/koha/Koha/BackgroundJob.pm line 270. main::catch {...} /kohadevbox/koha/misc/workers/background_jobs_worker.pl (206) The job in the database: MariaDB [koha_kohadev]> select * from background_jobs where id = 9\G *************************** 1. row *************************** id: 9 status: failed progress: 0 size: 4 borrowernumber: 51 type: batch_item_record_deletion queue: long_tasks data: {"delete_biblios":"on","record_ids":["27","24","25","26"]} context: {"number":"51","register_name":null,"shibboleth":"0","branch":"CPL","cardnumber":"42","flags":"1","desk_name":null,"register_id":null,"emailaddress":null,"interface":"intranet","desk_id":null,"surname":"koha","id":"koha","firstname":null,"branchname":"Centerville"} enqueued_on: 2024-12-18 08:55:39 started_on: 2024-12-18 08:55:39 ended_on: NULL 1 row in set (0.000 sec) -- 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=38737 --- Comment #1 from Magnus Enger <magnus@libriotech.no> --- Switching to SearchEngine = Zebra makes the delete work. -- 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=38737 Magnus Enger <magnus@libriotech.no> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Batch item deletion |Batch item deletion |w/delete record broken |w/delete record and | |Elasticsearch is broken -- 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=38737 --- Comment #2 from Magnus Enger <magnus@libriotech.no> --- I ran into a similar problem on a live server, with Koha 23.11.10 and Elasticsearch 7.16.2. That problem seems to have been solved by reversing the removal of "type => 'data'," from this patch: https://git.koha-community.org/Koha-community/Koha/commit/24aab6b9c52cb98466... but I have tested a similar fix on main, and that did not work. -- 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=38737 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression, RM_priority -- 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=38737 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38737 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m --- Comment #3 from Fridolin Somers <fridolin.somers@biblibre.com> --- Is this obsolete ? Since Bug 33353 removed data -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org