Croway opened a new pull request, #146:
URL: https://github.com/apache/camel-upgrade-recipes/pull/146
Camel 4.24.0, 4.22.3 and 4.18.6 upgrade recipes, in one PR as agreed with
Jiří. The first two commits are those of #145, unchanged and with his
authorship. The next four add the 4.18.6 work of #144 on top. Each commit
stands on its own.
Closes #142, closes #143, closes #144.
### From #145 (Jiří Ondrušek)
- **Add Camel 4.18.6 and 4.22.3 patch recipes (CAMEL-25895, CAMEL-25888).**
- `4.18.6.yaml` with the openstack Swift header rename, and `4.22.3.yaml`
referencing it.
- The 4.18 and 4.22 LTS aggregates (core and Spring Boot) chain the new
patches and target 4.18.6 and 4.22.3.
- #142's follow-ups: `Lts422ChainTest`, and
`CamelSpringBoot422LtsVersionTest` reading `camel4.22-lts-version`.
- **Add Camel 4.24.0 upgrade recipes.**
- `4.24.yaml` in both modules, chained by `latest.yaml`.
- Java 21 (`UpgradeToJava21` / `JavaVersion21`) in the latest aggregates
only.
- `camel424` chains `camel422_3`, because the 4.22.3 changes are not in
4.23.0.
- The recipes for the 4.24 guide are listed in `== 4.24.0` of the release
notes: Undertow EE servlet, Bouncy Castle 1.87 LMS/XMSS, removed components,
rocketmq headers, toon `lengthMarker`, and others.
### 4.18.6 (#144)
The 4.18.x and 4.22.x backports keep their upgrade-guide notes on camel
`main`: the 4.18.6 section has 88 items there and 18 at the `camel-4.18.6` tag.
So these recipes are triaged from `main`, and each change is confirmed in the
code at the `camel-4.18.6`, `camel-4.22.3` and `camel-4.24.0` tags. Following
`RECIPE-CONVENTIONS.md`, a change that also ships in a later version lives in
the earliest patch namespace, and the later versions reference it.
1. **Run the pubnub override channel recipe for 4.18.6.** CAMEL-25888 is in
4.18.6 too, but the recipe lived in `camel422_3`, which the 4.18 LTS aggregates
do not chain. `RenameHeaderWhenSet` and `upgradePubNubOverrideChannel` move to
`camel418_6`, and `camel422_3` references them.
2. **Migrate the Bouncy Castle 1.85 parameter specs of camel-pqc in
4.18.6.** camel-pqc 4.18.6 still uses the BCPQC CMCE and Frodo classes. So the
shared Kyber, Dilithium and SPHINCS+ part moves to
`camel418_6.migratePqcParameterSpecs`, and it now also maps the parameter-set
constants (`kyber768` -> `ml_kem_768`, ...).
`camel422_2.migratePqcParameterSpecs` keeps its name, references it, and keeps
CMCE and Frodo.
3. **Migrate the camel-cxf `operationName` and `operationNamespace`
headers.** The rename to `CamelCxfOperationName` / `CamelCxfOperationNamespace`
shipped in 4.18.3 and 4.21.0 without a recipe, and since 4.18.6 the former
names are also filtered out. The new `camel418_3.upgradeCxfHeaders` is
referenced from `camel421`. The names are generic, so the new
`RenameHeadersInUnmigratedFiles` renames them only in files that mention a cxf
endpoint and do not look migrated already: the 4.18 LTS aggregate re-runs
`camel418_3` on every upgrade.
4. **Flag the 4.18.6 changes that cannot be rewritten safely.** These add
review comments, keyed by JIRA:
- jaxb `allowPartClassFromHeader` (CAMEL-27052)
- smpp `allowSystemIdAndPasswordFromHeaders` (CAMEL-27227)
- `RedisAggregationRepository` storage (CAMEL-27225)
- `NettyPayloadHelper.setIn/setOut` without an endpoint (CAMEL-26587)
- `#class:` / `#property:` / `RAW($simple{...})` in dynamic endpoint uris
(CAMEL-27160)
- whatsapp webhooks without `webhookSecret` (CAMEL-26281)
All six are in 4.18.6, 4.22.3 and 4.24.0, and none is in 4.22.2 or
4.23.0. They live in `camel418_6`, `camel422_3` references them, and `camel424`
gets them through `camel422_3`. They are built on three generic recipes for the
Java, XML and YAML DSLs: `FlagHeaderWhenSet`, `FlagTypeOrMethodUse` and
`FlagEndpointUri`.
### Testing
- `CamelUpdate418_3Test`, `CamelUpdate418_6Test`, `CamelUpdate421Test`,
`CamelUpdate422_2Test`, `CamelUpdate422_3Test`, `CamelUpdate418LtsTestSuite`
and `CamelUpdate422LtsTestSuite` pass: 522 tests, 0 failures.
- Draft until Camel 4.24.0 is on Maven Central. The vote is still open, so
the tests that resolve 4.24.0 cannot pass yet: `CamelUpdateLatestTestSuite`,
and for example
`CamelUpdate423Test.fullChainMigratesLangchain4jToolsUriBeforeRemovingDependency`.
- Codex reviewed the four 4.18.6 commits independently, and its findings are
fixed. The remaining limits are documented in `FlagEndpointUri`: YAML flow
mappings are parsed as one scalar, an entry on the first line of a file has no
line to put the comment on, and XML EIPs are matched by local name.
_Claude Code on behalf of Federico Mariani_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]