mirror of https://github.com/apache/nifi.git
NIFI-5377 prevent infinite loop if a controller service circular reference exists
This commit is contained in:
parent
3ef8b4ab8d
commit
0d07bc4951
|
@ -2282,9 +2282,9 @@ public class StandardNiFiServiceFacade implements NiFiServiceFacade {
|
||||||
if (component instanceof ControllerServiceNode) {
|
if (component instanceof ControllerServiceNode) {
|
||||||
final ControllerServiceNode node = (ControllerServiceNode) component;
|
final ControllerServiceNode node = (ControllerServiceNode) component;
|
||||||
if (!visited.contains(node)) {
|
if (!visited.contains(node)) {
|
||||||
|
visited.add(node);
|
||||||
findControllerServiceReferencingComponentIdentifiers(node.getReferences(), visited);
|
findControllerServiceReferencingComponentIdentifiers(node.getReferences(), visited);
|
||||||
}
|
}
|
||||||
visited.add(node);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue