]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1667835: avoid edi_fetcher.pl crash upon fetching zero-length file
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 24 Feb 2017 23:04:29 +0000 (18:04 -0500)
committerJason Stephenson <jason@sigio.com>
Fri, 3 Mar 2017 17:43:42 +0000 (12:43 -0500)
commit5f6a1bb64afe8de6d286456fd1b45ea7760a8da1
treeca466a328ab4e5ea8f9a60bc2ffc5eb0f223c296
parentedf891c6431208b15d4bfbc1f10563d525a44f1f
LP#1667835: avoid edi_fetcher.pl crash upon fetching zero-length file

This patch fixes an issue that could cause edi_fetcher.pl to crash
if the EDI partner supplies a zero-length file for Net::FTP to
download; such files are now skipped.

Testing would entail setting up an FTP server that contains a
zero-length file, then setting up an EDI remote account and
using edi_fetcher.pl to try to retrieve the file.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Utils/RemoteAccount.pm