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

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   Follow-up to #24994. Fixes the `useList=false` code path in FTP and SFTP 
consumers where `pollNamedFile()` used `ExchangeHelper.getDummy()` — a 
completely empty exchange with no headers, properties, or variables — making 
dynamic `fileName` expressions (e.g. `${exchangeProperty.myFile}`) evaluate to 
`null`.
   
   **Changes:**
   - Add a new `GenericFileHelper.createDummy(endpoint, dynamic)` overload 
(without file supplier) for the `pollNamedFile` use case where no file exists 
yet
   - Extract shared enrichment logic into `enrichFromDynamic()` to avoid 
duplication
   - Thread `dynamic` exchange through `getFtpFiles()` → `pollNamedFile()` in 
`FtpConsumer`
   - Thread `dynamic` exchange through `getSftpRemoteFiles()` → 
`pollNamedFile()` in `AbstractSftpConsumer`
   
   All modified methods are private, so no API impact.
   
   Reported by Marcus Ionker on the Camel users mailing list.
   
   ## Test plan
   - [ ] All existing FTP/SFTP tests pass (no FTP server needed for compilation 
check)
   - [ ] Verified compilation of camel-file, camel-ftp-common, camel-ftp, and 
camel-mina-sftp modules
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   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]

Reply via email to