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] Incorrect escaping in JSONata multi value filter for Strings containing single quotes #927

Open
sanbhattdeep opened this issue Jul 13, 2024 · 0 comments

Comments

@sanbhattdeep
Copy link

Describe the bug

JSONata multi value filter does not work for Strings containing single quotes

Steps to reproduce

A multi value variable say Customer exists
Sample values:- Burger Town,Brink's etc

My UQL query is parse-json | scope “data” | jsonata “*[name in [${Customer:singlequote}]]” …
The UQL query works when Customer variable value = ‘Burger Town’
The UQL query does not work when Customer variable value = ‘Brink's’

The UQL being sent is:- parse-json | scope "data" | jsonata "*[name in ['Brink\'s']]" - Note the \ (double backlash) in front of the apostrophe

Screenshots

image
Screenshot 2024-07-13 at 3 07 18 PM

Version Details:

  • Grafana version : 10.4.1
  • Plugin version : v2.9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant