Details
Description
cd fails on successful connection with 2.10.3 or 2.9.5
sftp endpoint [sftp://sftp-user@127.0.0.1/incoming?disconnect=true&privateKeyFile=sftp-user.ppk&privateKeyFilePassphrase=******]
Below log excerpt is with 2.8.0, cd works and sftp cd command successfully goes into '/home/sftp-user' directory
20130114 18:42:52,956 INFO [Camel (camel-1) thread #0 - sftp://user@host/outgoing] RemoteFileConsumer[133]: Connected and logged in to: sftp://user@host:22
20130114 18:42:52,956 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[339]: getCurrentDirectory()
20130114 18:42:52,959 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpConsumer[68]: doPollDirectory from absolutePath: outgoing, dirName: null
20130114 18:42:52,959 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[348]: changeCurrentDirectory(outgoing)
20130114 18:42:52,959 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[389]: Changing directory: outgoing
20130114 18:42:52,966 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpConsumer[81]: Polling directory: outgoing
20130114 18:42:52,966 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[415]: listFiles(.)
20130114 18:42:52,982 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpConsumer[94]: Found 2 in directory: outgoing
20130114 18:42:52,982 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[348]: changeCurrentDirectory(/home/sftp-user)
20130114 18:42:52,982 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[389]: Changing directory: /
20130114 18:42:52,988 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[389]: Changing directory: home
20130114 18:42:52,994 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[389]: Changing directory: sftp-user
20130114 18:42:53,000 DEBUG [Camel (camel-1) thread #0 - sftp://user@host/outgoing] GenericFileConsumer[84]: Took 0.044 seconds to poll: outgoing
Same route fails with 2.95. or 2.10.3 cd command fails.
20130114 19:15:53,530 INFO [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[193]: Connected and logged in to: Endpoint[sftp://user@host/incoming?disconnect=true&knownHostsFile=env%2FunitTest%2Fknown_hosts&privateKeyFile=env%2FunitTest%2Fkeys%2Fsftp-user.ppk&privateKeyFilePassphrase=******&separator=Auto]
20130114 19:15:53,530 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[305]: buildDirectory(incoming,false)
20130114 19:15:53,530 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[372]: getCurrentDirectory()
20130114 19:15:53,670 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[381]: changeCurrentDirectory(/home/sftp-user)
20130114 19:15:53,670 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[372]: getCurrentDirectory()
20130114 19:15:53,670 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[430]: Changing directory: \
20130114 19:15:53,749 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[430]: Changing directory: home
20130114 19:15:53,796 WARN [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[71]: Writing file failed with: Cannot change directory to: home
Looks like separator is bad but I tried all 3 options (Windows,Unix,Auto)... none worked.