cancel
Showing results for 
Search instead for 
Did you mean: 

Disable auto versioning

zyx974_
Confirmed Champ
Confirmed Champ

Hello,

In Nuxeo 5.6, I had successfully enabled auto versioning with the following parameter in nuxeo.conf :

org.nuxeo.ecm.platform.liveedit.autoversioning=minor

Then I upgraded Nuxeo to 6.0-HF05 and the auto versioning is still OK. But now, i had to disable the auto versioning and I can't do it with :

org.nuxeo.ecm.platform.liveedit.autoversioning=none.

I also tried VersioningService XP as described here. But this still don't work.

How can I disable auto versioning in Nuxeo 6.0-HF05 ?

Thanks.

6 REPLIES 6

Manon_Lumeau
Star Contributor
Star Contributor

Hi,

zyx974_
Confirmed Champ
Confirmed Champ

Hello,

Manon_Lumeau
Star Contributor
Star Contributor

If you did not modify the versioning policy, there should not be auto versioning in your instance, that's the default behavior.

zyx974_
Confirmed Champ
Confirmed Champ

Well, I don't use "VersioningRule" in my bundles and I just modified "liveedit.autoversioning" parameter in nuxeo.conf.

zyx974_
Confirmed Champ
Confirmed Champ

Hello,

Pradeep_Bhat
Star Contributor
Star Contributor

HI, I would suggest you to use versioning rules so that you can disable/enable the versioning for selective documents.

Write an extension for the same to happen.

<extension target="org.nuxeo.ecm.core.versioning.VersioningService"
		point="versioningRules">
		<versioningRule typeName="Folder">
			<initialState major="0" minor="0" />
			<options lifeCycleState="*">
				<none default="true" />
				<minor />
				<major />
			</options>
		</versioningRule>
		<versioningRule typeName="Domain">
			<initialState major="0" minor="0" />
			<options lifeCycleState="*">
				<none default="true" />
				<minor />
				<major />
			</options>
		</versioningRule>
		<versioningRule typeName="File">
			<initialState major="0" minor="0" />
			<options lifeCycleState="*">
				<none default="true" />
				<minor />
				<major />
			</options>
		</versioningRule>
		<versioningRule typeName="Workspace">
			<initialState major="0" minor="0" />
			<options lifeCycleState="*">
				<none default="true" />
				<minor />
				<major />
			</options>
		</versioningRule>
		
		<versioningRule typeName="YourDocument">
			<initialState major="0" minor="0" />
			<options lifeCycleState="*">
				<none default="true" />
				<minor />
				<major />
			</options>
		</versioningRule>
	</extension>

Hope this helps. 🙂

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.