I've an Alfresco Community 6.2 version and I need to update the content of some documents without incrementing the version, from an external process. I've the following behaviour now:
The nodes to be modified have aspect cm:versionable and I cannot change that; If I update the content using REST API trough this PUT https://api-explorer.alfresco.com/alfresco/api/-default-/public/alfresco/versions/1/nodes/aaa/content?majorVersion=false a new minor version is being created.
I cannot remove the aspect because otherwise also the other previous versions of that node (manually created) will be removed, and I cannot afford that.
Is there a way? or some workaround using internal java API or CMIS something??
Thanks
You can simply update a node's content by using
You can disable a node's autoversioning behavior by setting
"cm:autoVersion"=falseAlfresco's version behavior is a bit different as you may expect:
workspace://SpacesStoreworkspace://version2Storeby either checkout/checkin or by behaviorworkspace://version2Storeversion.store.enableAutoVersionOnUpdateProps=true) and/or by the aspectcm:versionableattached to a nodecm:initialVersion=true: indicates that when the versionable aspect is applied, an initial snapshot of the node is taken at that pointcm:autoVersion=true: indicates that when ever a change is made to the content of a node, a new snapshot version will be created in the version storecm:autoVersionOnUpdateProps=false: indicates that when ever a change is made to the properties of a node, a new snapshot version will be created