Skip to content
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

[🐛 Bug]: CEL rule builder fails to parse "namspace == 'some_namespace'" #1384

Open
shahargl opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@shahargl
Copy link
Member

Describe the bug
CleanShot 2024-07-16 at 13 56 56@2x

To Reproduce
Any CEL with "namespace" in it.

** Root cause **
This is happen because the underlying library (react-querybuilder) uses the official CEL spec, in which "namespace" is a reserved key word:
https://github.com/google/cel-spec/blob/master/doc/langdef.md

CleanShot 2024-07-16 at 13 58 58

** possible workaround **
the fix for that would be the wrap/unwrapp the namespace keyword before/after validation, but its not trivial.

@talboren talboren changed the title [Bug 🐛]: CEL rule builder fails to parse "namspace == 'some_namespace'" [🐛 Bug]: CEL rule builder fails to parse "namspace == 'some_namespace'" Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant