Fix for CLOUD-2264 'SELECT * FROM cmis:folder' query returns objects with cmis:baseTypeId set to 'cmis:document'

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@60760 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2014-01-30 10:56:31 +00:00
parent 29e72b1dad
commit c5f23647cc

View File

@@ -2790,6 +2790,12 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
continue;
}
TypeDefinitionWrapper type = getType(nodeRef);
if (type == null)
{
continue;
}
ObjectDataImpl hit = new ObjectDataImpl();
PropertiesImpl properties = new PropertiesImpl();
hit.setProperties(properties);
@@ -2806,12 +2812,6 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
if (fetchObject)
{
TypeDefinitionWrapper type = getType(nodeRef);
if (type == null)
{
continue;
}
// set allowable actions
if (includeAllowableActions)
{