cancel
Showing results for 
Search instead for 
Did you mean: 

Change property of old version

gioppi
Champ in-the-making
Champ in-the-making

Hi all,

I need to change some properties of an old version of a document. This seems to be a bit troublesome, the most logical way I could find has been to get a reference through getFrozenNodeRef() of the Version class and then trying to set the properties of that nodeRef. However I get the following error when trying:

This operation is not supported by a version store implementation of the node service

Is changing a property of a version which is not the latest even possible? I'm beginning to have some doubts. Thank you all!

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

I guess you cannot modify the properties of a Version Node:

https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/version/...

Hyland Developer Evangelist

Hi @angelborroy,

I recall you mentioned that updating the aspect of a versioned node isn't possible. Is there an alternative approach you could suggest for achieving this task?

Thanks for your help!