This JIRA has been raised as a follow on from JIRA-
MNT-17991. When Java behaviors ("beforeCreateVersion" behavior) is used to change the name (cm:name) of a new version uploaded to repository, the version history in share does not show the new name of
the document. The code (VersionRevisionPolicy.java and DocRevUtil.java) is attached
to the JIRA
The file is renamed using following code in DocRevUtil.java: fileFolderService.rename(masterFile, newName);
As a result, the name of the file changes in Share document library. However, version history does not contain modified values
If we compare a node in version2Store and SpacesStore, we can see that SpacesStore contains proper cm:name but version2Store contains unchanged name
Since we are doing the change in before behavior, then it should be visible also in version2Store.
Steps to Reproduce
1) Deploy the custom java behavior code attached to the JIRA
2) Upload a document to Share.
The name of the document changes in document library as well as version history
The name of the document changes in document library but not in version history.