This is an automated email from the ASF dual-hosted git repository.

snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/master by this push:
     new 517dbdf  NUTCH-2452 Allow nutch to retrieve Ftp URLs that contain 
UrlEncoded characters, closes #237
517dbdf is described below

commit 517dbdf3261d42e90883d07320b7991ff8e2bcf8
Author: Hiran Chaudhuri <[email protected]>
AuthorDate: Sat Oct 28 01:15:22 2017 +0200

    NUTCH-2452 Allow nutch to retrieve Ftp URLs that contain UrlEncoded 
characters, closes #237
---
 .../src/java/org/apache/nutch/protocol/ftp/FtpResponse.java             | 2 ++
 1 file changed, 2 insertions(+)

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 f7c7c6d..51bc6bf 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());

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to