mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2937 - The destruction of records can not be completed if the metadata is set to be maintained after destruction.
- ExtendedContentDestructionComoponent uses the NodeService interface which enforces capability check. ExtendedContentDestructionComoponent extends ContentDestructionComoponent from community which uses the nodeService implementation. I fixed it by using the implementation directly. - After fixing the issue I noticed the renditions nodes are not deleted which is a regression from 2.3 and there is no comment to specify this was intended so I deleted the rendition node.
This commit is contained in:
@@ -179,6 +179,9 @@ public class ContentDestructionComponent
|
|||||||
{
|
{
|
||||||
// destroy renditions content
|
// destroy renditions content
|
||||||
destroyContent(child.getChildRef(), false);
|
destroyContent(child.getChildRef(), false);
|
||||||
|
|
||||||
|
//delete the rendition node
|
||||||
|
getNodeService().deleteNode(child.getChildRef());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user