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 2020/07/07 05:16:24 UTC

[dubbo-hessian-lite] branch whitelist-blacklist created (now c30837c)

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

liujun pushed a change to branch whitelist-blacklist
in repository https://gitbox.apache.org/repos/asf/dubbo-hessian-lite.git.


      at c30837c  work as blacklist by default

This branch includes the following new commits:

     new c30837c  work as blacklist by default

The 1 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.



[dubbo-hessian-lite] 01/01: work as blacklist by default

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

liujun pushed a commit to branch whitelist-blacklist
in repository https://gitbox.apache.org/repos/asf/dubbo-hessian-lite.git

commit c30837c288dfeb8e28aa8006cc8c2621399ad33c
Author: ken.lj <ke...@gmail.com>
AuthorDate: Tue Jul 7 13:13:59 2020 +0800

    work as blacklist by default
---
 src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java b/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java
index 09833e3..98aec15 100644
--- a/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java
+++ b/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java
@@ -104,7 +104,11 @@ public class ClassFactory
             }
         }
 
-        return false;
+        if (_isWhitelist) {
+            return false;
+        }
+
+        return true;
     }
 
     public void setWhitelist(boolean isWhitelist)