[Bug 2435] New: corrupt MARC record can abort import batch commit
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2435 Summary: corrupt MARC record can abort import batch commit Product: Koha Version: HEAD Platform: PC OS/Version: All Status: NEW Severity: major Priority: P3 Component: MARC Bibliographic record staging/import AssignedTo: galen.charlton@liblime.com ReportedBy: galen.charlton@liblime.com QAContact: koha-bugs@lists.koha.org CC: rch@liblime.com, michele.maenpaa@liblime.com 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: [1] MARC::File::XML should not emit a UTF-8 MARC record that isn't actually valid UTF-8. [2] This kind of record corruption should be detected during staging. [3] $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. ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
participants (1)
-
bugzilla-daemon@pippin.metavore.com