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

bug: http接口诡异的星号(*)匹配问题 #195

Open
modiao2018 opened this issue Dec 30, 2024 · 1 comment
Open

bug: http接口诡异的星号(*)匹配问题 #195

modiao2018 opened this issue Dec 30, 2024 · 1 comment

Comments

@modiao2018
Copy link

modiao2018 commented Dec 30, 2024

Current Behavior

image
image
1735554518329

后端服务会把动态部分作为数字参数处理,从现象来看,url动态部分多拼接了*匹配符进去了,导致参数无法转换成数字导致异常。
诡异的时,接口我没修改,只是重新【发布】又恢复了正常,过几个小时后又出现该情况,重复前面的动作才能修复。

并不是所有接口都存在这个问题,只有这个接口存在此问题。

Expected Behavior

星号通配符应该不能被拼接到动态参数部分

Error Logs

No response

Steps to Reproduce

  1. 发布自定义的插件(单插件并未配置到该接口)
  2. 调用接口报错:出现参数无法转换数值错误
  3. 发现url动态path参数部分转发到上游出现了多余的通配符(*)
  4. 不修改接口,重新发布又恢复正常。
  5. 过一段时间,又出现1)的问题

Environment

  • APINTO version (run apinto version): 0.19.4
  • Operating system (run uname -a): Linux redgpts04 3.10.0-1160.el7.x86_64
@q343959872
Copy link

我这边也有遇到过这个问题,大概溯源是这样的:
1、配置个API,转发规则配置的时候也带了个*
2、更改这个API把转发规则中的移除掉,重新发布;
3、集群中节点插件发布
4、访问API发现复现转发带

5、重新发布API又恢复正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants