Skip to content

[backport camel-4.18.x] CAMEL-24231: camel-ftp - Fix pollNamedFile to use dynamic exchange for useList=false - #25038

Merged
davsclaus merged 1 commit into
camel-4.18.xfrom
backport/25031-to-camel-4.18.x
Jul 23, 2026
Merged

[backport camel-4.18.x] CAMEL-24231: camel-ftp - Fix pollNamedFile to use dynamic exchange for useList=false#25038
davsclaus merged 1 commit into
camel-4.18.xfrom
backport/25031-to-camel-4.18.x

Conversation

@davsclaus

Copy link
Copy Markdown
Contributor

Backport of #25031

Claude Code on behalf of davsclaus

Cherry-pick of #25031 onto camel-4.18.x.

Original PR: #25031 - CAMEL-24231: camel-ftp - Fix pollNamedFile to use dynamic exchange for useList=false
Original author: @davsclaus
Target branch: camel-4.18.x

Changes

On 4.18.x the SFTP code lives in SftpConsumer.java (camel-ftp) and MinaSftpConsumer.java (camel-mina-sftp) rather than the shared AbstractSftpConsumer.java (camel-ftp-common) used on main. The fix was manually applied to all three consumers:

  • FtpConsumer.java - thread dynamic through getFtpFiles()pollNamedFile()
  • SftpConsumer.java - thread dynamic through getSftpRemoteFiles()pollNamedFile()
  • MinaSftpConsumer.java - thread dynamic through getSftpRemoteFiles()pollNamedFile()

Plus the GenericFileHelper.createDummy(endpoint, dynamic) 2-arg overload and enrichFromDynamic() extraction.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

…r useList=false

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Claus Ibsen <claus.ibsen@gmail.com>
@davsclaus davsclaus added the backport indicate that a Pull request is a backport from a fix from the main branch label Jul 23, 2026
@davsclaus
davsclaus merged commit 7d680e3 into camel-4.18.x Jul 23, 2026
3 checks passed
@davsclaus
davsclaus deleted the backport/25031-to-camel-4.18.x branch July 23, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport indicate that a Pull request is a backport from a fix from the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant