davsclaus opened a new pull request, #30397:
URL: https://github.com/apache/camel/pull/30397

   ## Backport of #30389
   
   Backport of #30389 (CAMEL-27160: Dynamic endpoint option values computed 
from the message are bound as literal text) onto `camel-4.22.x`, for 4.22.3.
   
   JIRA: [CAMEL-27160](https://issues.apache.org/jira/browse/CAMEL-27160)
   
   **Original PR:** #30389 (squash commit 13c0615acc06), which completes #30340 
by @oscerd
   **Original authors:** @oscerd, @davsclaus
   **Target branch:** `camel-4.22.x`
   
   ### Straight or adapted
   
   Adapted: a cherry-pick (`-x`) of 13c0615acc06, with these changes for 
`camel-4.22.x`:
   
   - **Clean merges:** `AbstractCamelContext`, `DefaultCamelContextExtension`, 
`SendDynamicProcessor`, `ProcessorHelper`, `NormalizedUri`, 
`PropertyBindingSupport`, `EndpointHelper`, `DefaultRegistry`, 
`RawParameterHelper`, `SendDynamicAwareSupport`, `PollDynamicAwareSupport`, 
`endpoint.adoc` and the new tests.
   - **`PollEnricher`:** on this branch, `prepareRecipient` delegated to 
`ProcessorHelper.prepareRecipient`, which resolves `{{...}}` on the whole 
evaluated uri (this branch does not have CAMEL-24414).
     - It now uses the same code as `main`: 
`NormalizedUri.newNormalizedUri(uri, false, true)`, without resolving 
placeholders at runtime.
     - Placeholders in the `pollEnrich` expression of the route are resolved 
when the route is built, so they keep working.
   - **`DynamicEndpointMessagePlaceholderTest`:**
     - `pollEnrichPlaceholderInHeaderStillResolved` becomes 
`pollEnrichPlaceholderInHeaderNotResolved`, as on `main`.
     - New `pollEnrichPlaceholderInRouteTextIsResolved`.
   - **Upgrade guide:** left out of this PR. The 4.22.3 note goes into 
`camel-4x-upgrade-guide-4_22.adoc` on `main`, in a separate doc PR.
   - **The optimised `PollDynamicAware` path** (file and ftp family) is fixed 
on `main` in #30396. Its backport follows once that is merged.
   
   ### Tests
   - New and changed tests pass: `DynamicEndpointMessageOptionLiteralTest` 
(14), `DynamicEndpointMessageOptionLiteralLogTest` (9), 
`DynamicEndpointMessageRawOptionTest` (9), 
`DynamicEndpointMessagePlaceholderTest` (8) and `RawParameterHelperTest`.
   - Wider runs:
     - the camel-core dynamic, binding, enrich, recipient, placeholder and 
registry sets (664);
     - camel-support (56);
     - camel-http `*SendDynamicAware*` (12);
     - the full camel-core suite (7583), with camel-core's component 
dependencies built for this branch.
   - Without the change: 21 failures and 3 errors out of the 40 new tests, and 
the camel-http test fails.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to