Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 120EE18C0D for ; Wed, 16 Sep 2015 16:16:46 +0000 (UTC) Received: (qmail 97734 invoked by uid 500); 16 Sep 2015 16:16:46 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 97694 invoked by uid 500); 16 Sep 2015 16:16:46 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 97681 invoked by uid 99); 16 Sep 2015 16:16:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2015 16:16:45 +0000 Date: Wed, 16 Sep 2015 16:16:45 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CONNECTORS-1241) Documentum connector fails list cabinet and folders with custom type / subtype MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright resolved CONNECTORS-1241. ------------------------------------- Resolution: Fixed r1703431. Thanks! > 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.1, ManifoldCF 2.2 > Environment: All > Reporter: Bipul Podder > Assignee: Karl Wright > 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)