manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1370714 - /manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
Date Wed, 08 Aug 2012 09:28:24 GMT
Author: kwright
Date: Wed Aug  8 09:28:24 2012
New Revision: 1370714

URL: http://svn.apache.org/viewvc?rev=1370714&view=rev
Log:
List items need /Lists/ stuck in front

Modified:
    manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java

Modified: manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java?rev=1370714&r1=1370713&r2=1370714&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
(original)
+++ manifoldcf/branches/CONNECTORS-497/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
Wed Aug  8 09:28:24 2012
@@ -730,7 +730,7 @@ public class SharePointRepository extend
                   // The document path includes the library, with no leading slash, and is
decoded.
                   int cutoff = decodedListPath.lastIndexOf("/");
                   String decodedItemPathWithoutSite = decodedItemPath.substring(cutoff+1);
-                  Map values = proxy.getFieldValues( metadataDescription, encodedSitePath,
listID, decodedItemPathWithoutSite, dspStsWorks );
+                  Map values = proxy.getFieldValues( metadataDescription, encodedSitePath,
listID, "/Lists/" + decodedItemPathWithoutSite, dspStsWorks );
                   String modifyDate = (String)values.get("Modified");
                   if (modifyDate != null)
                   {
@@ -1232,7 +1232,7 @@ public class SharePointRepository extend
                     }
 
                     int cutoff = decodedListPath.lastIndexOf("/");
-                    Map values = proxy.getFieldValues( metadataDescription, encodePath(site),
listID, decodedListPath.substring(cutoff+1), dspStsWorks );
+                    Map values = proxy.getFieldValues( metadataDescription, encodePath(site),
listID, "/Lists/" + decodedItemPath.substring(cutoff+1), dspStsWorks );
                     if (values != null)
                     {
                       Iterator iter = values.keySet().iterator();



Mime
View raw message