Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread Bengt Rodehav
> (FileUtil > > >> > >> class). Have you tried Camel 2.11.0 to verify if it works for > you? > > >> > >> > > >> > >> I think whati will cause my problem is if you upload to a > > subdirectory > > >> > >> via s

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread David Karlsen
>> > >> I think whati will cause my problem is if you upload to a > subdirectory > >> > >> via sftp and the home directory (where you end up after login) is > "/" > >> > (or > >> > >> "\" on windows). > >> > >

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread Claus Ibsen
> > >> >> > >> /Bengt >> > >> >> > >> >> > >> >> > >> >> > >> 2013/4/24 Diether >> > >> >> > >>> >> > >>> This problem has been mentioned before:

Re: Problems with sftp in Camel 2.11.0

2013-04-25 Thread Bengt Rodehav
> >> "\" on windows). > > >> > > >> /Bengt > > >> > > >> > > >> > > >> > > >> 2013/4/24 Diether > > >> > > >>> > > >>> This problem has been mentioned before:

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Christian Müller
in-2-10-3-td5726060.html > >>> > >>> But it seems like still no fix has been implemented then. > >>> For us it was working in 2.10.2 though, but not in 2.10.3 > >>> > >>> Regards, > >>> Diether > >>> > >>>

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
://camel.465427.n5.nabble.com/Producing-files-to-ftp-now-working-in-2-10-3-td5726060.html >>> >>> But it seems like still no fix has been implemented then. >>> For us it was working in 2.10.2 though, but not in 2.10.3 >>> >>> Regards, >>> Diether >>&g

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
t;> >> ____________ >> Van: Bengt Rodehav [via Camel] [ml-node+s465427n5731408...@n5.nabble.com] >> Verzonden: woensdag 24 april 2013 10:28 >> To: Wuyts Diether >> Onderwerp: Re: Problems with sftp in Camel 2.11.0 >> >> I investigate

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
rds, > Diether > > > Van: Bengt Rodehav [via Camel] [ml-node+s465427n5731408...@n5.nabble.com] > Verzonden: woensdag 24 april 2013 10:28 > To: Wuyts Diether > Onderwerp: Re: Problems with sftp in Camel 2.11.0 > > I investigated this furt

RE: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Diether
Van: Bengt Rodehav [via Camel] [ml-node+s465427n5731408...@n5.nabble.com] Verzonden: woensdag 24 april 2013 10:28 To: Wuyts Diether Onderwerp: Re: Problems with sftp in Camel 2.11.0 I investigated this further and found a serious bug in the FileUtil.compactPath() method. If the path only

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
I investigated this further and found a serious bug in the FileUtil.compactPath() method. If the path only contains a "/" (or "\" on Windows) the compactPath() method will: - Determine that the path both starts and ends with a slash. - First output a slash because the path starts with a slash - Th

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
The following trace logging looks suspicious to me: 2013-04-24 09:34:40,776 | TRACE | terfaces/nfm/out | SftpOperations | onent.file.remote.SftpOperations 377 | Current dir: / 2013-04-24 09:34:40,782 | TRACE | terfaces/nfm/out | SftpOperations | onent.file.remote.SftpOperation

Re: Problems with sftp in Camel 2.11.0

2013-04-24 Thread Bengt Rodehav
Some more information. I logged on the sftp server using cygwin (I'm running on Windows 7 BTW) and executed a "pwd" command just to see what the server replied and it said: sftp> pwd Remote working directory: / This looks perfectly fine to me and is a normal setup. I e my home directory looks lik

Re: Problems with sftp in Camel 2.11.0

2013-04-23 Thread Bengt Rodehav
I've now checked this issue a bit further. It turned out that I hadn't tested this on Camel 2.10.3. What I had tested was the corresponding consumtion of files from the sftp server which also works with Camel 2.11.0. So this is probably not a Camel 2.11.0 issue. The following consuming route works

Re: Problems with sftp in Camel 2.11.0

2013-04-23 Thread Bengt Rodehav
Thanks for both your answers Chris and mdo, I will try to move the username as you both suggest but according to the documentation this should still be valid syntax. What puzzles me is the "...Cannot change directory to: //" since it sounds like Camel is actually trying to change directory despi

Re: Problems with sftp in Camel 2.11.0

2013-04-23 Thread mdo
BTW: I'm using URIs like this successfully with 2.11: sftp://192.168.1.2:22//home/user/ sftp://localhost//tmp/subdir/ Both being absolute paths. Login name and passwords appended along with other options. Regards, mdo. -- View this message in context: http://camel.465427.n5.nabble.com/Pro

Re: Problems with sftp in Camel 2.11.0

2013-04-23 Thread mdo
Bengt Rodehav wrote > sftp://myUser@myServer//subdir?password=myPassword&stepwise=false > > This worked fine in Camel 2.10.3. Note that I had to use double "/" to get > it to work. Using Camel 2.11.0 I get the following error: The first slash is treated as separator between the authority part of

Re: Problems with sftp in Camel 2.11.0

2013-04-23 Thread Chris Wolf
What happens if you specify the username as query parameter? sftp://myServer/subdir?username=myUser&password=myPassword&stepwise=false (I didn't upgrade, so I can't try it) On Tue, Apr 23, 2013 at 8:33 AM, Bengt Rodehav wrote: > I just upgraded from Camel 2.10.3 to 2.11.0 and I now cannot get