camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] branch camel-2.19.x updated: CAMEL-11923 - Camel-Hessian enable whitelisting by default
Date Fri, 20 Oct 2017 07:25:25 GMT
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.19.x by this push:
     new 3a59c63  CAMEL-11923 - Camel-Hessian enable whitelisting by default
3a59c63 is described below

commit 3a59c6343c8162eab26e0f0ba44c502dc39ce2e1
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Fri Oct 20 09:19:16 2017 +0200

    CAMEL-11923 - Camel-Hessian enable whitelisting by default
---
 .../main/java/org/apache/camel/model/dataformat/HessianDataFormat.java  | 2 +-
 .../java/org/apache/camel/dataformat/hessian/HessianDataFormat.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java
b/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java
index d07590a..9ad86bd 100644
--- a/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java
+++ b/camel-core/src/main/java/org/apache/camel/model/dataformat/HessianDataFormat.java
@@ -32,7 +32,7 @@ import org.apache.camel.spi.Metadata;
 @XmlAccessorType(XmlAccessType.FIELD)
 public class HessianDataFormat extends DataFormatDefinition {
     @XmlAttribute
-    private Boolean whitelistEnabled;
+    private Boolean whitelistEnabled = true;
     
     @XmlAttribute
     private String allowedUnmarshallObjects;
diff --git a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/HessianDataFormat.java
b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/HessianDataFormat.java
index 21e2b88..d2d9882 100644
--- a/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/HessianDataFormat.java
+++ b/components/camel-hessian/src/main/java/org/apache/camel/dataformat/hessian/HessianDataFormat.java
@@ -40,7 +40,7 @@ import org.apache.camel.util.ObjectHelper;
 public class HessianDataFormat extends ServiceSupport implements DataFormat, DataFormatName
{
 
     private static final String FORMAT_NAME = "hessian";
-    private boolean whitelistEnabled;
+    private boolean whitelistEnabled = true;
     private String allowedUnmarshallObjects;
     private String deniedUnmarshallObjects;
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <commits@camel.apache.org>'].

Mime
View raw message