diff --git a/source/java/org/alfresco/opencmis/CMISConnector.java b/source/java/org/alfresco/opencmis/CMISConnector.java index c829d05561..5807b74e08 100644 --- a/source/java/org/alfresco/opencmis/CMISConnector.java +++ b/source/java/org/alfresco/opencmis/CMISConnector.java @@ -1369,7 +1369,10 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen { if (!nodeService.hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE)) { - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); + Map props = new HashMap(); + props.put(ContentModel.PROP_INITIAL_VERSION, false); + props.put(ContentModel.PROP_AUTO_VERSION, false); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); } Map versionProperties = new HashMap(5); @@ -1382,7 +1385,10 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen { if (!nodeService.hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE)) { - nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, null); + Map props = new HashMap(); + props.put(ContentModel.PROP_INITIAL_VERSION, false); + props.put(ContentModel.PROP_AUTO_VERSION, false); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); } Map versionProperties = new HashMap(5);