-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
GroupKey in nacos-client config have some bug #5018
Comments
dataId or groupId is blank should not be allowed, "DEFAULT_GROUP" will be set outside if groupId is empty |
@shiyiyue1102 this code will not throw exception,
null2defaultGroup will check group is null, not empty
|
Yes,because 'DEFAULT_GROUP' will be set if group is blank, if we focus on the method GroupKey.getKey ,blank group is not valid and should throw exception. |
so we could change null2defaultGroup to blank2defaultGroup, and add param check in GroupKey. |
Describe the bug
1.
GroupKey.getKey
will not check dataId or groupId is blank2.
GroupKey.parseKey("f++bar")
get wrong result [f, bar, null]Expected behavior
Acutally behavior
A clear and concise description of what you actually to happen.
How to Reproduce
these unit tests will fail.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: