-
Notifications
You must be signed in to change notification settings - Fork 14.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
Superset UI is doesn't escape / quote the search query and currently is not working with special characters #13708
Comments
This seems like a rison encoding as all calls should be going through |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
@bkyryliuk is this still an issue? |
Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks! |
Hi @rusackas , just to let you know that apparently, Superset doesn't seem to escape the special characters again when filtering action is attempted. One of our column values in our dataset has a single quote And so the only quickest way we could think of is to perform the SQL REPLACE function in order to remove any possible occurrences single quote ' character. And everything works as usual again: However, the issue is the user may still have the tendency to type in their own value which may/may not contain special characters (we may never know as we can't predict user behavior). Therefore, may I suggest considering an option called |
A clear and concise description of what the bug is.
Expected results
Superset UI e.g. should escape query search parameter for superset objects like charts, dashboards etc
Expected api call:
/api/v1/report/related/dashboard?q=(filter:%27[query]%27,page_size:2000)
Actual API call:
https://superset.pp.dropbox.com/api/v1/report/related/dashboard?q=(filter:[query],page_size:2000)
How to reproduce the bug
[query]
Environment
https://github.com/airbnb/superset-fork/tree/release--2021-03-10
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
cc @dpgaspar , @villebro
The text was updated successfully, but these errors were encountered: