Change property of old version

cancel
Showing results for 
Search instead for 
Did you mean: 
gioppi
Member II

Change property of old version

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
angelborroy
Alfresco Employee

Re: Change property of old version

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
nicolasalvarezc
Member II

Re: Change property of old version

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!