You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/09/16 15:19:59 UTC

svn commit: r1523640 - /manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java

Author: kwright
Date: Mon Sep 16 13:19:59 2013
New Revision: 1523640

URL: http://svn.apache.org/r1523640
Log:
Possible fix for CONNECTORS-776.  Assumes that it is the encodedServerLocation that is prepended to the relPath; we still need confirmation.

Modified:
    manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java

Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java?rev=1523640&r1=1523639&r2=1523640&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java (original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java Mon Sep 16 13:19:59 2013
@@ -1405,7 +1405,7 @@ public class SharePointRepository extend
               Logging.connectors.debug( "SharePoint: Document identifier is a library: '" + siteLibPath + "'" );
 
             // Calculate the start of the path part that would contain the folders/file
-            int foldersFilePathIndex = site.length() + 1 + libName.length();
+            int foldersFilePathIndex = encodedServerLocation.length() + site.length() + 1 + libName.length();
 
             String libID = proxy.getDocLibID( encodePath(site), site, libName, fullListPaths );
             if (libID != null)