You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2018/11/08 06:23:53 UTC

[incubator-dubbo] branch dev-metadata updated: Fix problem when parsing override rule

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch dev-metadata
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/dev-metadata by this push:
     new ebb7dd7  Fix problem when parsing override rule
ebb7dd7 is described below

commit ebb7dd720404aca6de6f8e3a8d4398120031b8a8
Author: ken.lj <ke...@gmail.com>
AuthorDate: Thu Nov 8 14:23:42 2018 +0800

    Fix problem when parsing override rule
---
 .../java/org/apache/dubbo/registry/integration/parser/ConfigParser.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
index ef24b36..961b106 100644
--- a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
+++ b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/parser/ConfigParser.java
@@ -164,6 +164,7 @@ public class ConfigParser {
         if (i > 0) {
             sb.append("group=");
             sb.append(interfaceName.substring(0, i));
+            sb.append("&");
 
             interfaceName = interfaceName.substring(i + 1);
         }
@@ -171,6 +172,7 @@ public class ConfigParser {
         if (j > 0) {
             sb.append("version=");
             sb.append(interfaceName.substring(j + 1));
+            sb.append("&");
             interfaceName = interfaceName.substring(0, j);
         }
         sb.insert(0, interfaceName + "?");