Skip to content

Plugin with empty json config is dropped when add or edit Route #3269

@wudesheng

Description

@wudesheng

Issue description

if you add a plugin with empty config when add or edit route, the plugin is not saved.

Expected behavior

key-auth plugin saved

How to Reproduce

  1. add/edit route
  2. add a key-auth plugin with empty config
  3. save
  4. view route
  5. the key-auth plugin is not saved.

Screenshots

No response

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions