influxdata / influxdata/influxdb
Query Builder quotation mark not escaped
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.
1. Add data to a bucket which contains a tag value with quotation marks
2. use the query builder to filter by the tag value which contains the quotation marks
3. Try to execute the query
__Expected behavior:__
I expected the query to run successful
__Actual behavior:__
What happend was, that the query failed because the tag value's quotation marks where not escaped properly
__Environment info:__
* System info: Run `uname -srm` and copy the output here
```
Linux 5.15.0-52-generic x86_64
```
* InfluxDB version: Run `influxd version` and copy the output here
```
InfluxDB v2.5.1 (git: 5b6fdbf05d) build_date: 2022-11-02T18:06:28Z
```
* Other relevant environment details: Container runtime, disk info, etc
__Config:__
Copy any non-default config values here or attach the full config as a gist or file.
__Logs:__
Include snippet of errors in log.
__Performance:__
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.
```sh
# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=30s"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.
```
Contributor guide
Research direction
Start at the Query Builder entry point and reproduce the failure using a tag value containing quotation marks, as described in the issue. Confirm that the generated query escapes the quotation marks and executes successfully.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100