bulkmarcimport.pl can crash when searching for duplicates if the 005 field from the incoming or local record is not defined.
Created attachment 23620 [details] [review] proposed patch
Created attachment 23621 [details] [review] proposed patch
Created attachment 23754 [details] [review] Bug 11412: Bulkmarcimport can crash when searching for duplicates in authorities bulkmarcimport.pl can crash when searching for duplicates if the 005 field from the incoming or local record is not defined. This patch fixes it. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Test plan 1/ Create a record with no 005 field 2/ Try to import it checking for duplicates, notice it crashes 3/ Try with a record with a 005 field, but the one in Koha missing one, still crashes 4/ Apply patch 5/ No more crash
Created attachment 23819 [details] [review] [PASSED QA] Bug 11412: Bulkmarcimport can crash when searching for duplicates in authorities bulkmarcimport.pl can crash when searching for duplicates if the 005 field from the incoming or local record is not defined. This patch fixes it. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Test plan 1/ Create a record with no 005 field 2/ Try to import it checking for duplicates, notice it crashes 3/ Try with a record with a 005 field, but the one in Koha missing one, still crashes 4/ Apply patch 5/ No more crash Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passes all tests and QA script. Patch fixes the problem described for importing authorities with the bulkmarcimport.pl when trying to match with existing records.
And a special thanks to Galen for http://galencharlton.com/blog/2013/10/introducing-the-next-new-marc-editor-vim/ :)
Pushed to master. Thanks, Matthias!
Patch pushed to 3.14.x, will be in 3.14.2.
This patch has been pushed to 3.12.x, will be in 3.12.11. Thanks Matthias!