Bug 41843 - Koha::Authorities->move_to_deleted can die on encoding errors
Summary: Koha::Authorities->move_to_deleted can die on encoding errors
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: MARC Authority data support (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-13 15:01 UTC by Nick Clemens (kidclamp)
Modified: 2026-02-13 15:02 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2026-02-13 15:01:47 UTC

    
Comment 1 Nick Clemens (kidclamp) 2026-02-13 15:02:56 UTC
We should add a try/catch around:
$data->{marcxml} = $record->as_xml_record($format);

and try to ignore bad characters as we do for biblios in other parts of the code - we've already decided to delete it, bad characters shouldn't stop us