Disabling auto-versioning in REST services

cancel
Showing results for 
Search instead for 
Did you mean: 
mbikl
Member II

Disabling auto-versioning in REST services

Hi,

 

I want to disable to-versioning feature in the REST service. I need to change content of document without automatic change of version.

I use this guide - https://docs.alfresco.com/community/tasks/autoversion-disable.html to disable it.

In alfresco-global.properties - version.store.enableAutoVersioning=false

I use this REST endpoint /versions/1/nodes/{nodeId}/content 

BUT, I doesn't work. I have a many of new versions od document.

Any advice to solve this problem?

Thank you.

Martin

 

BUT it doesn't work.

 

7 Replies
angelborroy
Alfresco Employee

Re: Disabling auto-versioning in REST services

Did you re-started Alfresco?

That document with new versions was created before or after applying the change in the configuration?

Hyland Developer Evangelist
mbikl
Member II

Re: Disabling auto-versioning in REST services

Hi,

I restarted tomcat server (a lot of times.. ;o)))

I tried to create a new document (a lot of times... ;o))))

Unfortunately I do not know where is the problem..... ;o/

 

Thank you

Martin 

angelborroy
Alfresco Employee

Re: Disabling auto-versioning in REST services

Sorry, you're right.

I've made a short test and that doesn't work at all.

You can open an issue for that in https://issues.alfresco.com

Hyland Developer Evangelist
mbikl
Member II

Re: Disabling auto-versioning in REST services

Hi,

I opened issue.

Martin

narkuss
Established Member II

Re: Disabling auto-versioning in REST services

Here you can find a very good explanation about versioning in Alfresco. Maybe it can help you to troubleshoot your problem.

Hope it helps

ruthrareka
Member II

Re: Disabling auto-versioning in REST services

Hi can anyone please share the defect link, stuck up with the same kind of issue.

we have the cm:versionable added as a mandatory aspect in content model.

Our customization is to create a excel in alfresco. The excel gets created, but the problem is that its always as 1.1 but has to be 1.0.

Tried the following alternatives, but no use Smiley Sad

1) disabling the behaviour and enabling after the content is updated => nothing reflects

2) removing the versionable aspect and adding after the content is updated => Facing the exception ERROR [org.alfresco.repo.node.integrity.IntegrityChecker] [reportQueueMLC-1] Found 1 integrity violations:Mandatory aspect not set:

3) setting the versionable to false while creating node and then setting it to true once the content is updated => cm:content property is not getting set in that node and hence the no download option available in share.

Would be helpful if the lastest status on the issue raised could be shared, thanks !

angelborroy
Alfresco Employee

Re: Disabling auto-versioning in REST services

May you share additional information?

ACS Version, custom model using the versionable aspect would help and how are you uploading the Excel to Alfresco would help.

Hyland Developer Evangelist