Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

fix for NUTCH-379

Sami Siren9a21864cd4d6
diff --git a/CHANGES.txt b/CHANGES.txt
index ab40e23b8..2f96b371a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -50,9 +50,6 @@ Unreleased changes (0.9-dev)
17. NUTCH-383 - upgrade to Hadoop 0.7.1 and Lucene 2.0.0. (ab)
-18. NUTCH-391 - ParseUtil logs file contents to log file when it cannot
- find parser (siren)
-
****************************** WARNING !!! ********************************
* This upgrade breaks data format compatibility. A tool 'convertdb' *
* was added to migrate existing CrawlDb-s to the new format. Segment data *
@@ -63,6 +60,11 @@ Unreleased changes (0.9-dev)
18. NUTCH-371 - DeleteDuplicates now correctly implements both parts of
the algorithm. (ab)
+19. NUTCH-391 - ParseUtil logs file contents to log file when it cannot
+ find parser (siren)
+
+20. NUTCH-391 - ParseUtil does not pass through the content's URL to the
+ ParserFactory (Chris A. Mattmann via siren)
Release 0.8 - 2006-07-25
diff --git a/src/java/org/apache/nutch/parse/ParseUtil.java b/src/java/org/apache/nutch/parse/ParseUtil.java
index a747db341..4205ffe9f 100644
--- a/src/java/org/apache/nutch/parse/ParseUtil.java
+++ b/src/java/org/apache/nutch/parse/ParseUtil.java
@@ -65,7 +65,8 @@ public class ParseUtil {
Parser[] parsers = null;
try {
- parsers = this.parserFactory.getParsers(content.getContentType(), "");
+ parsers = this.parserFactory.getParsers(content.getContentType(),
+ content.getUrl() != null ? content.getUrl():"");
} catch (ParserNotFound e) {
if (LOG.isWarnEnabled()) {
LOG.warn("No suitable parser found when trying to parse content " + content.getUrl() +