Bug 12229

Summary: tools/export.pl fix to forbid adding of invalid records
Product: Koha Reporter: Stéphane Delaune <stephane.delaune>
Component: ToolsAssignee: Stéphane Delaune <stephane.delaune>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: critical    
Priority: P3 CC: bgkriegel, fridolin.somers, gmcharlt, stephane.delaune
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 13082    
Attachments: proposed patch : fix to prevent adding of invalid records in marc file
[SIGNED-oFF] Bug 12229: fix to prevent adding of invalid records in marc file
[PASSED QA] Bug 12229: fix to prevent adding of invalid records in marc file

Description Stéphane Delaune 2014-05-12 07:37:24 UTC
tools/export.pl it is able to add truncated or invalid records into the output iso2709 file, without error message. So if we want to read generated iso2709 file : script die
Comment 1 Stéphane Delaune 2014-05-12 15:02:36 UTC Comment hidden (obsolete)
Comment 2 Bernardo Gonzalez Kriegel 2014-05-21 19:48:43 UTC Comment hidden (obsolete)
Comment 3 Kyle M Hall (khall) 2014-05-23 10:58:07 UTC
Created attachment 28456 [details] [review]
[PASSED QA] Bug 12229: fix to prevent adding of invalid records in marc file

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No errors

Test:
1. Edit record, add 100.000 chars text to 500a
2. xml export produce the record,
3. mrc export do not produce the record,
warning on log
export.pl: record (number 2025) length 102668 is larger than the MARC spec allows (99999 bytes) at...

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 4 Galen Charlton 2014-05-23 15:37:59 UTC
Pushed to master and 3.16.x.  Thanks, Stéphane!
Comment 5 Fridolin Somers 2014-10-16 10:31:08 UTC
Pushed to 3.14.x, will be in 3.14.12