commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rory Winston (JIRA)" <j...@apache.org>
Subject [jira] Closed: (NET-144) FTP: Filenames containing leading and trailing spaces
Date Tue, 28 Nov 2006 16:18:22 GMT
     [ http://issues.apache.org/jira/browse/NET-144?page=all ]

Rory Winston closed NET-144.
----------------------------

    Resolution: Won't Fix

We've discussed this issue before, and the consensus at the time was that we wouldnt add a
fix specifically for this issue, as it seems to be an extreme edge case. If you disagree and
you would like to have a go, feel free to submit a patch. 

> FTP: Filenames containing leading and trailing spaces
> -----------------------------------------------------
>
>                 Key: NET-144
>                 URL: http://issues.apache.org/jira/browse/NET-144
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 1.4 Final
>            Reporter: Norbert Seekircher
>
> The FTPClient's listFiles() method seems to trim filenames removing leading and trailing
spaces.
> E. g.:
> Create a directory "/parent" containing a file " test " (one leading and one trailing
space) on an ftp server.
> Then call this code:
>         FTPClient ftp = new FTPClient();
>         ftp.connect(SERVER_NAME);
>         ftp.login(LOGIN, PASS);
>         
>         FTPFile[] files = ftp.listFiles("/parent");
>         
>         for (FTPFile file : files) {
>             System.out.println("\"" + file.getName() + "\"");
>         }
> It will print out "test" instead of " test ".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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