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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 55e999a4a3a5 CAMEL-28111: Upgrade guide notes for 4.22.4 and 4.18.7 - 
a dynamic uri keeps the uri text of the options that a component evaluates for 
each message (#31375)
55e999a4a3a5 is described below

commit 55e999a4a3a5d58bd7c7264a00235d216a890400
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Dec 5 20:10:10 2026 +0100

    CAMEL-28111: Upgrade guide notes for 4.22.4 and 4.18.7 - a dynamic uri 
keeps the uri text of the options that a component evaluates for each message 
(#31375)
    
    Signed-off-by: Claus Ibsen <[email protected]>
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../ROOT/pages/camel-4x-upgrade-guide-4_18.adoc      | 20 ++++++++++++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_22.adoc      | 20 ++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
index 5edd4ab21f35..77759efc9b49 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc
@@ -29,6 +29,26 @@ So they were not used: `as2://client/send` connected over 
http, and `as2://serve
 `sslContextParameters` (or with `useGlobalSslContextParameters=true`) connects 
and listens with TLS, and its partners
 must use https. An `sslContext` set on the endpoint takes precedence.
 
+=== camel-core - a dynamic uri keeps the uri text of the options that a 
component evaluates for each message
+
+Some components evaluate an endpoint option as an expression for each message, 
for example the meter name and the
+`tags.` options of `camel-micrometer` and `camel-opentelemetry-metrics`, the 
`keyName` of `camel-aws2-s3`, the
+`parameters.` of `camel-jpa`, or the `fileName`, `move` and `filterFile` 
options of the file components. With a dynamic
+uri (`toD`, `enrich` and `pollEnrich` with an expression, and `wireTap` with a 
dynamic uri), these options now keep the
+text that is written in the uri, and the component evaluates that text once 
for each message, as with a static `to`.
+Before, the text that the dynamic uri computed from the message became the 
option value, and the component then
+evaluated that text as an expression of its own. A header value with `${...}` 
in it is now used as it is. Routes that
+put an expression into a header for such an option need to write the 
expression in the uri instead.
+
+* Such an option that is not written in the uri, and only comes up in the 
computed uri (for example because a header
+  value contains `&`), now fails with a `ResolveEndpointFailedException`.
+* With `pollEnrich` from a file component, the consumer evaluates `move`, 
`moveFailed`, `preMove` and `sortBy` against
+  the polled file, as with a static uri, so a `${header.name}` in them refers 
to the headers of the polled file and not
+  to the message being enriched. The `fileName`, `filterFile`, 
`filterDirectory` and `idempotentKey` options still see
+  the headers of the message being enriched.
+* On this release line, the options are a fixed list of the components above, 
kept in `camel-core`. Other
+  components, and `recipientList`, `routingSlip` and `dynamicRouter`, are not 
changed.
+
 === camel-ftp, camel-mina-sftp, camel-jsch, camel-azure-files - the starting 
directory check resolves a name as a server does
 
 The check that a file is in the starting directory 
(`jailStartingDirectory=true`, the default, for a producer, and the
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
index 77fca6f6ecc3..90fe525cbdcb 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -29,6 +29,26 @@ So they were not used: `as2://client/send` connected over 
http, and `as2://serve
 `sslContextParameters` (or with `useGlobalSslContextParameters=true`) connects 
and listens with TLS, and its partners
 must use https. An `sslContext` set on the endpoint takes precedence.
 
+=== camel-core - a dynamic uri keeps the uri text of the options that a 
component evaluates for each message
+
+Some components evaluate an endpoint option as an expression for each message, 
for example the meter name and the
+`tags.` options of `camel-micrometer` and `camel-opentelemetry-metrics`, the 
`keyName` of `camel-aws2-s3`, the
+`parameters.` of `camel-jpa`, or the `fileName`, `move` and `filterFile` 
options of the file components. With a dynamic
+uri (`toD`, `enrich` and `pollEnrich` with an expression, and `wireTap` with a 
dynamic uri), these options now keep the
+text that is written in the uri, and the component evaluates that text once 
for each message, as with a static `to`.
+Before, the text that the dynamic uri computed from the message became the 
option value, and the component then
+evaluated that text as an expression of its own. A header value with `${...}` 
in it is now used as it is. Routes that
+put an expression into a header for such an option need to write the 
expression in the uri instead.
+
+* Such an option that is not written in the uri, and only comes up in the 
computed uri (for example because a header
+  value contains `&`), now fails with a `ResolveEndpointFailedException`.
+* With `pollEnrich` from a file component, the consumer evaluates `move`, 
`moveFailed`, `preMove` and `sortBy` against
+  the polled file, as with a static uri, so a `${header.name}` in them refers 
to the headers of the polled file and not
+  to the message being enriched. The `fileName`, `filterFile`, 
`filterDirectory` and `idempotentKey` options still see
+  the headers of the message being enriched.
+* On this release line, the options are a fixed list of the components above, 
kept in `camel-core`. Other
+  components, and `recipientList`, `routingSlip` and `dynamicRouter`, are not 
changed.
+
 === camel-openai, camel-spring-ai-chat - the path of the mcpServer url is the 
endpoint of the MCP server
 
 With `transportType=streamableHttp` (camel-openai) or `transportType=sse` 
(camel-openai and camel-spring-ai-chat), the

Reply via email to