Fix for CLOUD-2249 'SELECT * FROM cmis:folder' query returns object with 'null' parameter

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@59557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2014-01-08 15:25:54 +00:00
parent 12e0a9327e
commit 5d830f1a9f
3 changed files with 15 additions and 5 deletions

View File

@@ -2783,6 +2783,13 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
for (CMISResultSetRow row : rs)
{
NodeRef nodeRef = row.getNodeRef();
if(!nodeService.exists(nodeRef) || filter(nodeRef))
{
continue;
}
ObjectDataImpl hit = new ObjectDataImpl();
PropertiesImpl properties = new PropertiesImpl();
hit.setProperties(properties);
@@ -2799,7 +2806,6 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
if (fetchObject)
{
NodeRef nodeRef = row.getNodeRef();
TypeDefinitionWrapper type = getType(nodeRef);
if (type == null)
{