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
The set deep copy method doesn't deep copy the elements. Problems manifest in the REPL where queries may be re-compiled. For example:
$ ./opa_linux_amd64 run
OPA 0.10.8-dev (commit 589105af, built at 2019-05-03T15:12:26Z)
Run 'help' to see a list of commands.
> x := 1; y := {x}
1 error occurred: 1:9: rego_unsafe_var_error: expression is unsafe
The text was updated successfully, but these errors were encountered:
The deep copy operation was not calling Copy on the set elements. This
manifested in issues in the REPL where parsed queries are retained and
used after the query compile runs. Since the query compile deep copies
the parsed query before mutating it, the REPL's parsed query was
getting corrupted.
Fixesopen-policy-agent#1406
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The deep copy operation was not calling Copy on the set elements. This
manifested in issues in the REPL where parsed queries are retained and
used after the query compile runs. Since the query compile deep copies
the parsed query before mutating it, the REPL's parsed query was
getting corrupted.
Fixes#1406
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The set deep copy method doesn't deep copy the elements. Problems manifest in the REPL where queries may be re-compiled. For example:
The text was updated successfully, but these errors were encountered: