You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zhangcunli (via GitHub)" <gi...@apache.org> on 2024/11/29 02:47:07 UTC

[I] dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment [dubbo-go]

zhangcunli opened a new issue, #2752:
URL: https://github.com/apache/dubbo-go/issues/2752

   ### Environment
   
   <!-- 
   - Server: Dubbo-go, v3.0.5
   - Client: Dubbo-go, v3.0.5
   - Protocol: Triple
   - Registry: Nacos, v2.0.0
   -->
   
   - Server: Dubbo-Java, v3.3.0
   - Client: Dubbo-go, v3.2.0-rc2
   - Protocol:  tri
   - Registry: zookeeper
   
   ### Issue description
   Server can't get "remote.application" key from attachment.
   
   ### Logs
   1.client, dubbo-go v3.2.0-rc2
   ```go
   		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:
   ```Java
           Map<String, Object> serverAttachments = RpcContext.getServerAttachment().getObjectAttachments();
           System.out.println("ContextService serverAttachments:" + JSON.toJSONString(serverAttachments));
   ```
   
   3. server print:
   ```Json
   {
       "key1": "value1",
       "retries": "",
       "remote.application2": "appname"
   }
   ```
       "remote.application" key is null
   
   
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment [dubbo-go]

Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks commented on issue #2752:
URL: https://github.com/apache/dubbo-go/issues/2752#issuecomment-2558438002

   zhangcunli 反馈:如果把 “remote.application” 发送到 dubbo 端,这个 attachment 就丢失了


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment [dubbo-go]

Posted by "solisamicus (via GitHub)" <gi...@apache.org>.
solisamicus commented on issue #2752:
URL: https://github.com/apache/dubbo-go/issues/2752#issuecomment-2653607367

   For reference, there's a related article that might help: [Reference Article](https://solisamicus.github.io/post/df6bd9a7.html). Hope it helps!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment [dubbo-go]

Posted by "AlexStocks (via GitHub)" <gi...@apache.org>.
AlexStocks commented on issue #2752:
URL: https://github.com/apache/dubbo-go/issues/2752#issuecomment-2653719717

   这里先给出结论:这不是一个 bug,之所以 attachment 中 key 为 "remote.application" 的 item 在 dubbo server 端被过滤掉,是因为该 key 是 dubbo(Java) attachment 中的保留字段,不允许用户使用。
   
   ![Image](https://github.com/user-attachments/assets/d879c740-e032-4507-8800-9397022c3d8e)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment [dubbo-go]

Posted by "No-SilverBullet (via GitHub)" <gi...@apache.org>.
No-SilverBullet closed issue #2752: dubbo-go client, dubbo-Java server, server can't get "remote.application" key attachment
URL: https://github.com/apache/dubbo-go/issues/2752


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org