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 with modifier is applied to the data document (and not the input document) and a rule that refers to the input document is encountered during evaluation, the evaluator panics during resolve operations on the rule that refers to input. This is occurring because the evaluator's input term is being set incorrectly when the with modifier is handled.
Steps to Reproduce the Problem
Define a rule that depends on input
package test
p { input.x = 1 }
Execute a query that applies with to data and requires evaluation of the rule
data.test.p = true with data.foo as "bar"
The text was updated successfully, but these errors were encountered:
The input on the evaluator was being set incorrectly when the with
keyword is handled in the evaluator. These changes just update evalWith
to set the input term correctly.
Fixesopen-policy-agent#1083
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The input on the evaluator was being set incorrectly when the with
keyword is handled in the evaluator. These changes just update evalWith
to set the input term correctly.
Fixes#1083
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Actual Behavior
If the with modifier is applied to the data document (and not the input document) and a rule that refers to the input document is encountered during evaluation, the evaluator panics during resolve operations on the rule that refers to input. This is occurring because the evaluator's input term is being set incorrectly when the with modifier is handled.
Steps to Reproduce the Problem
with
to data and requires evaluation of the ruleThe text was updated successfully, but these errors were encountered: