<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Version history does not include property updates in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71952#M23416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The version 1.0 is created when the document is initially created and only with the properties set at this time. If you update the properties / metadata only,&amp;nbsp;the behaviour is dependent on a metadata property called "cm:autoVersionOnUpdateProps" which can be set on any node. Depending on how you create the document (via which API), there may be different default values. Provided that the specific API you are using to create the document does not set a value, the default will be determined by&amp;nbsp;version.store.enableAutoVersionOnUpdateProps, or it will be set to true (if that config variable has not been set).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that property is set to true, any property updates on a node will trigger creation of a new version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same concept also applies to automatic version creation on content change. There is "cm:autoVersion", which can have its default defined via&amp;nbsp;version.store.enableAutoVersioning, unless a specific API already sets a default value on its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behaviour you observe as the intended default, which avoids creating excessive "waste" versions unless specifically configured to version on every minute property change...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via CMIS you have the explicit option to specify how an update should be treated as to the versioning state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jul 2018 14:20:45 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-07-21T14:20:45Z</dc:date>
    <item>
      <title>Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71951#M23415</link>
      <description>Alfresco 5.1, CMIS.Let us say we upload/index a document (v1.0). Let us say we update its custom properties afterwards.Then, we upload a new version (v1.1) of the document.Now when I see the history, the old version (v1.0) does not have the updated custom properties.Before making a new version (v1.1</description>
      <pubDate>Fri, 20 Jul 2018 16:23:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71951#M23415</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-07-20T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71952#M23416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The version 1.0 is created when the document is initially created and only with the properties set at this time. If you update the properties / metadata only,&amp;nbsp;the behaviour is dependent on a metadata property called "cm:autoVersionOnUpdateProps" which can be set on any node. Depending on how you create the document (via which API), there may be different default values. Provided that the specific API you are using to create the document does not set a value, the default will be determined by&amp;nbsp;version.store.enableAutoVersionOnUpdateProps, or it will be set to true (if that config variable has not been set).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that property is set to true, any property updates on a node will trigger creation of a new version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same concept also applies to automatic version creation on content change. There is "cm:autoVersion", which can have its default defined via&amp;nbsp;version.store.enableAutoVersioning, unless a specific API already sets a default value on its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behaviour you observe as the intended default, which avoids creating excessive "waste" versions unless specifically configured to version on every minute property change...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via CMIS you have the explicit option to specify how an update should be treated as to the versioning state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2018 14:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71952#M23416</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-07-21T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71953#M23417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are seeing a similar issue.&lt;/P&gt;&lt;P&gt;Step 1: Create a new document&lt;/P&gt;&lt;P&gt;At this point the Title and Descriptions are blank, as expected.&lt;/P&gt;&lt;P&gt;Step 2: Add a title and description via edit properties (Let's say "Title A" and "Description A")&lt;/P&gt;&lt;P&gt;Step 3: Upload new version of document&lt;/P&gt;&lt;P&gt;At this point the document is at version 1.1&lt;/P&gt;&lt;P&gt;Step 4: Edit the title to a new text (Let's say "Title B")&lt;/P&gt;&lt;P&gt;Step 5: Revert document to older version&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the Title and Description are Blank. But we expect them to be "Title A" and "Description A".&lt;/P&gt;&lt;P&gt;Any ideas? I have tried setting the below properties in Alfresco Global Properties file, but it makes no difference:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;version.store.enableAutoVersionOnUpdateProps=true&lt;BR /&gt;version.store.enableAutoVersioning=true&lt;/P&gt;&lt;P&gt;We are on Alfresco Community Edition 5.2 (201707) on Ubuntu server.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 07:48:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71953#M23417</guid>
      <dc:creator>VipulSwarup</dc:creator>
      <dc:date>2020-03-11T07:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71954#M23418</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80602"&gt;@VipulSwarup&lt;/A&gt;&amp;nbsp; What you see is expected AFAIK..&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Default behavior:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;When you upload a file via share or by any means, &lt;STRONG&gt;&lt;EM&gt;cm:versionable &lt;/EM&gt;&lt;/STRONG&gt;aspect is applied on it. It by default sets following properties on the uploaded node:&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;cm:autoVersion =&amp;gt; true&lt;/STRONG&gt; - &lt;U&gt;Tells that when the cm:versionable aspect is applied and initial snap shot of the node was taken.&lt;/U&gt;

&lt;STRONG&gt;cm:initialVersion =&amp;gt; true&lt;/STRONG&gt; - &lt;U&gt;Tells that when ever a change is made to the &lt;STRONG&gt;"content of a node"&lt;/STRONG&gt; that has the versionable aspect applied a new version will be created.&lt;/U&gt;

&lt;STRONG&gt;cm:autoVersionOnUpdateProps =&amp;gt; false&lt;/STRONG&gt; - &lt;U&gt;Tells that version won't be incremented when properties are updated on a node.&lt;/U&gt;&lt;/PRE&gt;
&lt;P&gt;This can be verified via node browser.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;This is the default configuration at repo level:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;version.store.initialVersion=true
version.store.enableAutoVersioning=true
version.store.enableAutoVersionOnUpdateProps=false&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;At this point the node is still at version 1.0.&amp;nbsp;Note that version 1.0 snapshot which was taken initially have empty title and description.&lt;/P&gt;
&lt;P&gt;Now, you updated the properties such as Title (cm:title) and Description (cm:description). Version of the node won't be incremented (Look at the statements above) considering the default behavior. Updated values are persisted at the work in progress copy i.e. workspace node.&lt;/P&gt;
&lt;P&gt;Next, you uploaded a new version of content, which triggers autoversion and a new version will be created. You updated the property Title (cm:title) again, Now you are at version 1.1. This version 1.1 snapshot would keep the previously updated title and description. Newly made updates are still on workspace node and not part of version snapshot.&lt;/P&gt;
&lt;P&gt;Next, you decided to revert the version to 1.0 after property update. &lt;BR /&gt;Your result is expected, and you won't see the updated title and description because when 1.0 version snapshot was taken, these properties were not set.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Next, you went ahead and set the following properties in your global properties file:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;version.store.enableAutoVersioning=true (It is default true already, ideally not required to re-set unless you want to disable the behavior)
&lt;STRONG&gt;version.store.enableAutoVersionOnUpdateProps=true&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;Tried to repeat the same process and updated the properties on the same object which you uploaded earlier. You don't see any updates even after the global properties change. Point to note here that when you created the object for the first time &lt;STRONG&gt;the "cm:autoVersionOnUpdateProps" property was set to "false"&lt;/STRONG&gt;. It is still intact and value remained false, hence global properties updates did not took effect.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;If you upload a new file, then this time the properties will be set like this, you can check it via node browser:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;cm:autoVersion =&amp;gt; true
cm:initialVersion =&amp;gt; true
&lt;STRONG&gt;cm:autoVersionOnUpdateProps =&amp;gt; true - Tells that version would be incremented when properties are updated on a node, taking congnizance of global properties file updates.&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;When you try to update the properties now on this newly uploaded node, the version will be auto incremented.&lt;/P&gt;
&lt;P&gt;If you want that, existing nodes to auto version on properties update, then you would have to write a script to reset the already set &lt;STRONG&gt;"cm:autoVersionOnUpdateProps" property value to "true"&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;For newly uploaded nodes, you are good to go anyway.&lt;/P&gt;

&lt;P&gt;Refer to this post to understand the versioning behaviour, its is old post but gives a good insight of versioning behavior:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-hub/versioning-behaviour/ba-p/291554" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-hub/versioning-behaviour/ba-p/291554&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 17:53:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71954#M23418</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-03-12T17:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71955#M23419</link>
      <description>&lt;P&gt;Hi Abhinav&lt;/P&gt;&lt;P&gt;Thanks for the very detailed and useful reply.&lt;/P&gt;&lt;P&gt;After setting the Alfresco Global properties to have this:&lt;/P&gt;&lt;PRE&gt;version.store.enableAutoVersionOnUpdateProps=true&lt;/PRE&gt;&lt;P&gt;And then restarting Alfresco.&lt;/P&gt;&lt;P&gt;Even on new documents, still the property "&lt;SPAN&gt;cm:autoVersionOnUpdateProps" is FALSE, as verified via node browser. And the document still doesn't version on property update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas? I am on Community 5.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vipul.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 05:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71955#M23419</guid>
      <dc:creator>VipulSwarup</dc:creator>
      <dc:date>2020-03-13T05:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71956#M23420</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/74498"&gt;@abhinavmishra14&lt;/A&gt;&amp;nbsp;I have actually gotten around it by putting a rule on a folder to automatically set&amp;nbsp;&lt;SPAN&gt;cm:autoVersionOnUpdateProps=true for each new document.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But is there a way to make the actual version 1.0 of the document store the filled out metadata values (without versioning on each metadata edit)?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use this popular extension to force user to enter properties while uploading documents -&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-add/uploader-plus/td-p/291849" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-add/uploader-plus/td-p/291849&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But still version 1.0 has blank properties, as per the default behaviour.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 08:13:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71956#M23420</guid>
      <dc:creator>VipulSwarup</dc:creator>
      <dc:date>2020-03-13T08:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Version history does not include property updates</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71957#M23421</link>
      <description>&lt;P&gt;It is very unlikely that you have enabled&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;version.store.enableAutoVersionOnUpdateProps=true&lt;/PRE&gt;
&lt;P&gt;in your global properties file and you still see&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;cm:autoVersionOnUpdateProps" as FALSE. This works perfectly OOTB. Check if you have any behaviors or rules that might be re-setting the values. Or your global properties changes are not getting loaded properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 13:00:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/version-history-does-not-include-property-updates/m-p/71957#M23421</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-03-16T13:00:23Z</dc:date>
    </item>
  </channel>
</rss>

