mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALFCOM-2658 - version migrator fix to maintain uuid (of frozen state nodeRef)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14987 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -197,7 +197,9 @@ public class VersionMigrator
|
||||
Map<QName, Serializable> nodeProperties = versionNodeService.getProperties(frozenStateNodeRef);
|
||||
|
||||
long nodeDbId = (Long)nodeProperties.get(ContentModel.PROP_NODE_DBID);
|
||||
nodeProperties.remove(ContentModel.PROP_NODE_UUID); // else will try to persist with this node uuid (see AbstractNodeServiceImpl.generateGuid)
|
||||
|
||||
// ALFCOM-2658
|
||||
nodeProperties.put(ContentModel.PROP_NODE_UUID, frozenStateNodeRef.getId());
|
||||
|
||||
int versionNumber = (Integer)dbNodeService.getProperty(VersionUtil.convertNodeRef(frozenStateNodeRef), VersionModel.PROP_QNAME_VERSION_NUMBER);
|
||||
|
||||
|
Reference in New Issue
Block a user