[jira] [Commented] (CONNECTORS-1526) Empty contents are skipped completely/ignored in documentum connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16594885#comment-16594885 ] Karl Wright commented on CONNECTORS-1526: - Noted that the getFile() method basically relies on DFC to tell us whether it could get the file or not: {code} /** Write the content of the object to a file path. *@param path is where the content should be written. *@return the file path where the content was written. */ public String getFile(String path) throws DocumentumException, RemoteException { try { return ((IDfSysObject)object).getFile(path); } catch (DfAuthenticationException ex) { throw new DocumentumException("Bad credentials: "+ex.getMessage(),DocumentumException.TYPE_BADCREDENTIALS); } catch (DfIdentityException ex) { throw new DocumentumException("Bad docbase name: "+ex.getMessage(),DocumentumException.TYPE_BADCONNECTIONPARAMS); } catch (DfDocbaseUnreachableException e) { throw new DocumentumException("Docbase unreachable: "+e.getMessage(),DocumentumException.TYPE_SERVICEINTERRUPTION); } catch (DfIOException e) { throw new DocumentumException("Docbase io exception: "+e.getMessage(),DocumentumException.TYPE_SERVICEINTERRUPTION); } catch (DfException dfe) { // Can't decide what to do without looking at the exception text. // This is crappy but it's the best we can manage, apparently. String errorMessage = dfe.getMessage(); if (errorMessage.indexOf("[DM_CONTENT_E_CANT_START_PULL]") != -1) { // It's probably not a transient error. Report it as an access violation, even though it // may well not be. We don't have much info as to what's happening. throw new DocumentumException(dfe.getMessage(),DocumentumException.TYPE_NOTALLOWED); } else if (errorMessage.indexOf("[DM_OBJECT_E_LOAD_INVALID_STRING_LEN]") != -1 || errorMessage.indexOf("[DM_PLATFORM_E_INTEGER_CONVERSION_ERROR]") != -1 || errorMessage.indexOf("[DM_STORAGE_E_BAD_TICKET]") != -1) { throw new DocumentumException(dfe.getMessage(),DocumentumException.TYPE_CORRUPTEDDOCUMENT); } // Treat it as transient, and retry throw new DocumentumException(dfe.getMessage(),DocumentumException.TYPE_SERVICEINTERRUPTION); } } {code} The only way to change the behavior is to essentially ignore the specific error condition that's giving you problems, so I need to know which one that is. > Empty contents are skipped completely/ignored in documentum connector > -- > > Key: CONNECTORS-1526 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1526 > Project: ManifoldCF > Issue Type: Bug > Components: Documentum connector >Affects Versions: ManifoldCF 2.9.1 >Reporter: Divya Thejaswini >Assignee: Karl Wright >Priority: Major > > While fetching data from Documentum respository, empty documents are skipped > completely instead of indexing its meta data. > We need someone's help on fixing this in any of the upcoming version or patch > for MCF 2.9.1 version. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (CONNECTORS-1526) Empty contents are skipped completely/ignored in documentum connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16594877#comment-16594877 ] Karl Wright commented on CONNECTORS-1526: - Can you please look at the Simple History Report and find an empty document that was "skipped". Please tell me what the status was for it. There is no limitation currently in the documentum connector that prohibits indexing of empty documents. But if the content cannot be fetched at all, empty or not, we skip it. The code in question is as follows: {code} String strFilePath = null; try { strFilePath = object.getFile(objFileTemp.getCanonicalPath()); } catch (DocumentumException dfe) { // Fetch failed, so log it activityMessage = dfe.getMessage(); if (dfe.getType() == DocumentumException.TYPE_NOTALLOWED) { activityStatus = "NOTALLOWED"; return; } else if (dfe.getType() == DocumentumException.TYPE_CORRUPTEDDOCUMENT) { activityStatus = "CORRUPTEDDOCUMENT"; return; } throw dfe; } long fileLength = objFileTemp.length(); activityFileLength = new Long(fileLength); if (strFilePath == null) { activityStatus = "CONTENTDIDNOTFETCH"; activityMessage = "Content could not be fetched"; // We don't know why it won't fetch, but skip it and keep going. return; } {code} > Empty contents are skipped completely/ignored in documentum connector > -- > > Key: CONNECTORS-1526 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1526 > Project: ManifoldCF > Issue Type: Bug > Components: Documentum connector >Affects Versions: ManifoldCF 2.9.1 >Reporter: Divya Thejaswini >Assignee: Karl Wright >Priority: Major > > While fetching data from Documentum respository, empty documents are skipped > completely instead of indexing its meta data. > We need someone's help on fixing this in any of the upcoming version or patch > for MCF 2.9.1 version. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Assigned] (CONNECTORS-1526) Empty contents are skipped completely/ignored in documentum connector
[ https://issues.apache.org/jira/browse/CONNECTORS-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright reassigned CONNECTORS-1526: --- Assignee: Karl Wright > Empty contents are skipped completely/ignored in documentum connector > -- > > Key: CONNECTORS-1526 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1526 > Project: ManifoldCF > Issue Type: Bug > Components: Documentum connector >Affects Versions: ManifoldCF 2.9.1 >Reporter: Divya Thejaswini >Assignee: Karl Wright >Priority: Major > > While fetching data from Documentum respository, empty documents are skipped > completely instead of indexing its meta data. > We need someone's help on fixing this in any of the upcoming version or patch > for MCF 2.9.1 version. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (CONNECTORS-1526) Empty contents are skipped completely/ignored in documentum connector
Divya Thejaswini created CONNECTORS-1526: Summary: Empty contents are skipped completely/ignored in documentum connector Key: CONNECTORS-1526 URL: https://issues.apache.org/jira/browse/CONNECTORS-1526 Project: ManifoldCF Issue Type: Bug Components: Documentum connector Affects Versions: ManifoldCF 2.9.1 Reporter: Divya Thejaswini While fetching data from Documentum respository, empty documents are skipped completely instead of indexing its meta data. We need someone's help on fixing this in any of the upcoming version or patch for MCF 2.9.1 version. -- This message was sent by Atlassian JIRA (v7.6.3#76005)