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

@@ -50,13 +50,11 @@ public class VersionLabelProperty extends AbstractVersioningProperty
{
return "pwc";
}
if (getVersionSeries(nodeRef).equals(nodeRef))
Serializable versionLabel = getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_VERSION_LABEL);
if (versionLabel == null)
{
return "current";
}
else
{
return getServiceRegistry().getNodeService().getProperty(nodeRef, ContentModel.PROP_VERSION_LABEL);
return "0.0";
}
return versionLabel;
}
}