<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disabling auto-versioning in Alfresco Linux in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138560#M37106</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think your problem is described here:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/cannot-disable-global-versioning/td-p/35917" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/cannot-disable-global-versioning/td-p/35917&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In short: you may need to modify&amp;nbsp;&lt;SPAN&gt;upload.post.js&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2021 15:17:22 GMT</pubDate>
    <dc:creator>cristinamr</dc:creator>
    <dc:date>2021-01-28T15:17:22Z</dc:date>
    <item>
      <title>Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138559#M37105</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I am not able to disable auto versioning in Alfresco Linux.&lt;BR /&gt;Tested in version 5.2 and 6.1&lt;BR /&gt;See parameters in global properties&lt;/P&gt;&lt;P&gt;#Disable file versioning&lt;BR /&gt;cm: autoVersion = false&lt;BR /&gt;cm: initialVersion = false&lt;/P&gt;&lt;P&gt;version.store.initialVersion = false&lt;BR /&gt;version.store.enableAutoVersioning = false&lt;BR /&gt;version.store.enableAutoVersionOnUpdateProps = false&lt;/P&gt;&lt;P&gt;What is wrong?&lt;BR /&gt;Thanks a lot&lt;BR /&gt;José Roberto&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="historico-versoes-Alfresco.PNG" style="width: 607px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/963i0B6A54687B676934/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 14:02:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138559#M37105</guid>
      <dc:creator>jbrasil</dc:creator>
      <dc:date>2021-01-28T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138560#M37106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think your problem is described here:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/cannot-disable-global-versioning/td-p/35917" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/cannot-disable-global-versioning/td-p/35917&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In short: you may need to modify&amp;nbsp;&lt;SPAN&gt;upload.post.js&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:17:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138560#M37106</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-01-28T15:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138561#M37107</link>
      <description>&lt;P&gt;Hi cristinamr,&lt;BR /&gt;What changes need to be made to the upload.post.js file?&lt;BR /&gt;I saw that it is on /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-5.2.g.jar&lt;BR /&gt;In which folder structure?&lt;BR /&gt;In the post he quoted, he doesn't say what the changes are.&lt;BR /&gt;Can you tell me?&lt;BR /&gt;With best regards,&lt;BR /&gt;José Roberto.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:44:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138561#M37107</guid>
      <dc:creator>jbrasil</dc:creator>
      <dc:date>2021-01-28T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138562#M37108</link>
      <description>&lt;P&gt;You could try it with rules maybe. Try to set it on whole Document Library for the Site you want to disable versioning in it.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/968i0896BDF682949F0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 872px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/965iAF9F33C6F4206550/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Didn't have time to test it more (only uploaded new version of one document and version is still 1.0), so don't know if it will work in all cases.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 10:23:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138562#M37108</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2021-01-29T10:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138563#M37109</link>
      <description>&lt;P&gt;Hi sufo,&lt;BR /&gt;The rule did not work with OCR.&lt;BR /&gt;The following error message occurs:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;00280001 Failed to execute script 'classpath *: alfresco / site-webscripts / org / alfresco / components / documentlibrary / data / surf-doclist.get.js': 00280000&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 10:48:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138563#M37109</guid>
      <dc:creator>jbrasil</dc:creator>
      <dc:date>2021-01-29T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138564#M37110</link>
      <description>&lt;P&gt;I don't know what OCR you are using. If it acts on events (like node creation and update) and is synchronous, then it can cause some trouble as this rule is also synchronous and runs in transaction. Do you see any details in the repository log (alfresco.log) about the error?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 15:02:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138564#M37110</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2021-01-29T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling auto-versioning in Alfresco Linux</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138565#M37111</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/39919"&gt;@jbrasil&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;BR /&gt;I am not able to disable auto versioning in Alfresco Linux.&lt;BR /&gt;Tested in version 5.2 and 6.1&lt;BR /&gt;See parameters in global properties&lt;/P&gt;
&lt;P&gt;#Disable file versioning&lt;BR /&gt;cm: autoVersion = false&lt;BR /&gt;cm: initialVersion = false&lt;/P&gt;
&lt;P&gt;version.store.initialVersion = false&lt;BR /&gt;version.store.enableAutoVersioning = false&lt;BR /&gt;version.store.enableAutoVersionOnUpdateProps = false&lt;/P&gt;
&lt;P&gt;What is wrong?&lt;BR /&gt;Thanks a lot&lt;BR /&gt;José Roberto&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="historico-versoes-Alfresco.PNG" style="width: 607px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/963i0B6A54687B676934/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you update these properties, it doesn't affect existing nodes. It will affect only newly created nodes. Auto version will continue to happen on existing nodes as those nodes would have below given props set:&lt;/P&gt;
&lt;P&gt;&lt;U&gt;This is the default configuration at repo level:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;version.store.initialVersion=true
version.store.enableAutoVersioning=true
version.store.enableAutoVersionOnUpdateProps=false&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;You would need to cleanup the old existing objects by running a script/webscript to set the values to false in order to make them follow the versioning disablement. I don't think there is any change needed in upload functionality If i understood the query properly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Have a look at these posts:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/version-history-does-not-include-property-updates/m-p/297112/highlight/true#M18250" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/version-history-does-not-include-property-updates/m-p/297112/highlight/true#M18250&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you want to version nodes on demand as the nodes are created into repo, better make use of behaviors. Don't change anything in upload.post.js file. With behaviors you would get more control over the nodes and their types and you can choose to version a specific type of node too.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/references/dev-extension-points-behaviors.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/references/dev-extension-points-behaviors.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dev.alfresco.com/resource/docs/java/org/alfresco/repo/node/NodeServicePolicies.OnCreateNodePolicy.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://dev.alfresco.com/resource/docs/java/org/alfresco/repo/node/NodeServicePolicies.OnCreateNodePolicy.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Create a behavior onCreateNode event and bind the behavior to a content type and then set the properties using node service on the creating node like:&lt;/P&gt;
&lt;PRE&gt;private void setVersionPropertiesOnDemand(NodeRef nodeRef) {
	if (nodeService.hasAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE)) {
		Map&amp;lt;QName,Serializable&amp;gt; props = nodeService.getProperties(nodeRef);&lt;BR /&gt;                props.put(ContentModel.PROP_INITIAL_VERSION, true); 
		props.put(ContentModel.PROP_AUTO_VERSION, true);
		props.put(ContentModel.PROP_AUTO_VERSION_PROPS, true);
		nodeService.addProperties(nodeRef, props);
	} else {
		Map&amp;lt;QName,Serializable&amp;gt; versionProps = new ConcurrentHashMap&amp;lt;QName, Serializable&amp;gt;();&lt;BR /&gt;                versionProps.put(ContentModel.PROP_INITIAL_VERSION, true); 
		versionProps.put(ContentModel.PROP_AUTO_VERSION, true);
		versionProps.put(ContentModel.PROP_AUTO_VERSION_PROPS, true);
		nodeService.addAspect(nodeRef, ContentModel.ASPECT_VERSIONABLE, versionProps);
	}
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jan 2021 16:51:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/disabling-auto-versioning-in-alfresco-linux/m-p/138565#M37111</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-01-29T16:51:49Z</dc:date>
    </item>
  </channel>
</rss>

