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 2010/06/05 17:02:00 UTC
[jira] Created: (VFS-310) FTP: improved 'LIST' command may work
incorrectly with certain servers
FTP: improved 'LIST' command may work incorrectly with certain servers
----------------------------------------------------------------------
Key: VFS-310
URL: https://issues.apache.org/jira/browse/VFS-310
Project: Commons VFS
Issue Type: Bug
Affects Versions: Nightly Builds
Reporter: Kirill Safonov
FTP LIST command was enhanced recently to improve the performance: instead of stepping into the target directory, 'LIST <relpath>' is executed.
Still, it may cause problems with certain FTP server software that returns child file names in relative form:
{noformat}> LIST test
150 Opening BINARY mode data connection for file list.
total 56
drwxrwx--- 2 user 4096 May 17 14:07 test/css
drwxrwx--- 2 user 4096 May 17 14:08 test/images
-rw-rw---- 1 user 6397 May 17 14:07 test/index.html{noformat}
instead of
{noformat}
drwxrwx--- 2 user 4096 May 17 14:07 css
drwxrwx--- 2 user 4096 May 17 14:08 images
{noformat}
This results in an immediate error, such as:
org.apache.commons.vfs.FileSystemException: Invalid descendent file name "test/css".
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveName(DefaultFileSystemManager.java:790)
at org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractFileObject.java:689)
at org.apache.commons.vfs.provider.ftp.FtpFileObject.getChildren(FtpFileObject.java:453)
The desired solution is Commons VFS expects such behaviour and strips the leading part of files names (if possible?)
At least, FtpFileSystemConfigBuilder should provide an option to fallback to previous (slower) way of listing children.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.