This is an automated email from the ASF dual-hosted git repository. Croway pushed a commit to branch camel-4.18.6-recipes in repository https://gitbox.apache.org/repos/asf/camel-upgrade-recipes.git
commit 5b4f3e6fb7f847530b015d4610d0d9aafc98c3c8 Author: croway <[email protected]> AuthorDate: Mon Nov 30 11:19:45 2026 +0100 Run the pubnub override channel recipe for 4.18.6 CAMEL-25888 shipped in 4.18.6 as well as in 4.22.3 and 4.24.0 (PubNubConstants.OVERRIDE_CHANNEL is in the code at the camel-4.18.6 tag), but its recipe lived in camel422_3, which the 4.18 LTS aggregates do not chain. Following RECIPE-CONVENTIONS.md, move RenameHeaderWhenSet and upgradePubNubOverrideChannel into camel418_6 and have camel422_3 reference them, as it already does for the openstack Swift recipe. The pubnub tests move to CamelUpdate418_6Test; CamelUpdate422_3Test keeps one test per referenced recipe. 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 tag, which is how the pubnub change was missed. The yaml headers and the release notes now say the recipes are triaged from main and checked against the code at the tag. --- .../RenameHeaderWhenSet.java | 2 +- .../main/resources/META-INF/rewrite/4.18.6.yaml | 34 +++- .../main/resources/META-INF/rewrite/4.22.3.yaml | 35 +--- .../apache/camel/upgrade/CamelUpdate418_6Test.java | 193 ++++++++++++++++++++- .../apache/camel/upgrade/CamelUpdate422_3Test.java | 167 +----------------- release_notes.adoc | 10 +- 6 files changed, 241 insertions(+), 200 deletions(-) diff --git a/camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel422_3/RenameHeaderWhenSet.java b/camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel418_6/RenameHeaderWhenSet.java similarity index 99% rename from camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel422_3/RenameHeaderWhenSet.java rename to camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel418_6/RenameHeaderWhenSet.java index 664aa47..6294a17 100644 --- a/camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel422_3/RenameHeaderWhenSet.java +++ b/camel-upgrade-recipes/src/main/java/org/apache/camel/upgrade/camel418_6/RenameHeaderWhenSet.java @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package org.apache.camel.upgrade.camel422_3; +package org.apache.camel.upgrade.camel418_6; import java.util.Arrays; import java.util.List; diff --git a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.6.yaml b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.6.yaml index c154e76..9d324fa 100644 --- a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.6.yaml +++ b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.18.6.yaml @@ -17,10 +17,14 @@ ##### # Rules coming from https://camel.apache.org/manual/camel-4x-upgrade-guide-4_18.html -# Specifically changes introduced in 4.18.6 (upgrading from 4.18.5 to 4.18.6), checked against the camel-4.18.6 tag. +# Specifically changes introduced in 4.18.6 (upgrading from 4.18.5 to 4.18.6). # -# The openstack Swift header rename also ships in Camel 4.22.3 and 4.24.0 (not in 4.23.0), so per -# RECIPE-CONVENTIONS.md the recipe lives here and the camel422_3 chain references it. +# The backports keep their upgrade guide notes on camel main: the 4.18.6 section of the guide at the camel-4.18.6 +# tag has 18 items, the one on main 88. The recipes are triaged from the section on main, and each change they +# migrate was confirmed in the code at the camel-4.18.6 tag. +# +# The openstack Swift header rename and the pubnub override channel also ship in Camel 4.22.3 and 4.24.0 (not in +# 4.23.0), so per RECIPE-CONVENTIONS.md the recipes live here and the camel422_3 chain references them. ##### ##### @@ -33,6 +37,7 @@ displayName: Migrates `camel 4.18.5` application to `camel 4.18.6` description: Migrates `camel 4.18.5` application to `camel 4.18.6`. recipeList: - org.apache.camel.upgrade.camel418_6.upgradeOpenstackSwiftHeaders + - org.apache.camel.upgrade.camel418_6.upgradePubNubOverrideChannel --- ## https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc#camel-openstack---the-remaining-swift-header-constants-follow-the-camel-naming-convention type: specs.openrewrite.org/v1beta/recipe @@ -65,3 +70,26 @@ recipeList: - org.openrewrite.java.ChangeMethodName: methodPattern: org.apache.camel.builder.endpoint.dsl.SwiftEndpointBuilderFactory.SwiftHeaderNameBuilder xContainerWrite() newMethodName: openstackSwiftContainerWrite +--- +## https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc#camel-pubnub---the-producer-uses-its-configured-channel +type: specs.openrewrite.org/v1beta/recipe +name: org.apache.camel.upgrade.camel418_6.upgradePubNubOverrideChannel +displayName: Migrate a set CamelPubNubChannel header to CamelPubNubOverrideChannel +description: >- + CAMEL-25888 (4.18.6, 4.22.3 and 4.24.0): the pubnub producer no longer reads CamelPubNubChannel, which the + consumer sets to the channel a message came from; a route picks another channel with CamelPubNubOverrideChannel. + Renames the header only where a route sets it (literal, PubNubConstants.CHANNEL, Endpoint DSL pubNubChannel()); + reads of the consumer header are left alone. +preconditions: + - org.openrewrite.java.dependencies.search.ModuleHasDependency: + groupIdPattern: org.apache.camel + artifactIdPattern: camel-pubnub +recipeList: + - org.apache.camel.upgrade.camel418_6.RenameHeaderWhenSet: + oldHeaderName: CamelPubNubChannel + newHeaderName: CamelPubNubOverrideChannel + constantClass: org.apache.camel.component.pubnub.PubNubConstants + oldConstantName: CHANNEL + newConstantName: OVERRIDE_CHANNEL + oldHeaderNameBuilderMethod: org.apache.camel.builder.endpoint.dsl.PubNubEndpointBuilderFactory.PubNubHeaderNameBuilder pubNubChannel() + newHeaderNameBuilderMethod: pubNubOverrideChannel diff --git a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22.3.yaml b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22.3.yaml index 7916073..4028833 100644 --- a/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22.3.yaml +++ b/camel-upgrade-recipes/src/main/resources/META-INF/rewrite/4.22.3.yaml @@ -17,8 +17,11 @@ ##### # Rules coming from https://camel.apache.org/manual/camel-4x-upgrade-guide-4_22.html -# Specifically changes introduced in 4.22.3 (upgrading from 4.22.2 to 4.22.3), -# checked against the camel-4.22.3 tag (the guide on main lists more items than the tag ships). +# Specifically changes introduced in 4.22.3 (upgrading from 4.22.2 to 4.22.3). +# +# The backports keep their upgrade guide notes on camel main, not on the camel-4.22.3 tag. The recipes are triaged +# from the 4.22.3 section on main, and each change they migrate was confirmed in the code at the camel-4.22.3 tag +# (not every item of that section is in 4.22.3, for example the Undertow EE servlet change). # # Referenced from org.apache.camel.upgrade.Camel422LTSMigrationRecipe (4.22LTS.yaml) and from the 4.24 # migration recipe (Camel 4.23.0 does not have these changes), per RECIPE-CONVENTIONS.md. @@ -33,30 +36,6 @@ name: org.apache.camel.upgrade.camel422_3.CamelMigrationRecipe displayName: Migrates `camel 4.22.2` application to `camel 4.22.3` description: Migrates `camel 4.22.2` application to `camel 4.22.3`. recipeList: - ## inherited from patch recipe: the openstack Swift header rename also ships in 4.18.6 + ## inherited from patch recipes: these changes also ship in 4.18.6 - org.apache.camel.upgrade.camel418_6.upgradeOpenstackSwiftHeaders - ## defined here - - org.apache.camel.upgrade.camel422_3.upgradePubNubOverrideChannel ---- -## https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc#camel-pubnub---the-producer-uses-its-configured-channel -type: specs.openrewrite.org/v1beta/recipe -name: org.apache.camel.upgrade.camel422_3.upgradePubNubOverrideChannel -displayName: Migrate a set CamelPubNubChannel header to CamelPubNubOverrideChannel -description: >- - CAMEL-25888: the pubnub producer no longer reads CamelPubNubChannel, which the consumer sets to the channel a - message came from; a route picks another channel with CamelPubNubOverrideChannel. Renames the header only where a - route sets it (literal, PubNubConstants.CHANNEL, Endpoint DSL pubNubChannel()); reads of the consumer header are - left alone. -preconditions: - - org.openrewrite.java.dependencies.search.ModuleHasDependency: - groupIdPattern: org.apache.camel - artifactIdPattern: camel-pubnub -recipeList: - - org.apache.camel.upgrade.camel422_3.RenameHeaderWhenSet: - oldHeaderName: CamelPubNubChannel - newHeaderName: CamelPubNubOverrideChannel - constantClass: org.apache.camel.component.pubnub.PubNubConstants - oldConstantName: CHANNEL - newConstantName: OVERRIDE_CHANNEL - oldHeaderNameBuilderMethod: org.apache.camel.builder.endpoint.dsl.PubNubEndpointBuilderFactory.PubNubHeaderNameBuilder pubNubChannel() - newHeaderNameBuilderMethod: pubNubOverrideChannel + - org.apache.camel.upgrade.camel418_6.upgradePubNubOverrideChannel diff --git a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418_6Test.java b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418_6Test.java index 1c9954e..1d745ce 100644 --- a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418_6Test.java +++ b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate418_6Test.java @@ -28,16 +28,16 @@ import static org.openrewrite.xml.Assertions.xml; import static org.openrewrite.yaml.Assertions.yaml; /** - * Tests for migrating from Camel 4.18.5 to 4.18.6: the remaining camel-openstack Swift header names (CAMEL-25895), - * which also ship in 4.22.3 and 4.24.0. The Swift Endpoint DSL header builders are the same in 4.18.5 and 4.22, so - * the 4.22 jars are on the parser classpath. + * Tests for migrating from Camel 4.18.5 to 4.18.6: the remaining camel-openstack Swift header names (CAMEL-25895) and + * the pubnub override channel (CAMEL-25888), which also ship in 4.22.3 and 4.24.0. The Swift Endpoint DSL header + * builders and PubNubConstants.CHANNEL are the same in 4.18.5 and 4.22, so the 4.22 jars are on the parser classpath. */ public class CamelUpdate418_6Test implements RewriteTest { @Override public void defaults(RecipeSpec spec) { CamelTestUtil.recipe(spec, CamelTestUtil.CamelVersion.v4_18_6) - .parser(CamelTestUtil.parserFromClasspath(CamelTestUtil.CamelVersion.v4_22, "camel-api", "camel-core-model", "camel-support", "camel-endpointdsl")) + .parser(CamelTestUtil.parserFromClasspath(CamelTestUtil.CamelVersion.v4_22, "camel-api", "camel-core-model", "camel-support", "camel-endpointdsl", "camel-pubnub")) .typeValidationOptions(TypeValidation.none()); } @@ -295,4 +295,189 @@ public class CamelUpdate418_6Test implements RewriteTest { ) ); } + + @Test + void pubNubOverrideChannelJava() { + rewriteRun( + mavenProject("test-pubnub", + CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_18_5), + //language=java + java( + """ + import org.apache.camel.builder.RouteBuilder; + import org.apache.camel.component.pubnub.PubNubConstants; + + public class PubNubRoute extends RouteBuilder { + @Override + public void configure() { + from("pubnub:in") + .log("received on ${header.CamelPubNubChannel}") + .filter(header("CamelPubNubChannel").isEqualTo("in")) + .setHeader("CamelPubNubChannel", constant("out")) + .setHeader(PubNubConstants.CHANNEL, constant("out")) + .process(exchange -> { + String from = exchange.getIn().getHeader("CamelPubNubChannel", String.class); + exchange.getIn().setHeader("CamelPubNubChannel", from + "-copy"); + }) + .to("pubnub:out"); + } + } + """, + """ + import org.apache.camel.builder.RouteBuilder; + import org.apache.camel.component.pubnub.PubNubConstants; + + public class PubNubRoute extends RouteBuilder { + @Override + public void configure() { + from("pubnub:in") + .log("received on ${header.CamelPubNubChannel}") + .filter(header("CamelPubNubChannel").isEqualTo("in")) + .setHeader("CamelPubNubOverrideChannel", constant("out")) + .setHeader(PubNubConstants.OVERRIDE_CHANNEL, constant("out")) + .process(exchange -> { + String from = exchange.getIn().getHeader("CamelPubNubChannel", String.class); + exchange.getIn().setHeader("CamelPubNubOverrideChannel", from + "-copy"); + }) + .to("pubnub:out"); + } + } + """ + ), + //language=java + java( + """ + import org.apache.camel.builder.endpoint.EndpointRouteBuilder; + + public class PubNubDslRoute extends EndpointRouteBuilder { + @Override + public void configure() { + from(pubnub("in")) + .setHeader(pubnub().pubNubChannel(), constant("out")) + .to(pubnub("out")); + } + } + """, + """ + import org.apache.camel.builder.endpoint.EndpointRouteBuilder; + + public class PubNubDslRoute extends EndpointRouteBuilder { + @Override + public void configure() { + from(pubnub("in")) + .setHeader(pubnub().pubNubOverrideChannel(), constant("out")) + .to(pubnub("out")); + } + } + """ + ) + ) + ); + } + + @Test + void pubNubOverrideChannelXmlAndYaml() { + rewriteRun( + mavenProject("test-pubnub-dsl", + CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_18_5), + //language=xml + xml( + """ + <route xmlns="http://camel.apache.org/schema/spring"> + <from uri="pubnub:in"/> + <log message="received on ${header.CamelPubNubChannel}"/> + <setHeader name="CamelPubNubChannel"> + <constant>out</constant> + </setHeader> + <to uri="pubnub:out"/> + </route> + """, + """ + <route xmlns="http://camel.apache.org/schema/spring"> + <from uri="pubnub:in"/> + <log message="received on ${header.CamelPubNubChannel}"/> + <setHeader name="CamelPubNubOverrideChannel"> + <constant>out</constant> + </setHeader> + <to uri="pubnub:out"/> + </route> + """ + ), + //language=yaml + yaml( + """ + - route: + from: + uri: "pubnub:in" + steps: + - removeHeader: + name: CamelPubNubChannel + - setHeader: + name: CamelPubNubChannel + simple: "${header.CamelPubNubChannel}-copy" + - to: + uri: "pubnub:out" + """, + """ + - route: + from: + uri: "pubnub:in" + steps: + - removeHeader: + name: CamelPubNubChannel + - setHeader: + name: CamelPubNubOverrideChannel + simple: "${header.CamelPubNubChannel}-copy" + - to: + uri: "pubnub:out" + """ + ) + ) + ); + } + + @Test + void pubNubOverrideChannelIsIdempotent() { + rewriteRun( + spec -> spec.expectedCyclesThatMakeChanges(CamelTestUtil.isRecipeOverridden() ? 1 : 0), + mavenProject("test-pubnub-idempotent", + CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_18_5), + //language=xml + xml( + """ + <route xmlns="http://camel.apache.org/schema/spring"> + <from uri="direct:in"/> + <setHeader name="CamelPubNubOverrideChannel"> + <constant>out</constant> + </setHeader> + <to uri="pubnub:out"/> + </route> + """ + ) + ) + ); + } + + @Test + void pubNubWithoutDependencyIsUntouched() { + rewriteRun( + spec -> spec.expectedCyclesThatMakeChanges(CamelTestUtil.isRecipeOverridden() ? 1 : 0), + mavenProject("test-no-pubnub", + CamelTestUtil.pomXmlSpec("camel-core", CamelTestUtil.CamelVersion.v4_18_5), + //language=java + java( + """ + import org.apache.camel.builder.RouteBuilder; + + public class OtherRoute extends RouteBuilder { + @Override + public void configure() { + from("direct:in").setHeader("CamelPubNubChannel", constant("out")).to("mock:out"); + } + } + """ + ) + ) + ); + } } diff --git a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_3Test.java b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_3Test.java index ad4530b..aca0c4c 100644 --- a/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_3Test.java +++ b/camel-upgrade-recipes/src/test/java/org/apache/camel/upgrade/CamelUpdate422_3Test.java @@ -24,12 +24,10 @@ import org.openrewrite.test.TypeValidation; import static org.openrewrite.java.Assertions.java; import static org.openrewrite.java.Assertions.mavenProject; -import static org.openrewrite.xml.Assertions.xml; -import static org.openrewrite.yaml.Assertions.yaml; /** - * Tests for migrating from Camel 4.22.2 to 4.22.3: the pubnub override channel header (CAMEL-25888), and the chain - * reference to the 4.18.6 openstack Swift header rename (CAMEL-25895), which {@link CamelUpdate418_6Test} covers. + * Tests for migrating from Camel 4.22.2 to 4.22.3: the chain references to the 4.18.6 openstack Swift header rename + * (CAMEL-25895) and pubnub override channel (CAMEL-25888) recipes, which {@link CamelUpdate418_6Test} covers. */ public class CamelUpdate422_3Test implements RewriteTest { @@ -74,182 +72,29 @@ public class CamelUpdate422_3Test implements RewriteTest { } @Test - void pubNubOverrideChannelJava() { + void camel422_3ChainIncludesCamel418_6PubNubRecipe() { + //language=java rewriteRun( mavenProject("test-pubnub", CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_22_2), - //language=java java( """ import org.apache.camel.builder.RouteBuilder; - import org.apache.camel.component.pubnub.PubNubConstants; public class PubNubRoute extends RouteBuilder { @Override public void configure() { - from("pubnub:in") - .log("received on ${header.CamelPubNubChannel}") - .filter(header("CamelPubNubChannel").isEqualTo("in")) - .setHeader("CamelPubNubChannel", constant("out")) - .setHeader(PubNubConstants.CHANNEL, constant("out")) - .process(exchange -> { - String from = exchange.getIn().getHeader("CamelPubNubChannel", String.class); - exchange.getIn().setHeader("CamelPubNubChannel", from + "-copy"); - }) - .to("pubnub:out"); + from("pubnub:in").setHeader("CamelPubNubChannel", constant("out")).to("pubnub:out"); } } """, """ import org.apache.camel.builder.RouteBuilder; - import org.apache.camel.component.pubnub.PubNubConstants; public class PubNubRoute extends RouteBuilder { @Override public void configure() { - from("pubnub:in") - .log("received on ${header.CamelPubNubChannel}") - .filter(header("CamelPubNubChannel").isEqualTo("in")) - .setHeader("CamelPubNubOverrideChannel", constant("out")) - .setHeader(PubNubConstants.OVERRIDE_CHANNEL, constant("out")) - .process(exchange -> { - String from = exchange.getIn().getHeader("CamelPubNubChannel", String.class); - exchange.getIn().setHeader("CamelPubNubOverrideChannel", from + "-copy"); - }) - .to("pubnub:out"); - } - } - """ - ), - //language=java - java( - """ - import org.apache.camel.builder.endpoint.EndpointRouteBuilder; - - public class PubNubDslRoute extends EndpointRouteBuilder { - @Override - public void configure() { - from(pubnub("in")) - .setHeader(pubnub().pubNubChannel(), constant("out")) - .to(pubnub("out")); - } - } - """, - """ - import org.apache.camel.builder.endpoint.EndpointRouteBuilder; - - public class PubNubDslRoute extends EndpointRouteBuilder { - @Override - public void configure() { - from(pubnub("in")) - .setHeader(pubnub().pubNubOverrideChannel(), constant("out")) - .to(pubnub("out")); - } - } - """ - ) - ) - ); - } - - @Test - void pubNubOverrideChannelXmlAndYaml() { - rewriteRun( - mavenProject("test-pubnub-dsl", - CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_22_2), - //language=xml - xml( - """ - <route xmlns="http://camel.apache.org/schema/spring"> - <from uri="pubnub:in"/> - <log message="received on ${header.CamelPubNubChannel}"/> - <setHeader name="CamelPubNubChannel"> - <constant>out</constant> - </setHeader> - <to uri="pubnub:out"/> - </route> - """, - """ - <route xmlns="http://camel.apache.org/schema/spring"> - <from uri="pubnub:in"/> - <log message="received on ${header.CamelPubNubChannel}"/> - <setHeader name="CamelPubNubOverrideChannel"> - <constant>out</constant> - </setHeader> - <to uri="pubnub:out"/> - </route> - """ - ), - //language=yaml - yaml( - """ - - route: - from: - uri: "pubnub:in" - steps: - - removeHeader: - name: CamelPubNubChannel - - setHeader: - name: CamelPubNubChannel - simple: "${header.CamelPubNubChannel}-copy" - - to: - uri: "pubnub:out" - """, - """ - - route: - from: - uri: "pubnub:in" - steps: - - removeHeader: - name: CamelPubNubChannel - - setHeader: - name: CamelPubNubOverrideChannel - simple: "${header.CamelPubNubChannel}-copy" - - to: - uri: "pubnub:out" - """ - ) - ) - ); - } - - @Test - void pubNubOverrideChannelIsIdempotent() { - rewriteRun( - spec -> spec.expectedCyclesThatMakeChanges(CamelTestUtil.isRecipeOverridden() ? 1 : 0), - mavenProject("test-pubnub-idempotent", - CamelTestUtil.pomXmlSpec("camel-pubnub", CamelTestUtil.CamelVersion.v4_22_2), - //language=xml - xml( - """ - <route xmlns="http://camel.apache.org/schema/spring"> - <from uri="direct:in"/> - <setHeader name="CamelPubNubOverrideChannel"> - <constant>out</constant> - </setHeader> - <to uri="pubnub:out"/> - </route> - """ - ) - ) - ); - } - - @Test - void pubNubWithoutDependencyIsUntouched() { - rewriteRun( - spec -> spec.expectedCyclesThatMakeChanges(CamelTestUtil.isRecipeOverridden() ? 1 : 0), - mavenProject("test-no-pubnub", - CamelTestUtil.pomXmlSpec("camel-core", CamelTestUtil.CamelVersion.v4_22_2), - //language=java - java( - """ - import org.apache.camel.builder.RouteBuilder; - - public class OtherRoute extends RouteBuilder { - @Override - public void configure() { - from("direct:in").setHeader("CamelPubNubChannel", constant("out")).to("mock:out"); + from("pubnub:in").setHeader("CamelPubNubOverrideChannel", constant("out")).to("pubnub:out"); } } """ diff --git a/release_notes.adoc b/release_notes.adoc index 2e083d8..7fe40f7 100644 --- a/release_notes.adoc +++ b/release_notes.adoc @@ -199,7 +199,7 @@ NOTE: At the time these recipes were written, Camel 4.23.0 had not yet been rele === Summary -Patch recipes for Camel 4.22.3 (`camel422_3.CamelMigrationRecipe`), chained by the 4.22 LTS aggregates and by `camel424.CamelMigrationRecipe` (Camel 4.23.0 does not have these changes). Checked against the `camel-4.22.3` tag; the 4.22 guide on `main` lists more 4.22.3 items than the tag ships (for example the Undertow EE servlet change is not in 4.22.3). +Patch recipes for Camel 4.22.3 (`camel422_3.CamelMigrationRecipe`), chained by the 4.22 LTS aggregates and by `camel424.CamelMigrationRecipe` (Camel 4.23.0 does not have these changes). Both changes also ship in 4.18.6, so their recipes live in `camel418_6` and the 4.22.3 chain references them. The backports keep their upgrade guide notes on `main`, so the recipes are triaged from the 4.22.3 section on `main` and checked against the code at the `camel-4.22.3` tag: not every item of that [...] === Migration coverage @@ -213,7 +213,7 @@ Patch recipes for Camel 4.22.3 (`camel422_3.CamelMigrationRecipe`), chained by t | https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc#camel-pubnub---the-producer-uses-its-configured-channel[camel-pubnub: `CamelPubNubOverrideChannel`] | ⚠️ Partial -| `camel422_3.upgradePubNubOverrideChannel`: `CamelPubNubChannel` -> `CamelPubNubOverrideChannel` only where a route sets it (`setHeader` in Java, XML and YAML, `Message.setHeader`, `PubNubConstants.CHANNEL`, Endpoint DSL `pubNubChannel()`), with the new generic `camel422_3.RenameHeaderWhenSet`; reads of the consumer header stay. Gated on `camel-pubnub`. A statically imported `CHANNEL` needs a manual fix. +| Inherited from the 4.18.6 patch recipe `camel418_6.upgradePubNubOverrideChannel`; see <<4.18.6>>. | https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc#upgrading-from-4222-to-4223[Other 4.22.3 changes] | ❌ None @@ -226,7 +226,7 @@ NOTE: Camel 4.23.0 does not have the openstack change: an upgrade from 4.22.3 to === Summary -Patch recipes for Camel 4.18.6 (`camel418_6.CamelMigrationRecipe`), checked against the `camel-4.18.6` tag. Chained by both 4.18 LTS aggregates, which now target 4.18.6 (`camel4.18-lts-version`; Spring Boot stays on 3.5.16), and referenced from `camel422_3.CamelMigrationRecipe`. +Patch recipes for Camel 4.18.6 (`camel418_6.CamelMigrationRecipe`). The backports keep their upgrade guide notes on `main` (88 items in the 4.18.6 section, against 18 at the `camel-4.18.6` tag), so the recipes are triaged from `main` and checked against the code at the `camel-4.18.6` tag. Chained by both 4.18 LTS aggregates, which now target 4.18.6 (`camel4.18-lts-version`; Spring Boot stays on 3.5.16), and referenced from `camel422_3.CamelMigrationRecipe`. === Migration coverage @@ -237,6 +237,10 @@ Patch recipes for Camel 4.18.6 (`camel418_6.CamelMigrationRecipe`), checked agai | https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc#camel-openstack---the-remaining-swift-header-constants-follow-the-camel-naming-convention[camel-openstack: remaining Swift header names (CAMEL-25895)] | ✅ Full | `camel418_6.upgradeOpenstackSwiftHeaders`: `X-Container-Meta-`, `X-Versions-Location`, `X-Container-Read`, `X-Container-Write` -> `CamelOpenstackSwift*` (`RenameHeaders`, also in Simple) and the Endpoint DSL `xContainer*()`/`xVersionsLocation()` -> `openstackSwift*()` (`ChangeMethodName`), gated on `camel-openstack`. + +| https://github.com/apache/camel/blob/main/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_18.adoc#camel-pubnub---the-producer-uses-its-configured-channel[camel-pubnub: `CamelPubNubOverrideChannel` (CAMEL-25888)] +| ⚠️ Partial +| `camel418_6.upgradePubNubOverrideChannel`: `CamelPubNubChannel` -> `CamelPubNubOverrideChannel` only where a route sets it (`setHeader` in Java, XML and YAML, `Message.setHeader`, `PubNubConstants.CHANNEL`, Endpoint DSL `pubNubChannel()`), with the new generic `camel418_6.RenameHeaderWhenSet`; reads of the consumer header stay. Gated on `camel-pubnub`. A statically imported `CHANNEL` needs a manual fix. |=== NOTE: At the time of writing Camel 4.18.6 was not on Maven Central yet; the tests that resolve 4.18.6 artifacts were run against the staging repositories of the vote (`orgapachecamel-2094`, `orgapachecamel-2095`).
