AlenZhai opened a new issue #8416:
URL: https://github.com/apache/dubbo/issues/8416


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   - [ ] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.1
   * Operating System version: Windwos 10
   * Java version: java8
   
   ### Steps to reproduce this issue
   
   1. 订阅 
admin://192.168.56.1?category=providers,consumers&check=false&classifier=*&group=*&interface=*&version=*
      subscribe the address 
admin://192.168.56.1?category=providers,consumers&check=false&classifier=*&group=*&interface=*&version=*
   2. NotifyListener 接收到一个DubboServiceAddressURL 列表 
      NotifyListener  rec a list DubboServiceAddressURL 
   3. 我收到URL为 
dubbo://192.168.56.1/com.alen.dubbo.provider.comm.service.XX?application=dubbo-consumer&category=consumers&check=false&dubbo=2.0.2&group=g-1&interface=com.alen.dubbo.provider.comm.service.ISayService&metadata-type=remote&methods=say&path=com.alen.dubbo.provider.comm.service.ISayService&pid=3888&protocol=dubbo&release=3.0.1&side=consumer&sticky=false&timestamp=1628075577836
      
    i want get CATEGORY parameter
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   我想获取 到 CATEGORY 参数 的值 consumers
   ### Actual Result
   实际获取到的值 为  providers
   What actually happens?
   `public String getParameter(String key) {
           // call corresponding methods directly, then we can remove the 
following if branches.
           if (GROUP_KEY.equals(key)) {
               return getGroup();
           } else if (VERSION_KEY.equals(key)) {
               return getVersion();
           } else if (APPLICATION_KEY.equals(key)) {
               return getRemoteApplication();
           } else if (SIDE_KEY.equals(key)) {
               return getSide();
           } else if (CATEGORY_KEY.equals(key)) {
               return getCategory();
           }`
   `@Override
       public String getCategory() {
           return PROVIDERS_CATEGORY;
       }`
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to