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 2026/09/11 04:21:27 UTC

(camel-spring-boot) branch main updated: [create-pull-request] automated change (#1968)

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

oscerd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 8e6ba44a054 [create-pull-request] automated change (#1968)
8e6ba44a054 is described below

commit 8e6ba44a054d926cb4959ef0601fe8b906bd49e1
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Fri Sep 11 06:21:21 2026 +0200

    [create-pull-request] automated change (#1968)
    
    Co-authored-by: oscerd <51...@users.noreply.github.com>
---
 .../springboot/catalog/components/smooks.json      |  3 +-
 .../springboot/catalog/dataformats/smooks.json     |  3 +-
 .../camel-smooks-starter/src/main/docs/smooks.json |  7 +++
 .../springboot/SmooksDataFormatConfiguration.java  | 16 ++++++
 .../modules/ROOT/pages/starters/smooks.adoc        |  3 +-
 tooling/camel-spring-boot-dependencies/pom.xml     | 60 +++++++++++-----------
 6 files changed, 59 insertions(+), 33 deletions(-)

diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smooks.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smooks.json
index 2bf77048a80..315fe986306 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smooks.json
+++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/smooks.json
@@ -35,6 +35,7 @@
     "smooksConfig": { "index": 0, "kind": "path", "displayName": "Smooks Config", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "supportFileReference": true, "description": "Path to the Smooks configuration file" },
     "reportPath": { "index": 1, "kind": "parameter", "displayName": "Report Path", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "File path to place the generated HTML execution report. The report is a useful tool in the developers arsenal for diagnosing issues or comprehending a transformation. Do not set in production since this is a major performance drain" },
     "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...]
-    "allowExecutionContextFromHeader": { "index": 3, "kind": "parameter", "displayName": "Allow Execution Context From Header", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allow execution context to be set from the CamelSmooksExecutionContext header" }
+    "allowExecutionContextFromHeader": { "index": 3, "kind": "parameter", "displayName": "Allow Execution Context From Header", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allow execution context to be set from the CamelSmooksExecutionContext header" },
+    "allowExternalEntities": { "index": 4, "kind": "parameter", "displayName": "Allow External Entities", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "security": "insecure:dev", "insecureValue": "true", "defaultValue": false, "description": "Whether to allow the XML reader used by Smooks to resolve external XML entities (external general and parameter entities) when parsin [...]
   }
 }
diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/smooks.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/smooks.json
index 2acc7b782fa..35c75d22601 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/smooks.json
+++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/smooks.json
@@ -17,6 +17,7 @@
   },
   "properties": {
     "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" },
-    "smooksConfig": { "index": 1, "kind": "attribute", "displayName": "Smooks Config", "group": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the Smooks configuration file." }
+    "smooksConfig": { "index": 1, "kind": "attribute", "displayName": "Smooks Config", "group": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the Smooks configuration file." },
+    "allowExternalEntities": { "index": 2, "kind": "attribute", "displayName": "Allow External Entities", "group": "security", "label": "security", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether to allow the XML reader used by Smooks to resolve external XML entities (external general and parameter entities) when parsing XML input. This is disabled by default so [...]
   }
 }
diff --git a/components-starter/camel-smooks-starter/src/main/docs/smooks.json b/components-starter/camel-smooks-starter/src/main/docs/smooks.json
index 68c9a3f7c77..0ab6cc744cf 100644
--- a/components-starter/camel-smooks-starter/src/main/docs/smooks.json
+++ b/components-starter/camel-smooks-starter/src/main/docs/smooks.json
@@ -55,6 +55,13 @@
       "description": "To use a custom factory for creating Smooks. The option is a org.smooks.SmooksFactory type.",
       "sourceType": "org.apache.camel.component.smooks.springboot.SmooksComponentConfiguration"
     },
+    {
+      "name": "camel.dataformat.smooks.allow-external-entities",
+      "type": "java.lang.Boolean",
+      "description": "Whether to allow the XML reader used by Smooks to resolve external XML entities (external general and parameter entities) when parsing XML input. This is disabled by default so that external entities in the message body are not resolved; enable it only for trusted legacy configurations that rely on external entity resolution.",
+      "sourceType": "org.apache.camel.dataformat.smooks.springboot.SmooksDataFormatConfiguration",
+      "defaultValue": false
+    },
     {
       "name": "camel.dataformat.smooks.customizer.enabled",
       "type": "java.lang.Boolean",
diff --git a/components-starter/camel-smooks-starter/src/main/java/org/apache/camel/dataformat/smooks/springboot/SmooksDataFormatConfiguration.java b/components-starter/camel-smooks-starter/src/main/java/org/apache/camel/dataformat/smooks/springboot/SmooksDataFormatConfiguration.java
index de57d722084..9f125eab7f8 100644
--- a/components-starter/camel-smooks-starter/src/main/java/org/apache/camel/dataformat/smooks/springboot/SmooksDataFormatConfiguration.java
+++ b/components-starter/camel-smooks-starter/src/main/java/org/apache/camel/dataformat/smooks/springboot/SmooksDataFormatConfiguration.java
@@ -39,6 +39,14 @@ public class SmooksDataFormatConfiguration
      * Path to the Smooks configuration file.
      */
     private String smooksConfig;
+    /**
+     * Whether to allow the XML reader used by Smooks to resolve external XML
+     * entities (external general and parameter entities) when parsing XML
+     * input. This is disabled by default so that external entities in the
+     * message body are not resolved; enable it only for trusted legacy
+     * configurations that rely on external entity resolution.
+     */
+    private Boolean allowExternalEntities = false;
 
     public String getSmooksConfig() {
         return smooksConfig;
@@ -47,4 +55,12 @@ public class SmooksDataFormatConfiguration
     public void setSmooksConfig(String smooksConfig) {
         this.smooksConfig = smooksConfig;
     }
+
+    public Boolean getAllowExternalEntities() {
+        return allowExternalEntities;
+    }
+
+    public void setAllowExternalEntities(Boolean allowExternalEntities) {
+        this.allowExternalEntities = allowExternalEntities;
+    }
 }
\ No newline at end of file
diff --git a/docs/spring-boot/modules/ROOT/pages/starters/smooks.adoc b/docs/spring-boot/modules/ROOT/pages/starters/smooks.adoc
index 4d27c186830..6a6ee040a36 100644
--- a/docs/spring-boot/modules/ROOT/pages/starters/smooks.adoc
+++ b/docs/spring-boot/modules/ROOT/pages/starters/smooks.adoc
@@ -24,7 +24,7 @@ Please refer to the above links for usage and configuration details.
 
 == Spring Boot Auto-Configuration
 
-The starter supports 6 options, which are listed below.
+The starter supports 7 options, which are listed below.
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
@@ -33,6 +33,7 @@ The starter supports 6 options, which are listed below.
 | camel.component.smooks.enabled | Whether to enable auto configuration of the smooks component. This is enabled by default. |  | Boolean
 | camel.component.smooks.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then  [...]
 | camel.component.smooks.smooks-factory | To use a custom factory for creating Smooks. The option is a org.smooks.SmooksFactory type. |  | SmooksFactory
+| camel.dataformat.smooks.allow-external-entities | Whether to allow the XML reader used by Smooks to resolve external XML entities (external general and parameter entities) when parsing XML input. This is disabled by default so that external entities in the message body are not resolved; enable it only for trusted legacy configurations that rely on external entity resolution. | false | Boolean
 | camel.dataformat.smooks.enabled | Whether to enable auto configuration of the smooks data format. This is enabled by default. |  | Boolean
 | camel.dataformat.smooks.smooks-config | Path to the Smooks configuration file. |  | String
 |===
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml b/tooling/camel-spring-boot-dependencies/pom.xml
index 419bfe59c88..a1fd3f1246b 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -114,152 +114,152 @@
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-all</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-alts</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-api</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-auth</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-benchmarks</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-census</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-context</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-core</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-gcp-csm-observability</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-gcp-observability</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-googleapis</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-grpclb</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-inprocess</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-interop-testing</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-netty</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-netty-shaded</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-okhttp</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-opentelemetry</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-protobuf</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-protobuf-lite</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-rls</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-services</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-servlet</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-servlet-jakarta</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-stub</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-testing</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-testing-proto</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-util</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>grpc-xds</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
       </dependency>
       <dependency>
         <groupId>io.grpc</groupId>
         <artifactId>protoc-gen-grpc-java</artifactId>
-        <version>1.83.1</version>
+        <version>1.84.0</version>
         <type>pom</type>
       </dependency>
       <dependency>