manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1526) Empty contents are skipped completely/ignored in documentum connector
Date Tue, 28 Aug 2018 12:11:00 GMT


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:

  /** 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
      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
        // 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);

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:
>             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

View raw message