davsclaus opened a new pull request, #25000:
URL: https://github.com/apache/camel/pull/25000
## Backport of #24994
Cherry-pick of #24994 onto `camel-4.14.x`.
**Original PR:** #24994 - CAMEL-24231: camel-file - Fix pollEnrich with
dynamic fileName using exchange properties
**Original author:** @davsclaus
**Target branch:** `camel-4.14.x`
### Original description
`GenericFileHelper.createDummy()` copies headers and variables from the
incoming exchange but missed exchange properties. When pollEnrich uses
`fileName=${exchangeProperty.xxx}`, the expression evaluates to null on the
dummy exchange, bypassing the filename filter. Also fixes variables copy that
was incorrectly nested inside the `hasHeaders()` guard.
Reported by Marcus Ionker on the Camel users mailing list.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
--
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]