[
https://issues.apache.org/jira/browse/CAMEL-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693058#comment-13693058
]
Bengt Rodehav commented on CAMEL-6335:
--------------------------------------
Point well taken - if you are allowed to go down stepwise you are most likely
allowed to go back up stepwise. I guess you want to go back up stepwise for the
same reason you want to go down stepwise. I just have never understood what
situations the stepwise functionality actually remedies. What ftp server does
not allow you to change directory directly ("CD subdirA/subdirB") but requires
you to stop att every intermediate directory ("CD subdirA" then "CD subdirB")?
What does actually happen?
I'm not opposed to the stepwise functionality but I have never found a
situation where I have needed it and I'm just curious abou this since stepwise
has been chosen as the default option for Camel.
Anyway, I guess all that is needed is to fix the code according to your
suggestion. Then we'll have the best of both worlds (stepwise and not).
> Sftp cannot change to parent directory in a stepwise fashion
> ------------------------------------------------------------
>
> Key: CAMEL-6335
> URL: https://issues.apache.org/jira/browse/CAMEL-6335
> Project: Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.9.4, 2.9.5, 2.9.6, 2.9.7, 2.10.2, 2.10.3, 2.10.4,
> 2.11.0
> Reporter: Bengt Rodehav
> Attachments: SftpOperations.java.patch
>
>
> The problem occurs when using the sftp protocol with the stepwise option
> enabled and when polling a subdirectory.
> When Camel has finished polling the subdirectory, it attempts to change
> directory back to the home directory in a stepwise fashion: Doing "cd .." one
> step at a time. This logic has a bug that causes it to try to change to a
> non-existing directory.
> This has been discussed on the user mailing list:
> http://mail-archives.apache.org/mod_mbox/camel-users/201305.mbox/%3CCAJ0TPGJ6gdaEuYgjpKG42HR-ozbyC0e5Z=mi2xrdmnonbty...@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira