mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user