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
PUT /nodes/{nodeId}/content
You can disable a node's autoversioning behavior by setting "cm:autoVersion"=false
Alfresco's version behavior is a bit different as you may expect:
workspace://SpacesStore
workspace://version2Store
by either checkout/checkin or by behaviorworkspace://version2Store
version.store.enableAutoVersionOnUpdateProps=true
) and/or by the aspect cm:versionable
attached 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