commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Duffey (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-123) [FTP Provider] Unvisible files in sub directories with space in their names
Date Mon, 18 Jun 2007 15:48:26 GMT

    [ https://issues.apache.org/jira/browse/VFS-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505849
] 

Tom Duffey commented on VFS-123:
--------------------------------

The above patch seems to work OK but you need to check if relPath is null before passing it
to URIUtil.endodePath().  Otherwise an IllegalArgumentException is thrown.

> [FTP Provider] Unvisible files in sub directories with space in their names
> ---------------------------------------------------------------------------
>
>                 Key: VFS-123
>                 URL: https://issues.apache.org/jira/browse/VFS-123
>             Project: Commons VFS
>          Issue Type: Bug
>         Environment: all
>            Reporter: Gilles Gaillard
>            Priority: Trivial
>
> In class FTPClientWrapper, The method 
>   FTPFile[] listFiles(String relPath)
> returns an empty array if the relpath parameter contains a 'space' character (for example:
'test dir/child1'). 
> In such a case the FTP server will respond with an error 550 and a message looking like:
'invalid directory 'test'.
> The workaround is 
>   1. to detect such a case
>   2. to perform a CWD to the targeted directory, request the listFiles
>   3. CWD to the previous working directory.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message