manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1382091 - /manifoldcf/trunk/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SPSProxyHelper.java
Date Fri, 07 Sep 2012 16:50:02 GMT
Author: kwright
Date: Fri Sep  7 16:50:02 2012
New Revision: 1382091

URL: http://svn.apache.org/viewvc?rev=1382091&view=rev
Log:
Fix the metadata query; it did not work for documents that had a site path.

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=1382091&r1=1382090&r2=1382091&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
Fri Sep  7 16:50:02 2012
@@ -1808,7 +1808,7 @@ public class SPSProxyHelper {
         ListsWS lservice = new ListsWS(baseUrl + site, userName, password, myFactory, configuration,
connectionManager );
         ListsSoapStub stub1 = (ListsSoapStub)lservice.getListsSoapHandler();
         
-        GetListItemsQuery q = buildMatchQuery("FileRef","Text",docId);
+        GetListItemsQuery q = buildMatchQuery("FileRef","Text",site + docId);
         GetListItemsViewFields viewFields = buildViewFields(fieldNames);
 
         GetListItemsResponseGetListItemsResult items =  stub1.getListItems(docLibrary, "",
q, viewFields, "1", buildNonPagingQueryOptions(), null);
@@ -1818,7 +1818,7 @@ public class SPSProxyHelper {
         MessageElement[] list = items.get_any();
 
         if (Logging.connectors.isDebugEnabled()){
-          Logging.connectors.debug("SharePoint: getListItems for '"+docId+"' xml response:
'" + list[0].toString() + "'");
+          Logging.connectors.debug("SharePoint: getListItems for '"+site+docId+"' xml response:
'" + list[0].toString() + "'");
         }
 
         ArrayList nodeList = new ArrayList();



Mime
View raw message