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

[GitHub] [dubbo] lbhfuture opened a new issue, #11937: 使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k

lbhfuture opened a new issue, #11937:
URL: https://github.com/apache/dubbo/issues/11937

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ x ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k。
   提示信息如下:
   ```
   2023-03-27T11:31:40.420+08:00  WARN 18149 --- [  XNIO-1 task-2] o.a.d.r.protocol.tri.stream.StreamUtils  :  [DUBBO] Unsupported attachment k: tenant_attachment class: com.xxx.TenantAttributesSupport$TenantAttributes, dubbo version: 3.2.0-beta.5, current host: 10.98.78.92, error code: 4-1. This may be caused by , go to https://dubbo.apache.org/faq/4/1 to find instructions.
   ```
   使用方式是自定义 Filter,在 invoke 方法里调用 `Object tenant = invocation.getObjectAttachment(AttachmentKey.TENANT);`。
   使用的版本是 3.2.0-beta.5。
   请问这个问题是什么原因出现的,我需要如何消除。


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


[GitHub] [dubbo] lbhfuture commented on issue #11937: 使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k

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

   收到,非常感谢解答。


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


[GitHub] [dubbo] AlbumenJ commented on issue #11937: 使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k

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

   Triple 协议不支持传递非 string 类型的 attachemnt。
   (原因:http header 仅支持字符串)


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


[GitHub] [dubbo] lbhfuture closed issue #11937: 使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k

Posted by "lbhfuture (via GitHub)" <gi...@apache.org>.
lbhfuture closed issue #11937: 使用 ObjectAttachment 传递租户信息时,报不支持的 attachment k
URL: https://github.com/apache/dubbo/issues/11937


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