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

open api服务名校验问题 #9323

Closed
hujun-w-2 opened this issue Oct 14, 2022 · 0 comments
Closed

open api服务名校验问题 #9323

hujun-w-2 opened this issue Oct 14, 2022 · 0 comments
Labels
kind/bug Category issues or prs related to bug.

Comments

@hujun-w-2
Copy link
Collaborator

Describe the bug
发现鉴权插件有个数组越界问题,获取resource name的时候,解析请求中的服务名,如果用户的服务名是DEFAULT_GROUP@@这种的时候出现,在1.2.1的sdk版本,还没有对查询的时候做服务名必传的校验

Expected behavior
抛一个参数异常IllegalArgumentException,因为直接数组越界状态码是500,理论上参数错误状态码应该是400

@hujun-w-2 hujun-w-2 added the kind/bug Category issues or prs related to bug. label Oct 14, 2022
hujun-w-2 added a commit to hujun-w-2/nacos that referenced this issue Oct 14, 2022
KomachiSion pushed a commit that referenced this issue Oct 14, 2022
* 1.x http接口服务名校验问题

* 1.x http接口服务名校验问题 for #9323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

2 participants