stable

Clone or download

Read-only

request #13409: Ensure the workflow rules manager can not loop recursively while processing children triggers

This is an extension of 974112c946a808d58c28c571d01a2e63a254d7c8. This situation is never supposed to happen but the code should defend itself if somehow the situation is encountered. Change-Id: Ie34cda25fc51f50ec7040d2b3f85556af0c8b628

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskBuilder.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/TrackerFactory.class.php +3 −1 Go to diff View file
M plugins/tracker/include/Workflow/Trigger/RulesManager.class.php +21 −3 Go to diff View file
M plugins/tracker/include/Workflow/WorkflowFactory.class.php +3 −1 Go to diff View file
A plugins/tracker/include/Workflow/WorkflowRulesManagerLoopSafeGuard.php +54 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/WorkflowRulesManagerLoopSafeGuardTest.php +106 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/WorkflowRulesManagerTest.php +87 −0 Go to diff View file
M plugins/tracker/tests/workflow/Trigger/RulesManagerTest.php +14 −7 Go to diff View file