cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set base version for documents to 0.1??

iro
Champ in-the-making
Champ in-the-making
Hello,

I´m trying to implement Alfresco Share for document management, but I can´t find a way to set a base version to 0.1 (or 0.0) instead of 1.0

Can anyone please direct me to where I can modify this?? It doesn´t need to be user configurable, it could be fixed on 0.1 for all new uploads.

The reason for this is that we have always worked starting with R0 (for revision 0) and it is getting complicated to manage a diferent version number than the revision the document is supposed to be on.

I´m on:
Alfresco Community v3.4.0 - (d 3370) schema 4113
Spring Surf and Spring WebScripts - v1.0.0 - (Release Candidate 2 744)

Thanks in advance!

IRO
16 REPLIES 16

mrogers
Star Contributor
Star Contributor
I'm not speaking from "Engineering's perspective" just pointing out it isn't a bug.   I'd like to see it changed myself.   However if you raise it as a bug it will get rejected.

jpotts
World-Class Innovator
World-Class Innovator
orbital, if you decide to put this in Jira, enter it as an "enhancement" rather than a "bug", then post the link here so I can forward it to product management.

Jeff

orbital
Champ in-the-making
Champ in-the-making
All,

I chose to raise this - you can find it at https://issues.alfresco.com/jira/browse/ALF-15082. I had something of a mishap with the spelling in the enhancement subject line. My apologies for this  Smiley Surprisedops:

I encourage everybody who comes across this 'issue' to vote for the enhancement.

Thanks,

Paul

jpotts
World-Class Innovator
World-Class Innovator
Thanks for logging. I've voted for it and I've sent a note over to Mike Farman to see what the chances of getting this addressed in Odin (our next non service pack release). I also fixed the issue title spelling for you. Smiley Happy

Jeff

alfsender
Champ in-the-making
Champ in-the-making
Hi All,

I uploaded document to Alfresco explorer, and check in node browser, it didn't show version property, as aspect was not added. But for same document in Share it showed version number as 1.0. Later I added aspect to same document and checked in node browser now it has aspect and in version label it shows as 1.0.
Second, I added rule to one folder, to add Versionable aspect to all incoming document, i uploaded document from Alfresco explorer. For this also it sets version label as 1.0.

I checked
SerialVersionLabelPolicy
class and found method calculateVersionLabel, which does version number calculation. In this for first time when document is uploaded it will not have
preceedingVersion
, so it will object of
SerialVersionNumber
with null, so inner class will assign 0 (Zero) to
majorVersionNumber
, but after that there is a condition which checks if its a Major version, it will do
majorVersionNumber
increment by 1. So here we need to check
if (Major version & preceedingVersion != null)
then only do
majorVersionNumber
increment.

I think this should work, i am doing these changes and will update if all goes well..


Regards.

twallace
Champ on-the-rise
Champ on-the-rise


I've been wrestling this issue for over 2 weeks and finally found a simple solution in Share.

Create a Folder Rule with the following:

Remove Versionable Aspect
Add Versionable Aspect
Change cm:versionLabel to 0.1
Check Out (no destination folder required)
Check In (as minor version)

This creates a locked document with a *hidden* version label. Manually upload a new version (same document is fine) and set it to a minor version. Document is then available with 0.1 as version label and with 0.1 as the last Version in the version history.

I implemented this on a folder as a Space Template, so that non-technical users don't need to do anything except create a new folder from the template. The document is then locked for editing by them and ready for the first 0.1 version to go in.

deadbird
Champ in-the-making
Champ in-the-making
I came around this page in search of the "0.1 baseline versioning", but it seems that Alfresco 5.0.x doesn't implement this feature :'(

Can someone explain once for all how to get 0.1 instead of 1.0 in versioning aspect?

thanks a lot