-
Notifications
You must be signed in to change notification settings - Fork 13k
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
nacos-client的NacosConfigService类出现bug,将命名空间namespace当成tenant,去做接口请求,导致参数查询不到希望最新版本的jar包能修正这个bug #2275
Comments
额.其实namespace就是tenant,不知道是历史原因还是什么,namespace的表名,相关操作的部分接口名,参数都是叫 tenant, 所以请求的接口应该是对的. 具体是请求什么接口?出什么错?如何重现? |
出现bug的版本在nacos-client1.4的NacosConfigService将namespace封装成这tenant字段去做请求, |
大概清楚您的意思了: |
第一个问题:是的,参数名为tenant则返回错误, |
OK,知道原因了...参数名用 namespace 没问题是因为根本没有这个参数, 正确的参数名就是 tenant. |
这样处理就行,在子项目 config 的 com.alibaba.nacos.config.server.controller.ConfigController的 getConfig 方法中
exportConfig 方法里也会有这个问题 |
另外这边还由此发现一个问题,命名空间本身在页面就拦截了就不可以设置为重复,结果用命名空间名称去请求,反而查不到数据,需要用命名空间所属id才可以访问,是否能优化这个查询呢? |
这个目前不好处理,命名空间名称是可以重复的,只有ID是唯一的. |
我来改上面的问题吧... |
Issue Description
Type: bug report or feature request
Describe what happened (or what feature you want)
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?
The text was updated successfully, but these errors were encountered: