commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Persson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-345) Regression: FTP Provider does not support symbolic links correctly
Date Fri, 07 Jan 2011 15:50:49 GMT

    [ https://issues.apache.org/jira/browse/VFS-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978828#action_12978828
] 

Andreas Persson commented on VFS-345:
-------------------------------------

FTPClientWrapper: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java?r1=804644&r2=940808&diff_format=h

I don't understand the code enough to tell how the VFS-307 patch works, but when I removed
these lines:

        files = getFtpClient().listFiles(relPath);
        if (FTPReply.isPositiveCompletion(getFtpClient().getReplyCode()))
        {
            return files;
        }

which were added in VFS-307, the bug disappeared.


> Regression: FTP Provider does not support symbolic links correctly
> ------------------------------------------------------------------
>
>                 Key: VFS-345
>                 URL: https://issues.apache.org/jira/browse/VFS-345
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Andreas Persson
>
> After the fix from VFS-307, the FTP provider does not handle symbolic links correctly.
> A symlink to a directory returns false from exists(). getType() returns FileType.IMAGINARY.

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