Apache Nutch is an extensible and scalable web crawler
NUTCH-1793 HttpRobotRulesParser not configured properly (jnioche)
Julien Nioche67e29cf34cf3
diff --git a/CHANGES.txt b/CHANGES.txtindex 2a44a5d4f..a3478c743 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogNutch Current Development+* NUTCH-1793 HttpRobotRulesParser not configured properly (jnioche)+* NUTCH-1647 protocol-http throws 'unzipBestEffort returned null' for redirected pages (jnioche)* NUTCH-1736 Can't fetch page if http response header contains Transfer-Encoding:chunked (ysc via jnioche)diff --git a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpRobotRulesParser.java b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpRobotRulesParser.javaindex eea37c359..55133413e 100644--- a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpRobotRulesParser.java+++ b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpRobotRulesParser.java@@ -44,8 +44,12 @@ public class HttpRobotRulesParser extends RobotRulesParser {HttpRobotRulesParser() { }public HttpRobotRulesParser(Configuration conf) {- super(conf);- allowForbidden = conf.getBoolean("http.robots.403.allow", false);+ setConf(conf);+ }++ public void setConf(Configuration conf) {+ super.setConf(conf);+ allowForbidden = conf.getBoolean("http.robots.403.allow", true);}/** Compose unique key to store and access robot rules in cache for given URL */