You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Kirill Safonov (JIRA)" <ji...@apache.org> on 2009/12/18 19:24:18 UTC

[jira] Updated: (VFS-292) FTP: rename command effectively uses absolute paths which is incorrect in case of USER_DIR_IS_ROOT=true

     [ https://issues.apache.org/jira/browse/VFS-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirill Safonov updated VFS-292:
-------------------------------

    Attachment: VFS-292.patch

patch attached.

> FTP: rename command effectively uses absolute paths which is incorrect in case of USER_DIR_IS_ROOT=true
> -------------------------------------------------------------------------------------------------------
>
>                 Key: VFS-292
>                 URL: https://issues.apache.org/jira/browse/VFS-292
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Kirill Safonov
>         Attachments: VFS-292.patch
>
>
> FtpFileObject.doRename() method uses files paths: FileObject.getName().getPath().
> This is not acceptable in case of USER_DIR_IS_ROOT option is true, because the current directory may be different from "/" while all the FileObjects' paths still start with "/" so they are effectively absolute. This results in 'RNFR command failed' if *real* absolute file is missing, or in accidentally incorrect rename if it exists.

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