cancel
Showing results for 
Search instead for 
Did you mean: 

Versioning create wrong version

coyoteugly
Champ in-the-making
Champ in-the-making
Hi to all,
Using Alfresco 4.2.c installed on Ubuntu 12.04, my versioning system seems to not work properly. So, let me explain:
I have a generic document TEXT.TXT at version 1.0 . I want to eneble versioning, so I add the versionable aspect to the document. Now if I try to edit my document, it should pass from 1.0 version to 1.1 version, instead it pass directly to 1.3 version, and alfresco create a 1.1 and 1.2 fakes version.
If I try again to edit TEXT.TXT 1.3, when I save, it pass directly on 1.6 version.

Summarizing:
1.0 -> 1.3 -> 1.6 -> 1.9 -> …

It seems that when I edit a document, alfresco save 3 different version for my document, but I edited it only one time.
This happends using all possible way to editing a document ( /share, /alfresco, CIFS, …).

Why this? There is a bug? It is a misconfiguration of my system?
Please, help me.

Thanks a lot.
Regards.
4 REPLIES 4

abarisone
Star Contributor
Star Contributor
Hi,
it could be a bug, since in the past happened somethign similar to CIFS https://www.google.it/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDIQFjAA&url=https%3A%2F...
You can search Alfresco JIRA for something similar https://issues.alfresco.com/jira/browse/ALF

Regards,
Andrea

coyoteugly
Champ in-the-making
Champ in-the-making
Grazie mille Andrea.

Thanks a lot.
I report the bug on Alfresco JIRA: https://issues.alfresco.com/jira/browse/ALF-17951
I'll wait for a response.
Regards.

coyoteugly
Champ in-the-making
Champ in-the-making
Hi, if someone is interested, in my Alfresco Jira post it's confirmed that this is a bug, and it will be fixed in the 4.2.d nightly buil.
https://issues.alfresco.com/jira/browse/ALF-17951

Regards.

paride
Champ in-the-making
Champ in-the-making
The solution for me was setting to false the "cm:autoVersionOnUpdateProps" in the "cm:versionable" aspect in the ContentModel.xml.
After doing this, Alfresco Share doesn't generate multiple versions anymore.
Here there's the code:


<aspect name="cm:versionable">
        <title>Versionable</title>
        <properties>
           <property name="cm:versionLabel">
              <title>Version Label</title>
              <type>d:text</type>
              <protected>true</protected>
           </property>
           <property name="cm:initialVersion">
              <title>Initial Version</title>
              <type>d:boolean</type>
              <default>false</default>
           </property>
           <property name="cm:autoVersion">
              <title>Auto Version</title>
              <type>d:boolean</type>
              <default>true</default>
           </property>
           <property name="cm:autoVersionOnUpdateProps">
              <title>Auto Version - on update properties only</title>
              <type>d:boolean</type>
              <default>false</default>
           </property>
         </properties>
     </aspect>