camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bengt Rodehav (JIRA)" <>
Subject [jira] Commented: (CAMEL-3309) Stepwise change of directory unfit for production (ftp/ftps/sftp)
Date Thu, 04 Nov 2010 08:45:00 GMT


Bengt Rodehav commented on CAMEL-3309:

I must say I strongly disagree Claus. For the stepwise CD to work, the following must be true:

- The user's home directory is reported as "/" by the ftp server...
- ...OR the user is given access rights to all intermediate folders down to the home folder

The first prerequisite is probably rather common but nowhere near 100%, probably far less.
The second prerequisite must be very unusual and more regarded as something missed by the
ftp server administrator.

Add the fact that the implementation of the stepwise CD doesn't always work on Windows servers
(or maybe just not on Serv-U, I don't really know), I think this is not a good default configuration.
I would guess that the problems solved by stepwise CD are far less than the problems introduced.

Nevertheless, if there is a workaround via a configuration property I can accept (although
I don't agree) that stepwise CD is the default. Remember that introducing this in Camel 2.5
actually did break code in Camel 2.4 regardless of how things were implemented in Camel 1.x.

Also, I would suggest you add a note on the documentation page about those two requisites

For me this is a critical showstopper, having it marked as an improvement is no good. Waiting
for Camel 2.6 is not good enough either. Will you release a 2.5.1 in the near future?

> Stepwise change of directory unfit for production (ftp/ftps/sftp)
> -----------------------------------------------------------------
>                 Key: CAMEL-3309
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-ftp
>    Affects Versions: 2.5.0
>            Reporter: Bengt Rodehav
> In Camel 2.5, the logic for changing directory for ftp/ftps/sftp has changed in order
to fix the problems discussed in the following thread:
> In Camel 2.5 changing of the remote directory is now done in a stepwise manner. This
is a strategy not fit for production since it assumes that the logged in ftp/ftps/sftp user
has access to all intermediate directories all the way down to its home directory. This is
rarely the case.
> Also, when testing ftp/sftp on Serv-U, a Windows based ftp/ftps/sftp server, it turns
out that it reports the current directory in a "Windows way", e g /C:/temp/servu/user/sample/file2sftp.
The topmost folder is not "/" but "/C:". This also breaks the new stepwise way of changing
directory since it always tries to change to "/" if an absolute path is used.
> I propose to introduce a configuration property to enable/disable stepwise changing of
directories where disabling it should be the default. I will upload a patch shortly.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message