Author: kwright
Date: Wed Aug 8 09:43:12 2012
New Revision: 1370719
URL: http://svn.apache.org/viewvc?rev=1370719&view=rev
Log:
Fix the Lists URL generation
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=1370719&r1=1370718&r2=1370719&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:43:12 2012
@@ -1166,7 +1166,10 @@ public class SharePointRepository extend
// Convert the modified document path to an unmodified one, plus
a library path.
String decodedListPath =
documentIdentifier.substring(0,dListSeparatorIndex);
String decodedItemPath = decodedListPath +
documentIdentifier.substring(dListSeparatorIndex+2);
- String encodedItemPath = encodePath(decodedItemPath);
+
+ int cutoff = decodedListPath.lastIndexOf("/");
+
+ String encodedItemPath =
encodePath(decodedListPath.substring(cutoff) + "/Lists/" +
decodedItemPath.substring(cutoff+1));
int listCutoff = decodedListPath.lastIndexOf( "/" );
String site = decodedListPath.substring(0,listCutoff);
@@ -1231,7 +1234,6 @@ public class SharePointRepository extend
continue;
}
- int cutoff = decodedListPath.lastIndexOf("/");
Map values = proxy.getFieldValues( metadataDescription,
encodePath(site), listID, "/Lists/" + decodedItemPath.substring(cutoff+1),
dspStsWorks );
if (values != null)
{