Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

CSE中服务动态配置不带版本号情况下无效 #47

Closed
TimChen676 opened this issue Oct 21, 2020 · 0 comments
Closed

CSE中服务动态配置不带版本号情况下无效 #47

TimChen676 opened this issue Oct 21, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TimChen676
Copy link

服务动态配置中不带版本号,比如xxx@discovery,而服务本身是强制带版本号(版本号为空的话是1.0.0.0),比如xxx@discovery#1.0.0 会导致配置失效

CSE中作用域:hsa-template-consumer@discovery


这行中request.getServiceName()获取到的serviceName不带@和#,会导致匹配失效。

DEBUG截图如下:
image-20201021161608953

查阅了spring-cloud-huawei的源码
https://github.com/huaweicloud/spring-cloud-huawei/blob/1433a8f7d020bd0d743a732dc7b6c6084c0a89b6/spring-cloud-huawei-config/src/main/java/com/huaweicloud/config/client/ConfigCenterClient.java#L63
对CSE配置中不带版本号的情况已进行处理

@liubao68 liubao68 added the bug Something isn't working label Oct 22, 2020
@liubao68 liubao68 added this to the 2.0.1 milestone Oct 29, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 29, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants