graben commented on PR #17143: URL: https://github.com/apache/camel/pull/17143#issuecomment-2659876686
Hi @davsclaus, I add a test case, but the test suite does not run well on Windows systems, case should be successful. :-) ``` 2025-02-14 18:19:03,832 [IT%5Cres%5Chome] WARN SftpConsumer - Failed polling endpoint: sftp://localhost:40602/target%5Cftp%5CSftpSimpleConsumeWithAntIncludeIT%5Cres%5Chome?antInclude=subdir%2Fhello.txt&delay=10000&disconnect=true&knownHostsFile=target%5Cftp%5CSftpSimpleConsumeWithAntIncludeIT%5Cuser-home%5C.ssh%5Cknown_hosts&password=xxxxxx&recursive=true&username=xxxxxx. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot change directory to: C:] org.apache.camel.component.file.GenericFileOperationFailedException: Cannot change directory to: C: at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:777) ~[classes/:?] at org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(SftpOperations.java:762) ~[classes/:?] at org.apache.camel.component.file.remote.SftpOperations.changeToParentDirectory(SftpOperations.java:794) ~[classes/:?] at org.apache.camel.component.file.remote.SftpConsumer.pollSubDirectory(SftpConsumer.java:114) ~[classes/:?] at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:177) ~[classes/:?] at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:100) ~[classes/:?] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:147) ~[camel-file-4.11.0-20250212.223355-1.jar:4.11.0-SNAPSHOT] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:113) ~[camel-file-4.11.0-20250212.223355-1.jar:4.11.0-SNAPSHOT] at org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:205) ~[camel-support-4.11.0-20250212.223355-1.jar:4.11.0-SNAPSHOT] at org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:119) ~[camel-support-4.11.0-20250212.223355-1.jar:4.11.0-SNAPSHOT] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?] at java.base/java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:358) ~[?:?] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java) ~[?:?] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] Caused by: com.jcraft.jsch.SftpException: Invalid filename at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2830) ~[jsch-0.2.23.jar:0.2.23] at com.jcraft.jsch.ChannelSftp._realpath(ChannelSftp.java:2288) ~[jsch-0.2.23.jar:0.2.23] at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:330) ~[jsch-0.2.23.jar:0.2.23] at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:775) ~[classes/:?] ... 16 more ``` -- 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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org