manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shinich...@apache.org
Subject svn commit: r1509136 - in /manifoldcf/trunk: CHANGES.txt connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Date Thu, 01 Aug 2013 09:14:21 GMT
Author: shinichiro
Date: Thu Aug  1 09:14:21 2013
New Revision: 1509136

URL: http://svn.apache.org/r1509136
Log:
Fix for CONNECTORS-750

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1509136&r1=1509135&r2=1509136&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Thu Aug  1 09:14:21 2013
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 1.4-dev =====================
 
+CONNECTORS-750: Skip files when catching FileNotFoundException,
+e.g. access/permission denied files in FileConnector.
+(Shinichiro Abe)
+
 ======================= Release 1.3 =====================
 
 CONNECTORS-761: Fix broken tab in Jira authority connector, and

Modified: manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1509136&r1=1509135&r2=1509136&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
(original)
+++ manifoldcf/trunk/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
Thu Aug  1 09:14:21 2013
@@ -383,6 +383,11 @@ public class FileConnector extends org.a
                     is.close();
                   }
                 }
+                catch (FileNotFoundException e)
+                {
+                  //skip. throw nothing.
+                  Logging.connectors.debug("Skipping file due to " +e.getMessage());
+                }
                 catch (IOException e)
                 {
                   errorCode = "IO ERROR";



Mime
View raw message