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

nacos 3.0 版本修改配置提交后会跑到另外一个命名空间下 #12972

Closed
menghuan opened this issue Dec 19, 2024 · 4 comments
Closed
Labels
kind/bug Category issues or prs related to bug. Nacos3.0 Nacos 3.0 Architecture Evolution

Comments

@menghuan
Copy link

在本地测试 nacos 3.0版本 控制台配置列表 修改某命名空间下的配置提交后会到另外一个 public 命名空间下(后者命名空间是最新的内容,前者命名空间没有新增的内容)。后者指的是public命名空间,前者是我新加的

操作过程可以参照这个视频

0d32ad730521b599b96243394eb8ddb5.mp4
@KiteSoar
Copy link
Contributor

能复现这个问题,发布配置时,前端发送的参数字段名为“tenant”,而在后端中,原先版本使用的是“tenant”来进行映射处理。然而,在升级到3.0版本后,后端改为使用“namespaceId”字段。由于这一变更,后端未能正确接收到前端发送的“tenant”字段值,导致后端默认将配置修改应用到了“public”命名空间,从而引发了这个问题。

@KiteSoar
Copy link
Contributor

image
image
image

@misakacoder
Copy link
Contributor

后端接口返回的tenant字段,发布配置的时候直接原封不动提交上去了,发布接口又不是用的这个字段去接收

@KomachiSion KomachiSion added kind/bug Category issues or prs related to bug. Nacos3.0 Nacos 3.0 Architecture Evolution labels Dec 24, 2024
@menghuan
Copy link
Author

谢谢,那最后用哪个版本可以测试下这个问题?

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. Nacos3.0 Nacos 3.0 Architecture Evolution
Projects
None yet
Development

No branches or pull requests

4 participants