mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-22 15:12:38 +00:00
SHA-1930 : Unable to delete folder, when the folder contains shortcut link to the same folder
- Check link for PENDING_DELETE aspect before trying to delete it - Added unit test for case git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -305,10 +305,13 @@ public class DocumentLinkServiceImpl implements DocumentLinkService, NodeService
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
nodeService.deleteNode(linkRef);
|
if (!nodeService.hasAspect(linkRef, ContentModel.ASPECT_PENDING_DELETE))
|
||||||
|
{
|
||||||
|
nodeService.deleteNode(linkRef);
|
||||||
|
|
||||||
/* if the node was successfully deleted increment the count */
|
/* if the node was successfully deleted increment the count */
|
||||||
report.incrementDeletedLinksCount();
|
report.incrementDeletedLinksCount();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (AccessDeniedException ex)
|
catch (AccessDeniedException ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user