https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44026
--- Comment #3 from David Nind <[email protected]> --- Created attachment 211151 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211151&action=edit Bug 44026: Do not die when a bulk cover upload fails When a zip upload sets an error and no line gave a biblionumber (or the file is not a zip), upload-cover-image.pl called Koha::Items->find(undef)->biblionumber and died, so the librarian saw an error page instead of the error message. Test plan: 1. Tools > Upload local cover image, choose a text file renamed to .zip, choose "ZIP file", Process images: error page (500). 2. Same with a zip whose datalink.txt contains "6 cover.jpg" (no comma): error page. 3. Apply the patch, restart Plack. 4. Repeat 1: "Failed to unzip archive." is shown. 5. Repeat 2: "Unrecognized or missing field delimiter." is shown. 6. Upload a good zip and a single image for a record: both still work. Sponsored-by: Koha Solutions Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
