[ 
https://issues.apache.org/activemq/browse/CAMEL-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63015#action_63015
 ] 

Bengt Rodehav commented on CAMEL-3309:
--------------------------------------

Claus, I don't want to make this into a long grunty discussion but..

I did read the release notes looking for "ftp". I did see the note about 
changing the "cd <dir>, list files in cur dir" style to the "list files <dir>" 
style. I didn't see anything wrong with that and I still don't. The problem is 
HOW you change directory not that you change directory. It's the stepwise 
approach that fails.

If you refer to "If you use the FTP component (consumers) make sure to test it 
throughly as it has changed how it traverse the file structure.", I would argue 
that this is actually what I'm doing right now. I'm trying to verify that Camel 
2.5 works before actually upgrading.

I guess I'll have to roll my own in-house version for a while longer then. Will 
upload a patch though that you can have a look at.

> Stepwise change of directory unfit for production (ftp/ftps/sftp)
> -----------------------------------------------------------------
>
>                 Key: CAMEL-3309
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3309
>             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:
>   
> http://camel.465427.n5.nabble.com/How-to-change-directory-while-using-sftp-component-td2806817.html#a2807611
> 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.

Reply via email to