---- Reported by email@example.com 2008-07-30 13:36:16 ----
A MARC record that is corrupt because it has non-UTF8 control characters in the leader can be successfully staged, but a commit operation (e.g., commit_biblios_file.pl) can fail because the MARCXML generated by the staging operation is invalid.
The error message associated with the crash is:
substr outside of string at /usr/local/share/perl/5.8.8/MARC/Record.pm line 554.
This is a multi-part bug:
 MARC::File::XML should not emit a UTF-8 MARC record that isn't actually valid UTF-8.
 This kind of record corruption should be detected during staging.
 $marc->warnings() should be checked; if it includes a warn that the leader is not of the correct length, the record should be considered corrupt.
---- Additional Comments From firstname.lastname@example.org 2008-07-30 13:37:42 ----
Created an attachment
file that triggers the bug
To reproduce the bug with this file:
stage_biblios_file.pl --file bad.mrc
commit_biblios --batch-number foo
---- Additional Comments From email@example.com 2008-08-09 17:27:17 ----
Bumping up to 3.2
--- Bug imported by firstname.lastname@example.org 2010-05-21 00:51 UTC ---
This bug was previously known as _bug_ 2435 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=2435
Imported an attachment (id=671)
Actual time not defined. Setting to 0.0
CC member email@example.com does not have an account here
CC member firstname.lastname@example.org does not have an account here
CC member email@example.com does not have an account here
The original submitter of attachment 671 [details] is unknown.
Reassigning to the person who moved it here: firstname.lastname@example.org.
Another very old bug - can someone test and confirm if this is fixed or needs a patch?
*** Bug 2810 has been marked as a duplicate of this bug. ***
This does not happen anymore as of koha 3.8 (or at least, this file does not cause issues anymore).