Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2452 Allow nutch to retrieve Ftp URLs that contain UrlEncoded characters, closes #237

Hiran Chaudhuri517dbdf3261d
diff --git a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/FtpResponse.java b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/FtpResponse.java
index f7c7c6d12..51bc6bfc9 100644
--- a/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/FtpResponse.java
+++ b/src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/FtpResponse.java
@@ -252,6 +252,8 @@ public class FtpResponse {
}
this.content = null;
+
+ path = java.net.URLDecoder.decode(path, "UTF-8");
if (path.endsWith("/")) {
getDirAsHttpResponse(path, datum.getModifiedTime());