[
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.