cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCMIS auto version when update properties in Community 5.0c

danielgonzález
Champ in-the-making
Champ in-the-making
Hi.

I'm developing a Java Application wich uses OpenCMIS to communicate with Alfresco Repository. When I update a document's properties a new version is always created. I've read a lot about the subject, but the only solutions I've found are those suggesting setting the autoVersion and autoVersionOnUpdateProps properties to false in the contentModel.xml. But in the Community 5.0 version of Alfresco the Content Model is inside a jar.

So, is there any simple way to do this? Or do I have to create a custom content type just for this?

Thanks.
11 REPLIES 11

mreyem
Champ in-the-making
Champ in-the-making
Hi, kinda same problem here with Alfresco 5.0.c and OpenCmis API:

- I created a behaviour that changes the version properties of autoVersioning to false. No effect
- Set the property "version.store.enableAutoVersioning=false" just to try it (it would not be a solution for me, but I just wanted to test it). No effect

No matter what, the contents are always autoversioned.

Changing the contentModel.xml directly is out of discussion, but I don't think it would solve the issue anyway.

Any ideas?

afaust
Legendary Innovator
Legendary Innovator
Hello,

I haven't checked yet but potentially, the CMIS implementation changed a bit in Alfresco 5.0.c and CMIS operations now automatically create a version unless the CMIS operation provides the proper versioningState parameter value (CMIS 1.1 section 2.1.13.7).

Regards
Axel