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

   [CAMEL-27160](https://issues.apache.org/jira/browse/CAMEL-27160), follow-up 
to #30389.
   
   `PollEnricher#resolveUri` no longer resolves property placeholders 
(`{{...}}`) in the uri evaluated per message, as 
`SendDynamicProcessor#resolveUri` already does since CAMEL-24282. The path that 
#30389 made literal (`ProcessorHelper.prepareRecipient`) is used when no 
`PollDynamicAware` applies. But a component with a `PollDynamicAware` goes 
through `resolveUri` first, and that still resolved a `{{...}}` from the 
message. These components are `file` and the ftp family, and it is their 
default optimised path.
   
   Placeholders written in the `pollEnrich` expression of the route are 
resolved when the route is built, so they keep working.
   
   ## Tests
   New tests in `DynamicEndpointMessagePlaceholderTest`:
   - `pollEnrich` with a `file:` uri and a `{{...}}` header: the file endpoint 
does not have the resolved value. This fails without the change.
   - A `{{...}}` in the route text of the same `pollEnrich` is still resolved.
   
   camel-core `*Enrich*`, `*File*`, `*Placeholder*`, `*Dynamic*` and `*Poll*` 
tests pass (1030).
   
   _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