Fix for ALF-16803 CMIS 0.8 TCK - folder updates fails - it returns a versioned objectId

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2012-11-15 09:57:16 +00:00
parent 49a5e13574
commit 71728c6afb

View File

@@ -860,6 +860,11 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
*/
public String createObjectId(NodeRef currentVersionNodeRef)
{
if(getFileFolderService().getFileInfo(currentVersionNodeRef).isFolder())
{
return currentVersionNodeRef.toString();
}
Serializable versionLabel = getNodeService()
.getProperty(currentVersionNodeRef, ContentModel.PROP_VERSION_LABEL);
if (versionLabel == null)