influxdata / influxdata/influxdb

User exists but doesn't show up in CLI

Open
#24,318 0 comments 0 reactions 0 assignees View on GitHub
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. influx user create --name user123 --password p455w0rd --token a1b2c3d4e5f6g7h8i9j0a1b2c3d4e5f6g7h8i9j0==
>>> Error: failed to create user "user123": 422 Unprocessable Entity: user with name test already exists
2. influx user list --name user123 --token a1b2c3d4e5f6g7h8i9j0a1b2c3d4e5f6g7h8i9j0==
>>> ID Name
(Blank)

__Expected behavior:__
Either the user doesn't exist and it should be created or the user exists and it should be displayed.

__Actual behavior:__
Refuses to create or display the user.

__Environment info:__

* System info: Darwin 22.5.0 arm64
* InfluxDB version: 2.6.1
* Other relevant environment details: Container runtime: 2 weeks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two `influx user` commands against InfluxDB 2.6.1 and compare the create error with the empty list result. The issue is done when an existing user is listed or a missing user can be created, with behavior consistent between the commands.

Written by the indexing model from the issue text.

Assessment

Domain
cli, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.