You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GUI allows multiple links into Loop Start's input port, failing only at run time #7155
The GUI lets you connect two upstream operators into a Loop Start's single input port. Nothing in the editor flags it — no link is refused, validation stays green — and the workflow only fails when you run it:
java.lang.IllegalArgumentException: requirement failed:
Loop Start input port GlobalPortIdentity(
PhysicalOpIdentity(OperatorIdentity(LoopStart-operator-...),main),
PortIdentity(0,false), true)
expected exactly one reader URI, got 2
at WorkflowExecutionManager.loopStartStateUris(WorkflowExecutionManager.scala:69)
at StartWorkflowHandler.startWorkflow(StartWorkflowHandler.scala:45)
Loop Start being single-input is intended — the scheduler resolves that loop's bookkeeping URIs from its input port's single reader, so fan-in belongs in a Union before the loop, as discussed in #6966. The bug is that the restriction is invisible until run time.
(This does not apply to Loop End, which supports fan-in — a loop body may branch and converge on it. That side is tracked in #7246.)
How to reproduce?
Drop a Loop Start and two source operators on the canvas.
Connect both sources to the Loop Start's input port — both links are accepted.
Run the workflow → it fails at StartWorkflow with the error above.
Version/Branch
1.3.0-incubating-SNAPSHOT (main)
Root cause
InputPort already carries a disallowMultiLinks flag, and the frontend honors it in two independent places:
Guard
Where
Reads the flag from
Editor refuses to draw a second link into the port
workflow-editor.component.ts
operator metadata (dynamic schema)
Validation requires exactly one input on the port
validation-workflow.service.ts
the saved operator predicate
Loop Start never sets it — LoopOpDesc.operatorInfo declares a plain InputPort().
Expected behavior
before
after
Drawing a 2nd link into Loop Start's input port
allowed
refused by the editor
Programmatically built plan
fails at StartWorkflow
unchanged — the scheduler require stays as a backstop
changed the title [-]GUI allows multiple links into a loop operator's input port, failing only at run time[/-][+]GUI allows multiple links into Loop Start's input port, failing only at run time[/+]on Aug 2, 2026
Activity
[-]GUI allows multiple links into a loop operator's input port, failing only at run time[/-][+]GUI allows multiple links into Loop Start's input port, failing only at run time[/+]fix(workflow-operator): disallow multiple links into Loop Start's inp…