diff --git a/source/java/org/alfresco/opencmis/CMISConnector.java b/source/java/org/alfresco/opencmis/CMISConnector.java index cc2b67140a..7a881d40f1 100644 --- a/source/java/org/alfresco/opencmis/CMISConnector.java +++ b/source/java/org/alfresco/opencmis/CMISConnector.java @@ -1448,7 +1448,11 @@ 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); + props.put(ContentModel.PROP_AUTO_VERSION_PROPS, false); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); } Map versionProperties = new HashMap(5); @@ -1461,7 +1465,11 @@ 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); + props.put(ContentModel.PROP_AUTO_VERSION_PROPS, false); + nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, props); } Map versionProperties = new HashMap(5);