Bug 41843

Summary: Koha::Authorities->move_to_deleted can die on encoding errors
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: MARC Authority data supportAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
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:

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