You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/10/20 07:52:17 UTC

[camel] branch camel-2.20.x updated: CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option

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

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


The following commit(s) were added to refs/heads/camel-2.20.x by this push:
     new 69a88dc  CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option
69a88dc is described below

commit 69a88dcf353c28d3c313b51ac9694a748193075d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 20 09:50:06 2017 +0200

    CAMEL-11923 - Camel-Hessian add metadata to whitelistEnabled option
---
 .../main/java/org/apache/camel/model/dataformat/HessianDataFormat.java  | 1 +
 components/camel-hessian/src/main/docs/hessian-dataformat.adoc          | 2 +-
 .../dataformat/hessian/springboot/HessianDataFormatConfiguration.java   | 2 +-
 3 files changed, 3 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 06734c8..4c6a6e4 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
@@ -33,6 +33,7 @@ import org.apache.camel.spi.Metadata;
 @Deprecated
 public class HessianDataFormat extends DataFormatDefinition {
     @XmlAttribute
+    @Metadata(defaultValue = "true")
     private Boolean whitelistEnabled = true;
     
     @XmlAttribute
diff --git a/components/camel-hessian/src/main/docs/hessian-dataformat.adoc b/components/camel-hessian/src/main/docs/hessian-dataformat.adoc
index 2db0087..6c3629c 100644
--- a/components/camel-hessian/src/main/docs/hessian-dataformat.adoc
+++ b/components/camel-hessian/src/main/docs/hessian-dataformat.adoc
@@ -26,7 +26,7 @@ The Hessian dataformat supports 4 options which are listed below.
 [width="100%",cols="2s,1m,1m,6",options="header"]
 |===
 | Name | Default | Java Type | Description
-| whitelistEnabled | false | Boolean | Define if Whitelist feature is enabled or not
+| whitelistEnabled | true | Boolean | Define if Whitelist feature is enabled or not
 | allowedUnmarshallObjects |  | String | Define the allowed objects to be unmarshalled
 | deniedUnmarshallObjects |  | String | Define the denied objects to be unmarshalled
 | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML or application/json for data formats marshalling to JSon etc.
diff --git a/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java b/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
index 552521d..8a8e1fc 100644
--- a/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-hessian-starter/src/main/java/org/apache/camel/dataformat/hessian/springboot/HessianDataFormatConfiguration.java
@@ -35,7 +35,7 @@ public class HessianDataFormatConfiguration
     /**
      * Define if Whitelist feature is enabled or not
      */
-    private Boolean whitelistEnabled = false;
+    private Boolean whitelistEnabled = true;
     /**
      * Define the allowed objects to be unmarshalled
      */

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