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 2019/07/19 07:24:04 UTC

[dubbo] branch master updated (d7d4d67 -> 894651a)

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

liujun pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git.


    from d7d4d67  Optimize part of the code in AnnotatedBeanDefinitionRegistryUtils.java (#4590)
     new b89f1fb  update change list
     new 9b1e78b  update change list, fix typesetting problem
     new 894651a  [Dubbo] Fix StringIndexOutOfBoundsException when len=0 #4402 (#4425)

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGES.md                                         | 25 +++++++++++-----------
 .../java/org/apache/dubbo/common/io/Bytes.java     |  6 ++++++
 .../java/org/apache/dubbo/common/io/BytesTest.java |  6 ++++++
 3 files changed, 25 insertions(+), 12 deletions(-)


[dubbo] 01/03: update change list

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit b89f1fbc731a7feaa2b1d394069e76f920744e0f
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Jul 12 16:42:04 2019 +0800

    update change list
---
 CHANGES.md | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 2d19b99..a88905b 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -24,7 +24,9 @@
 
 5. Support to read the environment configuration from the specified location, which can be specified by -D or OS VARIABLE. Please refer to [automatically loading environment variables](http://dubbo.apache.org/en-us/docs/user/configuration/environment-variables.html)
 
-6. Some other bugfixes, #4346 #4338 #4349 #4377
+6. Fix consumer cannot downgrade to providers with no tags when there's no tagged providers can match, #4525
+
+7. Some other bugfixes, #4346 #4338 #4349 #4377
 
 ### Change List
 
@@ -48,7 +50,9 @@
 
 5. 支持从指定位置读取环境配置,可通过-D或OS VARIABLE指定,具体请参见[使用说明](http://dubbo.apache.org/zh-cn/docs/user/configuration/environment-variables.html)
 
-6. 其他一些bugfix,#4346 #4338 #4349 #4377 
+6. 标签路由在消费端使用静态打标方式时,无法实现自动降级以消费无标签提供者 #4525
+
+7. 其他一些bugfix,#4346 #4338 #4349 #4377 
 
 ## 2.7.2
 


[dubbo] 02/03: update change list, fix typesetting problem

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 9b1e78b0465dc0dd5ea2a75491546d0507b645b0
Author: ken.lj <ke...@gmail.com>
AuthorDate: Fri Jul 12 22:51:53 2019 +0800

    update change list, fix typesetting problem
---
 CHANGES.md | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index a88905b..f37a12d 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -5,20 +5,17 @@
 ### Change List
 
 1. Asynchronous support
-
-    - Unified asynchronous and synchronous callback process, exception scenario triggers onError callback, #4401.
-    - Performance degradation caused by CompletableFuture.get() in JDK1.8 environment, #4279.
+    * Unified asynchronous and synchronous callback process, exception scenario triggers onError callback, #4401
+    * Performance degradation caused by CompletableFuture.get() in JDK1.8 environment, #4279
 
 2. Configuration Center
-
-    - ConfigCenter custom namespace does not take effect, #4411.
-    - Unify the models implemented by several configuration centers such as Zookeeper, Nacos, and Etcd. Please refer to the description for possible incompatibility issues, #4388.
-    - Adjust Override Coverage Rule Center Priority: Service Level > Application Level, #4175.
+    * ConfigCenter custom namespace does not take effect, #4411
+    * Unify the models implemented by several configuration centers such as Zookeeper, Nacos, and Etcd. Please refer to the description for possible incompatibility issues, #4388
+    * Adjust Override Coverage Rule Center Priority: Service Level > Application Level, #4175
 
 3. 2.6.x compatibility
-
-    - Support Zipkin tracing feature provided by Zipkin officially, #3728, #4471.
-    - DubboComponentScan supports simultaneous scanning of annotations under the `com.alibaba.*` and `org.apache.*` packages, #4330.
+    * Support Zipkin tracing feature provided by Zipkin officially, #3728, #4471
+    * DubboComponentScan supports simultaneous scanning of annotations under the `com.alibaba.*` and `org.apache.*` packages, #4330
 
 4. The Nacos Registration Center only subscribes to the address list and no longer subscribes to configuration information, #4454.
 


[dubbo] 03/03: [Dubbo] Fix StringIndexOutOfBoundsException when len=0 #4402 (#4425)

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 894651a2fe28f0a33f23b28cd1090698197c9874
Author: 孙不服 <su...@163.com>
AuthorDate: Wed Jul 17 10:29:32 2019 +0800

    [Dubbo] Fix StringIndexOutOfBoundsException when len=0 #4402 (#4425)
    
    * add guard clause for len=0
    
    * add guard clause for len=0
---
 dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java    | 6 ++++++
 .../src/test/java/org/apache/dubbo/common/io/BytesTest.java         | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
index 5112dcf..236c4ba 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
@@ -620,6 +620,9 @@ public class Bytes {
         if (len < 0) {
             throw new IndexOutOfBoundsException("base642bytes: length < 0, length is " + len);
         }
+        if (len == 0) {
+            return new byte[0];
+        }
         if (off + len > str.length()) {
             throw new IndexOutOfBoundsException("base642bytes: offset + length > string length.");
         }
@@ -708,6 +711,9 @@ public class Bytes {
         if (len < 0) {
             throw new IndexOutOfBoundsException("base642bytes: length < 0, length is " + len);
         }
+        if (len == 0) {
+            return new byte[0];
+        }
         if (off + len > str.length()) {
             throw new IndexOutOfBoundsException("base642bytes: offset + length > string length.");
         }
diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
index cae1a83..c9e6d8b 100644
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
@@ -57,6 +57,12 @@ public class BytesTest {
 
         byte[] bytesWithC64 = Bytes.base642bytes(str, C64);
         assertThat(bytesWithC64, is(bytes));
+
+        byte[] emptyBytes = Bytes.base642bytes("dubbo", 0, 0);
+        assertThat(emptyBytes, is("".getBytes()));
+
+        assertThat(Bytes.base642bytes("dubbo", 0, 0, ""), is("".getBytes()));
+        assertThat(Bytes.base642bytes("dubbo", 0, 0, new char[0]), is("".getBytes()));
     }
 
     @Test