LP#1667835: avoid edi_fetcher.pl crash upon fetching zero-length file user/csharp/lp1667835_edi_fetcher_meets_zero
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 24 Feb 2017 23:04:29 +0000 (18:04 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 3 Mar 2017 16:11:02 +0000 (11:11 -0500)
commit787136cd36f31eb70b69508a2ac37b0d8147b194
treeb73cd30d7ccdcf4f408e6f98694915480ae8fe5c
parent7dae4c2435a9fd9664ecd6c339b0a7e2d62edc28
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>
Open-ILS/src/perlmods/lib/OpenILS/Utils/RemoteAccount.pm