Skip to content
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

Dashboard consumer undefined user #1954

Closed
Applenice opened this issue Jun 25, 2021 · 3 comments · Fixed by #1987
Closed

Dashboard consumer undefined user #1954

Applenice opened this issue Jun 25, 2021 · 3 comments · Fixed by #1987
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Applenice
Copy link
Contributor

Issue description

Undefined users can be created in Consumer List via Dashboard

Expected behavior

The appearance of undefined users does not make sense

How to Reproduce

Create two Comsumer and enable plugin configuration
First,the configuration is as follows:

{
  "username": "Pokemon",
  "plugins": {
    "basic-auth": {
      "disable": false,
      "password": "Pokemon",
      "username": "Pokemon"
    },
    "ip-restriction": {
      "disable": false,
      "whitelist": [
        "192.168.0.112"
      ]
    }
  }
}

In fact, you can create undefined users in this step:
Consumer List->First Consumer Pokemon-> Operation View-> click Submit,you can see that there is an additional undefined user in the list, except for the username is different, other configuration and Pokemon consistent.

{
  "username": "undefined",
  "plugins": {
    "basic-auth": {
      "disable": false,
      "password": "Pokemon",
      "username": "Pokemon"
    },
    "ip-restriction": {
      "disable": false,
      "whitelist": [
        "192.168.0.112"
      ]
    }
  }
}

Second,the configuration is as follows:

{
  "username": "Pikachu",
  "plugins": {
    "basic-auth": {
      "disable": false,
      "password": "Pikachu",
      "username": "Pikachu"
    },
    "ip-restriction": {
      "disable": false,
      "whitelist": [
        "127.0.0.1"
      ]
    }
  }
}

Next, the operation:
Consumer List->Second Consumer Pikachu-> Operation View-> click Submit,you can see that the configuration of the undefined user has been modified, except for the username, which is the same as Pikachu, so I won't post it

Screenshots

image

Environment

  • apisix version (cmd: apisix version): 2.6
  • OS (cmd: uname -a):Ubuntu 1804
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/1.19.3.2
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API): 3.4.13
  • apisix-dashboard version, if have: release/2.7
  • Browser version, if have: Firfox 89.0.1
@Applenice Applenice added the bug Something isn't working label Jun 25, 2021
@juzhiyuan
Copy link
Member

cc @iamayushdas to take a look

@iamayushdas
Copy link
Contributor

okay

@iamayushdas
Copy link
Contributor

yes @Applenice there is a bug confirmed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants