Koha-clms/Koha/BackgroundJob
Jonathan Druart 27793b8979 Bug 29387: Stringify exception when logging error during a batch mod biblio
If an exception is raised by one the methods/subroutines called when batch biblio update, the job will fail in the middle and some records won't be processed.

Test plan:
0. Don't apply the patch
In KTD you can run the a batch mod biblio on the 100 first records and
the worker will fail with
"""
countered object 'C4::Biblio::_koha_modify_biblioitem_nonmarc(): DBI Exception: DBD::mysql::st execute failed: Data too long for column 'lccn' at row 1 at /kohadevbox/koha/C4/Biblio.pm line 423
', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing) at /kohadevbox/koha/Koha/BackgroundJob/BatchUpdateBiblio.pm line 120.
"""
The UI is not saying anything about this problem.

Generate 100 biblionumbers: perl -e 'for (1..100){print "$_\n"}'
1. Apply the patch and confirm than now you see the detail of the batch
update and that biblionumber 72 is marked as not been modified with the
correct error (raw DBI error)

JK: add executable bit to BatchUpdateBiblio.t
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-11-19 15:23:27 +01:00
..
BatchCancelHold.pm Bug 23678: Include file for batch_hold_cancel 2021-10-01 16:09:20 +02:00
BatchDeleteAuthority.pm Bug 26080: Use the task queue for batch delete authorities 2021-10-01 15:35:36 +02:00
BatchDeleteBiblio.pm Bug 26080: (QA follow-up) Add POD 2021-10-01 15:35:36 +02:00
BatchDeleteItem.pm Bug 28413: (QA follow-up) Fix for missing use Koha::Items 2021-11-15 12:38:39 +01:00
BatchUpdateAuthority.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
BatchUpdateBiblio.pm Bug 29387: Stringify exception when logging error during a batch mod biblio 2021-11-19 15:23:27 +01:00
BatchUpdateItem.pm Bug 28445: Remove modified_itemitemnumbers 2021-10-28 12:05:43 +02:00