You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/08 03:11:21 UTC

[GitHub] [apisix-dashboard] 840963657 opened a new issue, #2687: bug: dashboard should not support '!' in vars.

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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] Baoyuantop commented on issue #2687: bug: dashboard should not support '!' in vars.

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #2687:
URL: https://github.com/apache/apisix-dashboard/issues/2687#issuecomment-1445795900

   > 1、create route, add vars in route,operator use '!',like this: { "uri": "/*", "name": "test", "methods": [ "GET" ], "vars": [ [ "http_test1", "!", "123" ] ], ....... 2、view apisix's error.log file: 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
   
   Unable to create this configuration via the UI, are you using the raw data editor?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] SkyeYoung commented on issue #2687: bug: dashboard should not support '!' in vars.

Posted by GitBox <gi...@apache.org>.
SkyeYoung commented on issue #2687:
URL: https://github.com/apache/apisix-dashboard/issues/2687#issuecomment-1341936515

   Could u pls provide more accurate information?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] 840963657 commented on issue #2687: bug: dashboard should not support '!' in vars.

Posted by GitBox <gi...@apache.org>.
840963657 commented on issue #2687:
URL: https://github.com/apache/apisix-dashboard/issues/2687#issuecomment-1341978273

   1、create route, add vars in route,operator use '!',like this:
   {
     "uri": "/*",
     "name": "test",
     "methods": [
       "GET"
     ],
     "vars": [
       [
         "http_test1",
         "~=",
         "123"
       ]
     ],
   .......
   2、view apisix's error.log file:
   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


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] Baoyuantop commented on issue #2687: bug: dashboard should not support '!' in vars.

Posted by GitBox <gi...@apache.org>.
Baoyuantop commented on issue #2687:
URL: https://github.com/apache/apisix-dashboard/issues/2687#issuecomment-1398030408

   Hi @840963657, can you help with the specific steps to create this route using the dashboard? Also, you can try the latest version of the dashboard.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org