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

Aki Yoshida edited comment on CAMEL-6335 at 5/27/13 10:24 AM:
--------------------------------------------------------------

i think simply removing the code will reintroduce old issues. The code was 
solving the normal stepwise operations in which we ensure the stepwise 
traversal moves the path upwards from the current directory to where it started 
without touching its upper directory where you may not have authorization to 
access.
CAMEL-5574

however, it appears that this code doesn't not work when the path is at the 
root (i.e., when the path is "/").
in that case, this code needs to be skipped as this special traversal is not 
needed.

regards, aki
                
      was (Author: ay):
    i think simply removing the code will reintroduce old issues. The code was 
solving the normal stepwise operations to ensure the stepwise traversal moves 
the path upwards from the 

however, it appears that it doesn't not work when the path is at the root.
so, i think that needs to be specially handled 

                  
> 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

Reply via email to