From f9843974bc220ee87c646ff3a83bf70557bf161e Mon Sep 17 00:00:00 2001 From: nlevitt Date: Tue, 17 Nov 2009 02:49:57 +0000 Subject: [PATCH] Update commons-net to 2.0 to incorporate fix to this bug - http://issues.apache.org/jira/browse/NET-36 - we saw the problem manifest in an archive-it crawl. * ClientFTP.java override buggy org.apache.commons.net.ftp.FTP.getReplyStrings() with fixed version, see https://issues.apache.org/jira/browse/NET-257 * .classpath, commons/pom.xml update dependency to 2.0 jar --- .classpath | 2 +- commons/pom.xml | 2 +- commons/src/main/java/org/archive/net/ClientFTP.java | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.classpath b/.classpath index 3c5d7a2c..1e78ebf7 100644 --- a/.classpath +++ b/.classpath @@ -30,7 +30,7 @@ - + diff --git a/commons/pom.xml b/commons/pom.xml index a3a164c5..dc9b6c67 100644 --- a/commons/pom.xml +++ b/commons/pom.xml @@ -121,7 +121,7 @@ commons-net commons-net - 1.4.1 + 2.0 compile diff --git a/commons/src/main/java/org/archive/net/ClientFTP.java b/commons/src/main/java/org/archive/net/ClientFTP.java index 2449d7c3..1c2681f8 100644 --- a/commons/src/main/java/org/archive/net/ClientFTP.java +++ b/commons/src/main/java/org/archive/net/ClientFTP.java @@ -153,4 +153,10 @@ public class ClientFTP extends FTPClient implements ProtocolCommandListener { private void recordAdditionalInfo(String message) { recordControlMessage("* ", message); } + + // XXX see https://issues.apache.org/jira/browse/NET-257 + @Override + public String[] getReplyStrings() { + return _replyLines.toArray(new String[0]); + } }