engimatic opened a new issue, #8209:
URL: https://github.com/apache/apisix/issues/8209
### Description
插件代码
`return function(conf, ctx) local core = require("apisix.core");local http =
require("resty.http");local httpc = http.new(); local cjson = require
"cjson";local cjson2 = cjson.new();local authorization =
core.request.header(ctx, "Authorization"); local uri =
ctx.var.uri;if(authorization == nil) then ngx.log(ngx.ERR, "match uri ",
uri);core.response.exit(401);return; end;local url =
"http://ip:port/checkToken";local
req = {};req.uri = uri;req.token = authorization; local res,err =
httpc:request_uri(url, {method = "POST", body = cjson2.encode(req),
headers
= {
["Content-Type"] = "application/json"
}});if not res then core.response.exit(500);return;end;local result =
cjson2.decode(res.body); if not(result["data"]) then ngx.log(ngx.ERR,
"RESULT ", res.body);core.response.exit(res.status,
res.body);return;end;end`
调用接口/v1/sys/group/userLike?name=aa,连续多次请求,后端发现部分请求url没有name参数,name参数被截断。禁用插件后,没有问题
### Environment
- APISIX version :2.15.0
- Operating system :k8s
--
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]