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

路由的任意插件配置,输入_meta配置,并携带的filter字段,提交后filter字段丢失 #2821

Open
WuPenglin opened this issue Jun 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@WuPenglin
Copy link

Issue description

举例使用prometheus插件,提交下方配置:
{
"_meta": {
"disable": false,
"filter": [
[
"uri",
"~=",
"/exe/xxxxxx/"
]
]
}
}
filter会被吞掉,消失了,再次点开插件编辑,显示如下:
{
"_meta": {
"disable": false
}
}

Expected behavior

  1. filter配置比较关键,应该保留,不应该被吞掉;
  2. 使用命令行配置是ok的,然后WEB显示也正确,我目前使用的是这个方法,求尽快解决;
  3. 推测是前端代码;

How to Reproduce

1.路由页面
2.点击配置
3.下一步,进行插件配置
4.选择任意插件,输入以下:
{
"_meta": {
"disable": false,
"filter": [
[
"uri",
"~=",
"/exe/xxxxxx/"
]
]
}
}
5.提交插件配置
6.再次点击插件编辑,发现filter配置消失

Screenshots

image
image

Environment

  • apisix version (cmd: apisix version):
    3.2.0
  • OS (cmd: uname -a):
    Linux server02 3.10.0-1160.el7.x86_64 Init Dashboard & add some features #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
    nginx version: openresty/1.21.4.1
  • etcd version, if have (cmd: run etcd --version):
    etcd Version: 3.5.4
    Git SHA: 08407ff76
    Go Version: go1.16.15
    Go OS/Arch: linux/amd64- apisix-dashboard version, if have:
  • Browser version, if have:
    Google Chrome 版本 113.0.5672.126(正式版本) (arm64)

Additional context

No response

@WuPenglin WuPenglin added the bug Something isn't working label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant