You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/07/22 06:53:50 UTC

[PR] [backport camel-4.18.x] CAMEL-24231: camel-file - Fix pollEnrich with dynamic fileName using exchange properties [camel]

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

   ## Backport of #24994
   
   Cherry-pick of #24994 onto `camel-4.18.x`.
   
   **Original PR:** #24994 - CAMEL-24231: camel-file - Fix pollEnrich with dynamic fileName using exchange properties
   **Original author:** @davsclaus
   **Target branch:** `camel-4.18.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 <no...@anthropic.com>


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [backport camel-4.18.x] CAMEL-24231: camel-file - Fix pollEnrich with dynamic fileName using exchange properties [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24999:
URL: https://github.com/apache/camel/pull/24999


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org