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 2015/02/05 00:54:12 UTC

svn commit: r1657443 - in /manifoldcf/trunk: CHANGES.txt connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java

Author: kwright
Date: Wed Feb  4 23:54:11 2015
New Revision: 1657443

URL: http://svn.apache.org/r1657443
Log:
Fix for CONNECTORS-1157

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1657443&r1=1657442&r2=1657443&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Wed Feb  4 23:54:11 2015
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 2.1-dev =====================
 
+CONNECTORS-1157: FileNet connector URI is incorrect for document
+subtypes.
+(Guy Sperry)
+
 CONNECTORS-1154: Changes to the flow through the web connector's
 deflate/unzip logic, designed to prevent gzip headers from being read
 if the stream's contents are not read.

Modified: manifoldcf/trunk/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java?rev=1657443&r1=1657442&r2=1657443&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java (original)
+++ manifoldcf/trunk/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java Wed Feb  4 23:54:11 2015
@@ -3181,8 +3181,8 @@ public class FilenetConnector extends or
   */
   protected static String convertToURI(String urlBase, String documentIdentifier, int elementNumber, String documentClass)
   {
-    // Will this work for sub-types of documents too?  ask - MHL
-    return  urlBase  +  "&id=" + documentIdentifier + "&element="+Integer.toString(elementNumber)+"&objectType="+documentClass;
+    // objectType is the parent object type, which is why Document is correct
+    return  urlBase  +  "&id=" + documentIdentifier + "&element="+Integer.toString(elementNumber)+"&objectType=Document";
   }
 
   protected class CheckConnectionThread extends Thread