Skip to content

[backport camel-4.18.x] CAMEL-23590: camel-milo - align Exchange header constant names with Camel naming convention#23509

Merged
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23474-to-camel-4.18.x
May 26, 2026
Merged

[backport camel-4.18.x] CAMEL-23590: camel-milo - align Exchange header constant names with Camel naming convention#23509
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23474-to-camel-4.18.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 25, 2026

Backport of #23474

Cherry-pick of #23474 onto camel-4.18.x.

Manual adjustments during cherry-pick

  • Upgrade-guide entry moved from camel-4x-upgrade-guide-4_21.adoc (does not
    exist on this branch) to camel-4x-upgrade-guide-4_18.adoc, preserving the
    full content including the - potential breaking change flag. The matching
    4_18.adoc entry on main should be synced in a follow-up PR per
    CLAUDE.md's backport upgrade-guide policy.
  • Regenerated component metadata, catalog, and endpoint DSL using
    4.18.x's generators (full reactor build, -DskipTests).

Change summary

Renames MiloConstants.HEADER_AWAIT header string value from "await" to
"CamelMiloAwait". The Java field name is unchanged so routes referencing the
constant symbolically continue to work; routes using the literal string value
must be updated. Also updates the two tests that set the header by literal
value, and the generated endpoint DSL header accessor (await()miloAwait()).
MiloConstants.HEADER_NODE_IDS was already Camel-prefixed and is unchanged.

JIRA: https://issues.apache.org/jira/browse/CAMEL-23590


Backport prepared by Claude Code on behalf of Andrea Cosentino.

…amel naming convention (apache#23474)

* CAMEL-23590: camel-milo - align Exchange header constant names with Camel naming convention

Renames the MiloConstants.HEADER_AWAIT header string value from "await" (which
is outside the Camel namespace and therefore not filtered by the default
HeaderFilterStrategy) to "CamelMiloAwait", following the convention used across
the rest of the Camel component catalog and matching the pattern established in
CAMEL-23526 (camel-cxf), CAMEL-23522 (camel-mail), CAMEL-23461
(camel-aws-bedrock), CAMEL-23532 (camel-vertx-websocket /
camel-atmosphere-websocket / camel-iggy), and CAMEL-23576 (camel-jira).

The Java field name is unchanged so routes referencing the constant
symbolically continue to work; routes using the literal string value must be
updated (documented in the 4.21 upgrade guide). MiloConstants.HEADER_NODE_IDS
was already Camel-prefixed (CamelMiloNodeIds) and is unchanged.

Updates the two tests (WriteClientTest, CallClientTest) that set the header by
its literal value. The generated Endpoint DSL header accessor await() on
MiloClientHeaderNameBuilder has been renamed to miloAwait().

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

* CAMEL-23590: address review - update milo-client doc example to new header value

Updates the route example in components/camel-milo/src/main/docs/milo-client-component.adoc
that quoted the old literal header value "await" to use the new
"CamelMiloAwait" value introduced by this PR.

Addresses Guillaume Nodet's review on apache#23474.

Reported by Claude Code on behalf of Andrea Cosentino

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

---------

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd requested review from davsclaus, gnodet and orpiske May 25, 2026 17:21
Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean backport of the camel-milo HEADER_AWAIT rename to 4.18.x. Header value changed from await to CamelMiloAwait, Java constant, catalog JSON, Endpoint DSL accessor, tests, and upgrade guide all updated consistently. Doc example in milo-client-component.adoc also fixed.

LGTM.

Claude Code on behalf of Guillaume Nodet

@oscerd oscerd merged commit 12ff094 into apache:camel-4.18.x May 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants