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

ASF GitHub Bot commented on NUTCH-2521:
---------------------------------------

sebastian-nagel closed pull request #289: NUTCH-2521 SitemapProcessor to use 
property sitemap.redir.max
URL: https://github.com/apache/nutch/pull/289
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/java/org/apache/nutch/util/SitemapProcessor.java 
b/src/java/org/apache/nutch/util/SitemapProcessor.java
index 31aeda38b..ab4a23ef6 100644
--- a/src/java/org/apache/nutch/util/SitemapProcessor.java
+++ b/src/java/org/apache/nutch/util/SitemapProcessor.java
@@ -191,7 +191,7 @@ private void generateSitemapUrlDatum(Protocol protocol, 
String url, Context cont
       Content content = output.getContent();
 
       // Following redirects http > https and what else
-      int maxRedir = 3;
+      int maxRedir = this.maxRedir;
       while (!output.getStatus().isSuccess() && 
output.getStatus().isRedirect() && maxRedir > 0) {
         String[] stuff = output.getStatus().getArgs();
         url = filterNormalize(stuff[0]);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> SitemapProcessor to use property sitemap.redir.max
> --------------------------------------------------
>
>                 Key: NUTCH-2521
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2521
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 1.15
>            Reporter: Sebastian Nagel
>            Priority: Minor
>             Fix For: 1.15
>
>
> SitemapProcessor isn't actually using the property sitemap.redir.max 
> (NUTCH-2466), instead the maximum number of redirects is hardwired (=3).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to