commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirill Safonov (JIRA)" <j...@apache.org>
Subject [jira] Created: (VFS-292) FTP: rename command effectively uses absolute paths which is incorrect in case of USER_DIR_IS_ROOT=true
Date Fri, 18 Dec 2009 18:20:18 GMT
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


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.


Mime
View raw message