-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPA eval --disable-inlining can not parse parameters with double quotes #2196
Comments
Easy repro: opa eval --disable-inlining='data["p"]' data Gives:
|
Can I take this up? Some pointers would be helpful |
@sresthas Sounds good. This one will require digging into some of the documentation and code for https://github.com/spf13/cobra I think the first thing to confirm is where the error is happening and why. Based on the error message I think the problem is with the CLI argument string for Line 221 in 9d1b42d
--disable-inlining='data["p"]'
But it is not clear why this is a problem. |
Hey @patrick-east, Since there has been no update on this for a while, could I have a look at it later? (after closing the open pr) |
@Syn3rman I am looking into this, can you please select any other issue. |
Using |
Go for it |
This commit fixes the parse error encountered while using double quotes in the parameters. Fixes #2196 Signed-off-by: Aditya <[email protected]>
Expected Behavior
OPA command line should be able to parse parameters with double-quotes. E.g., --disable-inlining=query should take the query even if there are double quotes
"
in the query, e.g., data.policy["com.styra.envoy"].resolver.mainActual Behavior
It seems when partial eval is executed, the above parameter query is not respected. There seems to be some problem with argument parsing for those with quotes.
Steps to Reproduce the Problem
Additional Info
The text was updated successfully, but these errors were encountered: