commit | 2454e594b924522113e6281f1a1913aed35f0615 | [log] [tgz] |
---|---|---|
author | Karl Wright <kwright@apache.org> | Tue May 28 11:40:32 2019 +0000 |
committer | Karl Wright <kwright@apache.org> | Tue May 28 11:40:32 2019 +0000 |
tree | 93692db06dd390cfe3b8b1c8929cdb1491fc6f11 | |
parent | d5de36591e132c11a73f32dc329954fe5a491d28 [diff] |
Fix for CONNECTORS-1609. git-svn-id: https://svn.apache.org/repos/asf/manifoldcf/trunk@1860246 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt index 66f2b7b..9f1bd9a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt
@@ -3,6 +3,10 @@ ======================= 2.14-dev ===================== +CONNECTORS-1609: SharePoint: Treat document fetch 403 and 503 errors as meaning +insufficient permissions, and skip the document. +(Karl Wright) + CONNECTORS-1605: HTML-extractor: Use body tag if specified tag is not available. (Olivier Tavard)
diff --git a/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java b/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java index 28fbeb2..9fc5fba 100644 --- a/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java +++ b/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
@@ -1761,7 +1761,7 @@ emt.start(); int returnCode = emt.finishUp(); - if (returnCode == 404 || returnCode == 401 || returnCode == 400 || returnCode == 415) + if (returnCode == 404 || returnCode == 401 || returnCode == 403 || returnCode == 400 || returnCode == 415 || returnCode == 503) { // Well, sharepoint thought the document was there, but it really isn't, so delete it. errorCode = "DOCUMENTNOTFOUND";