Author: kwright
Date: Thu Sep  6 18:26:08 2012
New Revision: 1381707

URL: http://svn.apache.org/viewvc?rev=1381707&view=rev
Log:
Turns out that we don't have a site path on the front of returned documents.

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

Modified: 
manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java?rev=1381707&r1=1381706&r2=1381707&view=diff
==============================================================================
--- 
manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
 (original)
+++ 
manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
 Thu Sep  6 18:26:08 2012
@@ -647,15 +647,6 @@ public class SPSProxyHelper {
                 {
                   resultCount++;
                   String relPath = result.getAttribute("FileRef");
-                  // This includes the document library, so munge the path 
accordingly
-                  if (!relPath.startsWith(serverLocation))
-                  {
-                    // Unexpected processing error; the path to the folder or 
document did not start with the location
-                    // offset, so throw up.
-                    throw new ManifoldCFException("Internal error: Relative 
path '"+relPath+"' was expected to start with '"+
-                      serverLocation+"'");
-                  }
-                  relPath = relPath.substring(serverLocation.length());
 
                   relPath = "/" + relPath;
 


Reply via email to