cancel
Showing results for 
Search instead for 
Did you mean: 

Version Problems in Alfresco 3.4.5

jmbarroso
Champ in-the-making
Champ in-the-making
Hello,

I'm having trouble with the documents version.

The problem is that the first version (default version) is 0.1 but this version should be 1.0. This problem has arisen when I migrated from alfresco 3.3.2 to 3.4.5

I have not made ​​any changes, I just deployed my  module AMP in alfresco 3.4.5 and when I upload a document for the first time, its version is 0.1 instead of 1.0.
I'm using the same code:


node.addMixin("cm:versionable");
node.setProperty("cm:autoVersion", true);

Any idea that has changed in Alfresco 3.4.5?

Regards,

Juan
8 REPLIES 8

mrogers
Star Contributor
Star Contributor
You need to make sure your first version is a major version rather than a minor version.
(There's an extra property to set)

jmbarroso
Champ in-the-making
Champ in-the-making
You need to make sure your first version is a major version rather than a minor version.
(There's an extra property to set)

But It's the same if I use the alfresco console. If I upload a document using alfresco web console the version is created with 0.1!

¿Can be a problem in Alfresco 3.4.5?. Our previous alfresco version (3.3.2) didn´t  have that "behavior". 

Regards,

Juan

mrogers
Star Contributor
Star Contributor
No the previous behaviour was incorrect and has been fixed.    The first minor version should be 0.1 rather than 1.0.   The first major version will still be 1.0, that is unchanged.

jmbarroso
Champ in-the-making
Champ in-the-making
No the previous behaviour was incorrect and has been fixed.    The first minor version should be 0.1 rather than 1.0.   The first major version will still be 1.0, that is unchanged.

So the first time you upload a document using Alfresco web console is considered minor version?
I read the first version should be Major version, ¿is it wrong? 

Regards,

ale_carraro
Champ in-the-making
Champ in-the-making
Found another related 'issue' (i'm using alfresco 4.0.0 (3979))
If the versionable aspect is applied using a rule, and the document is added using explorer, 3 possible outcomes, depending on the wizard
Case 1:
You upload the file, and then you unmark the 'Modify all properties when this page closes.' the document is loaded with version 0.1
Case 2:
You upload the file, and then you leave the 'Modify all properties when this page closes.' and you unmark the 'Auto Version' the document is loaded with version 0.1
Case 3:
You upload the file, and then you leave the 'Modify all properties when this page closes.' and leave the 'Auto Version' the document is loaded with version 0.2

Case 3 is really odd. I also found that the properties memorized in the 0.1 are the ones written in the first page (for example, name property is present in both pages). Makes sense, but imho there should be only one version.

jmbarroso
Champ in-the-making
Champ in-the-making
Found another related 'issue' (i'm using alfresco 4.0.0 (3979))
If the versionable aspect is applied using a rule, and the document is added using explorer, 3 possible outcomes, depending on the wizard
Case 1:
You upload the file, and then you unmark the 'Modify all properties when this page closes.' the document is loaded with version 0.1
Case 2:
You upload the file, and then you leave the 'Modify all properties when this page closes.' and you unmark the 'Auto Version' the document is loaded with version 0.1
Case 3:
You upload the file, and then you leave the 'Modify all properties when this page closes.' and leave the 'Auto Version' the document is loaded with version 0.2

Case 3 is really odd. I also found that the properties memorized in the 0.1 are the ones written in the first page (for example, name property is present in both pages). Makes sense, but imho there should be only one version.

So in any case the first version of the document is 1.0?

ale_carraro
Champ in-the-making
Champ in-the-making
So in any case the first version of the document is 1.0?

No, the first version is now 0.1. This is a wanted change in behavior i read somewhere (not sure if in this forum or in the bug tracker)

jawz
Champ in-the-making
Champ in-the-making
I'm experiencing the same issue in version 3.4.4.  I would think the first time I add a new file, it would be version 1.0.  MRogers says it should be 0.1 by new design, so I'll accept that.  MRogers says,  "There's an extra property to set", and it would be nice to have that property listed in this thread to help us all out.  Can anyone point us to this property?

I would report that there is a bug in this, however, when using Alfresco Explorer.  I choose to create a new file using Create Content, and at the end, I get 0.2 for my very first file. 

Thanks