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
If the entire ref is already bound, do not bother re-evaluating it. This
prevents a recursive binding from being added in the case where the same
local ref appears twice and is bound to a data ref. The fix for open-policy-agent#238 was
caused a stack overflow in this case!
Fixesopen-policy-agent#298
Topdown is creating a recursive binding when evaluating local references.
E.g., given the following data:
And the following query (expr1; expr2; expr3):
Topdown creates the following bindings:
After expr1:
locals={x: data.s} refs={}
After expr2:
locals={x: data.s} refs={x[0]: data.s[0]}
After expr3:
locals={x: data.s} refs={x[0]: data.s[0], data.s[0]: data.s[0]}
The recursive binding after expr3 is added because of
opa/topdown/topdown.go
Line 1695 in 063aa97
The text was updated successfully, but these errors were encountered: