dubbo3/SentinelDubboProviderFilter.java 配置key 错误导致授权规则失败

nwwlzxa7  于 2022-10-19  发布在  Java
关注(0)|答案(4)|浏览(269)

Issue Description

Type: bug report or feature request

DubboUtils.SENTINEL_DUBBO_APPLICATION_KEY

经过consumer 传输到producer 变成了小写(public static final String SENTINEL_DUBBO_APPLICATION_KEY = "dubboApplication";)---> (public static final String SENTINEL_DUBBO_APPLICATION_KEY = "dubboapplication";))

导致取不到应用名,导致授权规则

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

xuo3flqw

xuo3flqw1#

这个已经在群里反馈了, dubbo3 triple协议的问题,改dubbo协议正常,另外triple协议还漏了好多要透传的字段

snvhrwxg

snvhrwxg2#

Dubbo 3 adapter 获取对端应用名已经修改为从 context 直接获取,理论上不再强制依赖这个特殊的 attachment。可以看一下 context 里面取 remoteApplicationName 是不是没拿到。

n3schb8v

n3schb8v4#

Triple 协议的等 1.8.6 发版后用新的 Dubbo 3 Adapter 吧,那个会优先从 Dubbo API 获取应用名

相关问题