Fix ALF-2319: CMIS 'current' version mapping is not compliant with spec

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20345 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2010-05-21 17:56:57 +00:00
parent 50f445aeee
commit 2df10ea85d
6 changed files with 68 additions and 19 deletions

View File

@@ -1097,7 +1097,6 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
{
objects.add(pwc);
}
objects.add(nodeRef);
VersionHistory versionHistory = versionService.getVersionHistory(nodeRef);
if (versionHistory != null)
{
@@ -1108,6 +1107,10 @@ public class CMISServicesImpl implements CMISServices, ApplicationContextAware,
current = versionHistory.getPredecessor(current);
}
}
else if (pwc == null)
{
objects.add(nodeRef);
}
return objects;
}