influxdata / influxdata/influxdb

`/templates/export` API silently converts resource subtypes into top-level types before looking up IDs

Open
#21,728 0 comments 0 reactions 0 assignees View on GitHub
area/2.x area/templates kind/bug
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__

1. Create 1 deadman & 1 threshold check
2. Run `echo | influx export --resource-type CheckThreshold`

__Expected behavior:__
Either:
* No output because the provided ID doesn't map to a threshold check
* An error message stating `CheckThreshold` isn't a valid kind-filter

__Actual behavior:__
The server converts `CheckThreshold` to `Check`, searches for the ID, and returns the deadman check

Contributor guide

Open the contributing guide

Research direction

Start at the /templates/export API and the influx export handling for the --resource-type option, then reproduce the command with a deadman ID and CheckThreshold. Done means a subtype ID is not resolved as its top-level Check type, and an invalid kind-filter produces the documented error or no output.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, cli
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.