840963657 opened a new issue, #2687: URL: https://github.com/apache/apisix-dashboard/issues/2687
### Issue description apisix not support '!' operator . apisix error log: 2022/12/08 10:57:25 [error] 6804#6804: *2355864 [lua] config_etcd.lua:573: failed to fetch data from etcd: failed to check item data of [/apisix/routes] err:failed to validate the 'vars' expression: invalid operator '!', etcd key: /apisix/routes, context: ngx.timer ### Expected behavior When create route, dashboard should not support '!' in vars. ### How to Reproduce 1. create route in dashboard 2. add vars in route,operator use '!' 3. view apisix's error.log file ### Screenshots ![Uploading image.png…]() ![Uploading image.png…]() ### Environment - apisix version (cmd: `apisix version`): 2.13 - OS (cmd: `uname -a`): Linux localhost.localdomain 3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): nginx version: openresty/1.19.9.1 - etcd version, if have (cmd: run `etcd --version`): etcd Version: 3.4.13 - apisix-dashboard version, if have: 2.10 - Browser version, if have: chrome ### Additional context [lua-resty-expr](https://github.com/api7/lua-resty-expr) [https://github.com/api7/lua-resty-expr/blob/main/lib/resty/expr/v1.lua](url) lua-resty-expr don't support this operator '!' -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
