Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-948

CMIS Connector returns couldn't encrypt null when the query doesn't include cmis:objectId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • ManifoldCF 1.6.1
    • None
    • CMIS connector
    • None

    Description

      Manifold needs to know the objectId of a content to create a reference for it.
      This means that executing the following query there is no problem:

      select * from cmis:document
      

      But trying to execute a similar query:

      select cmis:name from cmis:document
      

      Manifold returns an error from OpenCMIS that is the following:

      couldn't encrypt: null
      

      This because the cmis:objectId is not added in the select clause and it is needed to create a reference for this content inside the Manifold database.

      The workaround is to add the objectId in the query in the following way as the standard CMIS needs:

      select cmis:objectId, cmis:name from cmis:document 
      

      The involved code is the following from the CMISRepositoryConnector:

      ItemIterable<QueryResult> results = session.query(cmisQuery, false).getPage(1000000000);
            for (QueryResult result : results) {
              String id = result.getPropertyValueById(PropertyIds.OBJECT_ID);
              activities.addSeedDocument(id);
            }
      

      Should we solve this issue adding the cmis:objectId parameter if doesn't exist in the select clause of the query?

      Attachments

        Activity

          People

            piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            piergiorgiolucidi@gmail.com Piergiorgio Lucidi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified