[ 
https://issues.apache.org/jira/browse/NUTCH-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16295239#comment-16295239
 ] 

Hudson commented on NUTCH-2365:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch-trunk #3487 (See 
[https://builds.apache.org/job/Nutch-trunk/3487/])
NUTCH-2365 Fetcher to respect db.ignore.external.links.mode for (snagel: 
[https://github.com/apache/nutch/commit/7cc622e14f9bcdb5fb0547ee54c0966424eabcd9])
* (edit) src/java/org/apache/nutch/fetcher/FetcherThread.java


> HTTP Redirects to SubDomains don't get crawled if 
> db.ignore.external.links.mode == byDomain
> -------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-2365
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2365
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 1.12
>         Environment: Fedora 25
>            Reporter: Sriram Nookala
>            Assignee: Sebastian Nagel
>             Fix For: 1.14
>
>
> Crawling a domain  http://www.mercenarytrader.com which redirects to 
> https://members.mercenarytrader.com which doesn't get followed by Nutch even 
> though 'db.ignore.external.links' is set to 'true' and 
> 'db.ignore.external.links.mode' is set to 'byDomain'. 
>   The bug is in FetcherThread where the comparison is by host and not by 
> domain
> String origHost = new URL(urlString).getHost().toLowerCase();
> >       String newHost = new URL(newUrl).getHost().toLowerCase();
> >       if (ignoreExternalLinks) {
> >         if (!origHost.equals(newHost)) {
> >           if (LOG.isDebugEnabled()) {
> >             LOG.debug(" - ignoring redirect " + redirType + " from "
> >                 + urlString + " to " + newUrl
> >                 + " because external links are ignored");
> >           }
> >           return null;
> >         }
> >       }



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to