mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Fix reliance on selection of cmis:objectId in cmis queries, when including acls or renditions in result set.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18902 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,6 +45,7 @@ import org.alfresco.cmis.CMISResultSetRow;
|
||||
import org.alfresco.cmis.CMISServiceException;
|
||||
import org.alfresco.repo.cmis.PropertyFilter;
|
||||
import org.alfresco.repo.cmis.ws.utils.ExceptionUtil;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
* Port for Discovery service.
|
||||
@@ -121,7 +122,8 @@ public class DMDiscoveryServicePort extends DMAbstractServicePort implements Dis
|
||||
Object identifier;
|
||||
try
|
||||
{
|
||||
identifier = cmisService.getReadableObject((String) values.get(CMISDictionaryModel.PROP_OBJECT_ID), Object.class);
|
||||
NodeRef nodeRef = row.getNodeRef();
|
||||
identifier = cmisService.getReadableObject((String) nodeRef.toString(), Object.class);
|
||||
}
|
||||
catch (CMISServiceException e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user