We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Server can't get "remote.application" key from attachment.
1.client, dubbo-go v3.2.0-rc2
atm := make(map[string]interface{}) atm["key1"] = "value1" atm["remote.application"] = "appname" atm["remote.application2"] = "appname" ctx1 := context.WithValue(context.Background(), v3constant.AttachmentKey, atm)
2.server:
Map<String, Object> serverAttachments = RpcContext.getServerAttachment().getObjectAttachments(); System.out.println("ContextService serverAttachments:" + JSON.toJSONString(serverAttachments));
{ "key1": "value1", "retries": "", "remote.application2": "appname" }
"remote.application" key is null
The text was updated successfully, but these errors were encountered:
zhangcunli 反馈:如果把 “remote.application” 发送到 dubbo 端,这个 attachment 就丢失了
Sorry, something went wrong.
For reference, there's a related article that might help: Reference Article. Hope it helps!
这里先给出结论:这不是一个 bug,之所以 attachment 中 key 为 "remote.application" 的 item 在 dubbo server 端被过滤掉,是因为该 key 是 dubbo(Java) attachment 中的保留字段,不允许用户使用。
No branches or pull requests
Environment
Issue description
Server can't get "remote.application" key from attachment.
Logs
1.client, dubbo-go v3.2.0-rc2
2.server:
The text was updated successfully, but these errors were encountered: