Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
ManifoldCF 1.6.1
-
None
-
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?