mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-4948 - If the replication definition payload contains deleted nodes, issue a warning but skip over them, rather than raising an error
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22766 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -116,6 +116,7 @@ public class ReplicationServiceIntegrationTest extends TestCase
|
||||
private NodeRef content2a_1;
|
||||
private NodeRef thumbnail2a_2; // Thumbnail extends content
|
||||
private NodeRef zone2a_3; // Zone doesn't
|
||||
private NodeRef deletedFolder;
|
||||
|
||||
private final String ACTION_NAME = "testName";
|
||||
private final String ACTION_NAME2 = "testName2";
|
||||
@@ -173,6 +174,9 @@ public class ReplicationServiceIntegrationTest extends TestCase
|
||||
thumbnail2a_2 = makeNode(folder2a, ContentModel.TYPE_THUMBNAIL);
|
||||
zone2a_3 = makeNode(folder2a, ContentModel.TYPE_ZONE);
|
||||
|
||||
deletedFolder = makeNode(repositoryHelper.getCompanyHome(), ContentModel.TYPE_FOLDER);
|
||||
nodeService.deleteNode(deletedFolder);
|
||||
|
||||
// Tell the transfer service not to use HTTP
|
||||
makeTransferServiceLocal();
|
||||
|
||||
@@ -558,6 +562,8 @@ public class ReplicationServiceIntegrationTest extends TestCase
|
||||
rd = replicationService.createReplicationDefinition(ACTION_NAME, "Test");
|
||||
rd.setTargetName(TRANSFER_TARGET);
|
||||
rd.getPayload().add( folder1 );
|
||||
// A deleted folder is fine, will be skipped
|
||||
rd.getPayload().add( deletedFolder );
|
||||
|
||||
// Will execute without error
|
||||
txn = transactionService.getUserTransaction();
|
||||
|
Reference in New Issue
Block a user