Fix for ALF-11177: "Cannot access folder where link for content is created via CMIS Workbench"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@37321 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Steven Glover
2012-05-31 15:49:16 +00:00
parent b3f62c505c
commit 8e1e570c3c
2 changed files with 32 additions and 6 deletions

View File

@@ -687,7 +687,7 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
}
return isEnabled;
}
public StoreRef getRootStoreRef()
{
return getRootNodeRef().getStoreRef();
@@ -1609,8 +1609,15 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
continue;
}
result.add(createCMISObject(createNodeInfo(assocRef), null, false, IncludeRelationships.NONE,
RENDITION_NONE, false, false));
try
{
result.add(createCMISObject(createNodeInfo(assocRef), null, false, IncludeRelationships.NONE,
RENDITION_NONE, false, false));
}
catch(CmisObjectNotFoundException e)
{
// ignore objects that have not been found (perhaps because their type is unknown to CMIS)
}
}
return result;
@@ -1676,9 +1683,16 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
max--;
if (max > 0)
{
result.getObjects().add(
createCMISObject(createNodeInfo(assocRef), filter, includeAllowableActions,
IncludeRelationships.NONE, RENDITION_NONE, false, false));
try
{
result.getObjects().add(
createCMISObject(createNodeInfo(assocRef), filter, includeAllowableActions,
IncludeRelationships.NONE, RENDITION_NONE, false, false));
}
catch(CmisObjectNotFoundException e)
{
// ignore objects that have not been found (perhaps because their type is unknown to CMIS)
}
}
else
{