manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kish...@apache.org
Subject svn commit: r1794104 - /manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Date Fri, 05 May 2017 21:00:17 GMT
Author: kishore
Date: Fri May  5 21:00:17 2017
New Revision: 1794104

URL: http://svn.apache.org/viewvc?rev=1794104&view=rev
Log:
Fix Web Connector issue when trustEverything is null

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

Modified: manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java?rev=1794104&r1=1794103&r2=1794104&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
(original)
+++ manifoldcf/trunk/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Fri May  5 21:00:17 2017
@@ -1687,13 +1687,15 @@ public class WebcrawlerConnector extends
         String regexp = cn.getAttributeValue(WebcrawlerConfig.ATTR_URLREGEXP);
         String trustEverything = cn.getAttributeValue(WebcrawlerConfig.ATTR_TRUSTEVERYTHING);
 
+        if(trustEverything == null)
+        {
+          trustEverything = "false";
+        }
+
         trustMap.put("trustEverything",trustEverything);
         trustMap.put("regexp",regexp);
 
-        if (trustEverything != null && trustEverything.equals("true"))
-        {
-        }
-        else
+        if(trustEverything == "false")
         {
           String trustStore = cn.getAttributeValue(WebcrawlerConfig.ATTR_TRUSTSTORE);
           IKeystoreManager localTruststore = KeystoreManagerFactory.make("",trustStore);



Mime
View raw message