manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bipul Podder (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONNECTORS-1241) Documentum connector fails list cabinet and folders with custom type / subtype
Date Wed, 16 Sep 2015 16:06:46 GMT
Bipul Podder created CONNECTORS-1241:
----------------------------------------

             Summary: Documentum connector fails list cabinet and folders with custom type
/ subtype
                 Key: CONNECTORS-1241
                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1241
             Project: ManifoldCF
          Issue Type: Bug
          Components: Documentum connector
    Affects Versions: ManifoldCF 2.2, ManifoldCF 2.1
         Environment: All
            Reporter: Bipul Podder
             Fix For: ManifoldCF 2.3


The problem seems to be isOneOf method of org.apache.manifoldcf.crawler.common.DCTM.DocumentumImpl.java


----------------
 public boolean isOneOf(String theType, String[] matchTypeSet)
    throws DocumentumException, RemoteException
  {
    IDfSession objIDfSession = getSession();
    try
    {
      IDfType typeDescription = objIDfSession.getType(theType);
      int i = 0;
      while (i < matchTypeSet.length)
      {
        String matchType = matchTypeSet[i++];
        if (matchType.equalsIgnoreCase(theType))
          return true;
        if (typeDescription.isSubTypeOf(theType))
          return true;
      }
      return false;
    }
-----

the line 
  if (typeDescription.isSubTypeOf(theType))  /* Type description itself is the theType, for
sybtype ( custom type) checking it should be checked against matchedType as below*/

Should be changed with
  if (typeDescription.isSubTypeOf(matchType))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message