NullPointerException is thrown at FtpFileObject when processing certain 
symbolic link
-------------------------------------------------------------------------------------

                 Key: VFS-284
                 URL: https://issues.apache.org/jira/browse/VFS-284
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: Nightly Builds
         Environment: Client is running on Vista Ultimate is accessing FTP 
server on Suse Lunux 11.0
            Reporter: Kirill Safonov


On the server result of LIST command in "/proc/1" folder contains the symbolic 
link with entry "lrwxrwxrwx    1 0        0               0 Oct 18 05:58 cwd"
Since the entry has no "->" part the resulting link destination is kept null 
leading to
java.lang.NullPointerException
        at java.lang.StringBuffer.<init>(StringBuffer.java:104)
        at 
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName(DefaultFileSystemManager.java:762)
        at 
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName(DefaultFileSystemManager.java:737)
        at 
org.apache.commons.vfs.provider.ftp.FtpFileObject.getLinkDestination(FtpFileObject.java:359)
        at 
org.apache.commons.vfs.provider.ftp.FtpFileObject.doGetType(FtpFileObject.java:338)
        at 
org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:467)

More robust behavior and detailed error reporting (i.e. special type of 
exception) would be very helpful in this case.

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

Reply via email to