You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "AlbumenJ (via GitHub)" <gi...@apache.org> on 2023/03/23 12:14:45 UTC

[GitHub] [dubbo] AlbumenJ commented on issue #11876: RpcContext获取参数问题

AlbumenJ commented on issue #11876:
URL: https://github.com/apache/dubbo/issues/11876#issuecomment-1481089124

   > 不知道你的和我的问题对不对,我的问题是消费者setAttachment但是提供者get不到,看源码发现它走的是已废弃的代码getAttachment()方法。其中会if (value instanceof String),判断成立强转为string,不成立直接return null。
   
   如果是 set 的 string 类型的这里不应该有问题。
   另外 attachment 是提供给业务编程侧使用的,如果是在 Filter 内使用的话需要直接基于 invocation 对象操作


-- 
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