cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with Versioning

rameshbelli
Champ in-the-making
Champ in-the-making
Hello All,

I have this issue with Versioning and I don't know what I'm missing or doing wrong.

I created a Document and browsed the Repository for AllVersions and the Version label is like below.

Name         Version Label                cmisSmiley SurprisedbjectId

Document1   current                       workspace://SpacesStore/b7f6fdfc-79c5-4 … aab7d329a5
Document1   1.0                             workspace://SpacesStore/b7f6fdfc-79c5-4 … d329a5;1.0

At this point the contents in both the Versions are same.

Then I used the checkOut method in VersioningService and replaced the content and checkIn the changed
content and the Version changed as expected and it looked like this.

Document1     current                       workspace://SpacesStore/b7f6fdfc-79c5-4 … aab7d329a5
Document1     1.0                             workspace://SpacesStore/b7f6fdfc-79c5-4 … d329a5;1.0
Document1     1.1                             workspace://SpacesStore/b7f6fdfc-79c5-4 … d329a5;1.1

Now the contents in Version 1.1 and the current are same.

I came across in one of CMIS Document " When a Latest Version of a Version Series is deleted, a previous version
becomes Latest version".

But when I used the deleteObject method to delete the version 1.1 and the content in the current Version , I thought
should be set to the 1.0 version , but it contains the 1.1 version content.

Secondly, when I want to get the contents of the Version1.1 Document using read method in ContentService, I passed in
workspace://SpacesStore/b7f6fdfc-79c5-4 … d329a5;1.1 as the objectId and I get " Object Not Found" error.

I'll appreciate any help ,

Thanks,
Ramesh
2 REPLIES 2

davidc
Star Contributor
Star Contributor
Which version of Alfresco are you using?

We've updated the versioning implementation considerably in v3.3.

Is it possible for you to re-try your tests against http://cmis.alfresco.com (a hosted 3.3)?

rameshbelli
Champ in-the-making
Champ in-the-making
Hi David,

It's happening in 3.3 version too.

Ramesh