incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1066781 - /incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Date Thu, 03 Feb 2011 11:34:44 GMT
Author: kwright
Date: Thu Feb  3 11:34:44 2011
New Revision: 1066781

URL: http://svn.apache.org/viewvc?rev=1066781&view=rev
Log:
Update the fix to CONNECTORS-157 to more narrowly target the busted case.

Modified:
    incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java

Modified: incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java?rev=1066781&r1=1066780&r2=1066781&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
(original)
+++ incubator/lcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Thu Feb  3 11:34:44 2011
@@ -4781,10 +4781,9 @@ public class WebcrawlerConnector extends
         else
         {
           java.net.URI parentURL = new java.net.URI(parentIdentifier);
-          if (!rawURL.startsWith("/"))
-            url = parentURL.resolve("/"+rawURL);
-          else
-            url = parentURL.resolve(rawPiece);
+          if (parentURL.getPath() == null || parentURL.getPath().length() == 0)
+            parentURL = new java.net.URI(parentIdentifier + "/");
+          url = parentURL.resolve(rawPiece);
         }
       }
       else



Mime
View raw message