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 2024/01/09 10:56:47 UTC

(camel) 01/01: CAMEL-20303 - Camel-Sql: Add ObjectInputFilter String pattern parameter in JdbcAggregationRepository to be used in unmarshall operations - Added migration docs and sql docs

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

acosentino pushed a commit to branch CAMEL-20303-docs-migration
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 9a0c9cb70a962bc02bfa0b05b3791ace008e326a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 9 11:54:00 2024 +0100

    CAMEL-20303 - Camel-Sql: Add ObjectInputFilter String pattern parameter in JdbcAggregationRepository to be used in unmarshall operations - Added migration docs and sql docs
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 components/camel-sql/src/main/docs/sql-component.adoc               | 4 ++++
 docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/components/camel-sql/src/main/docs/sql-component.adoc b/components/camel-sql/src/main/docs/sql-component.adoc
index 9e45f3c5ada..fff24f09f4a 100644
--- a/components/camel-sql/src/main/docs/sql-component.adoc
+++ b/components/camel-sql/src/main/docs/sql-component.adoc
@@ -588,6 +588,10 @@ the `currentThread` one. The benefit is to be able to load classes
 exposed by other bundles. This allows the exchange body and headers to
 have custom types object references.
 
+While deserializing it's important to notice that the decode function and the unmarshallExchange method will allow only all java packages and subpackages 
+and org.apache.camel packages and subpackages. The remaining classes will be blacklisted. So you'll need to change the filter in case of need. 
+This could be accomplished by changing the deserializationFilter field on the repository.
+
 === Transaction
 
 A Spring `PlatformTransactionManager` is required to orchestrate
diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc
index 83729a1b606..9e25a054540 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_4.adoc
@@ -118,6 +118,10 @@ useful examples of how you might need to change your code to be compatible with
 
 The component has been removed after deprecation in 4.3.0
 
+=== camel-sql
+
+The JdbcAggregationRepository now provides a deserializationFilter parameter. The default value for it is allowing all java packages and subpackages and all org.apache.camel packages and subpackages. If you plan to use particular classes and you want to expand the filter, you should change the value according to your needs. More details in CAMEL-20303.
+
 == Camel Spring Boot
 
 === Auto Configuration