Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 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 creating and starting the producer may take a little time and prolong the total processing time of the processing." },
"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 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." }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 that external entities in the message body are not resolved; enable it only for trusted legacy configurations that rely on external entity resolution." }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -47,4 +55,12 @@ public String getSmooksConfig() {
public void setSmooksConfig(String smooksConfig) {
this.smooksConfig = smooksConfig;
}

public Boolean getAllowExternalEntities() {
return allowExternalEntities;
}

public void setAllowExternalEntities(Boolean allowExternalEntities) {
this.allowExternalEntities = allowExternalEntities;
}
}
3 changes: 2 additions & 1 deletion docs/spring-boot/modules/ROOT/pages/starters/smooks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
|===
Expand All @@ -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 creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean
| 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
|===
60 changes: 30 additions & 30 deletions tooling/camel-spring-boot-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down