manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1441558 - /manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java
Date Fri, 01 Feb 2013 18:01:58 GMT
Author: kwright
Date: Fri Feb  1 18:01:58 2013
New Revision: 1441558

URL: http://svn.apache.org/viewvc?rev=1441558&view=rev
Log:
If a null content type is checked, bash it to 'application/unknown' for better control determining
what to do with it

Modified:
    manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java

Modified: manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java?rev=1441558&r1=1441557&r2=1441558&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java
(original)
+++ manifoldcf/trunk/connectors/elasticsearch/connector/src/main/java/org/apache/manifoldcf/agents/output/elasticsearch/ElasticSearchSpecs.java
Fri Feb  1 18:01:58 2013
@@ -157,14 +157,14 @@ public class ElasticSearchSpecs extends 
   public boolean checkExtension(String extension)
   {
     if (extension == null)
-      return false;
+      extension = "";
     return extensionSet.contains(extension);
   }
 
   public boolean checkMimeType(String mimeType)
   {
     if (mimeType == null)
-      return false;
+      mimeType = "application/unknown";
     return mimeTypeSet.contains(mimeType);
   }
 }



Mime
View raw message