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

创建notification接口,设置address_info为已删除或不存在的addresslist,未进行校验控制 #84

Open
liuyp2018 opened this issue Aug 2, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@liuyp2018
Copy link

POST /v1/notifications 接口,设置address_info为已删除或不存在的addresslist:
{
"content_type": "other",
"title": "test_title",
"content":"{"html":"test_content_html", "normal":"test_content_normal"}",
"owner": "KubeSphere",
"address_info": "["adl-111"]"
}

未进行校验控制,可以成功调用

@liuyp2018 liuyp2018 added the bug Something isn't working label Aug 2, 2019
huojiao2006 added a commit to huojiao2006/notification that referenced this issue Aug 8, 2019
@huojiao2006
Copy link
Contributor

fix

@liuyp2018
Copy link
Author

在新版本中验证,该问题依然存在

@l1ch40
Copy link
Contributor

l1ch40 commented Mar 12, 2020

fix

我现在解决方案是如果address_info中有一个id为不存在的信息,我将结束整个流程。这样可以么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants