Skip to content

Commit

Permalink
NUTCH-3039 Failure to handle ftp:// URLs
Browse files Browse the repository at this point in the history
Pass ftp:// URLs to the standard JVM URLStreamHandler
  • Loading branch information
sebastian-nagel committed May 14, 2024
1 parent 7ac3ce2 commit ea9c7ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ public class URLStreamHandlerFactory
* Protocols covered by standard JVM URL handlers. These protocols must not be
* handled by Nutch plugins, in order to avoid that basic actions (eg. loading
* of classes and configuration files) break.
*
* Also the "ftp" protocol is included: it's usually supported by the standard
* JVM URL handler and Nutch does not yet provide a dedicated URL stream
* handler.
*/
public static final String[] SYSTEM_PROTOCOLS = { //
"http", "https", "file", "jar" };
"http", "https", "file", "jar", "ftp" };

static {
instance = new URLStreamHandlerFactory();
Expand Down

0 comments on commit ea9c7ee

Please sign in to comment.