[Koha-bugs] [Bug 17088] Bad MARC XML can halt export_records.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 9 15:12:32 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17088

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 54202
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54202&action=edit
Bug 17088 - Bad MARC XML can halt export_records.pl

If export_records.pl encounters a record that fails to load correctly as
a MARC::Record the export process will fail and only the records
encountered up to that point will be exported.

Test Plan:
1) Pick a record in your database, and replace the biblioitems.marcxml field
with some random characters
2) Export your records using the command:
   misc/export_records.pl  --format xml --record-type bibs --filename
/tmp/biblios.xml
3) Note you get an error and the script ends prematurely
4) Apply this patch
5) Repeat step 2
6) Note the full record set is exported ( except for your bad record )
7) Note an error is still generated for your bad record ( useful for
    tracking down bad records ).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list