influxdata / influxdata/influxdb

v1 /query compatibility API doesn't see parameters when using `GET`

Open
#20,713 0 comments 0 reactions 0 assignees View on GitHub
area/2.x area/api area/compat-v1x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Our [v1 compatibility docs](https://docs.influxdata.com/influxdb/v2.0/reference/api/influxdb-1x/query/) claim that hitting the `/query` API with `GET` requests should work, but we saw that using `curl` with `--data-urlencode q="SHOW MEASUREMENTS"` failed to see the query.

Make sure `/query` works for both `GET` and `POST` requests.

Contributor guide

Open the contributing guide

Research direction

Start with the v1 compatibility /query API and reproduce the documented curl GET request using --data-urlencode q="SHOW MEASUREMENTS"; compare it with POST handling. Done when /query receives the query parameter and works for both GET and POST requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.