bzp2010 opened a new issue, #8251:
URL: https://github.com/apache/apisix/issues/8251

   ### Current Behavior
   
   The filters in the plugin support only Nginx variables, not APISIX's 
built-in variables.
   
   For example, I can use the Nginx variable `http_xxx`, but I can't use APISIX 
custom variables like `arg_xxxx` or `graphql_xxxx`.
   
   ### Expected Behavior
   
   It can support all APISIX variable syntax, including `cookie_xxxx`, 
`arg_xxxx`, `post_arg_xxxx`, `graphql_xxxx`, etc.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Set the filter in the plugin to use the above unsupported syntax.
   
   -------------
   
   **The reason is that we didn't pass in our ctx for that expr executor, and 
the expr uses its default `ngx.var`, which wouldn't support extended syntax.**
   
   https://github.com/apache/apisix/blob/master/apisix/plugin.lua#L437
   https://github.com/api7/lua-resty-expr/blob/main/lib/resty/expr/v1.lua#L376
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.0.0
   


-- 
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]

Reply via email to