|
[
Permlink
| « Hide
]
Rory Winston added a comment - 29/Mar/07 03:29 PM
I have tried this with Geocities servers, but I cant reproduce the issue with 2.0 RC? Can you provide some more info?
This is still broken in the nightly build. Here is a simple Java program that will reproduce this.
import org.apache.commons.net.ftp.FTPClient; public class FTPTest { getStatus() stops reading lines prematurely, which sets up listFiles() to fail. Thanks Matthew , that is very helpful. I can reproduce the issue now. I think we may need to modify that condition to fix this.
Ok, I think the best way to do this may be to revert to the previous (more strict) behaviour for default operation, but add a parameter (settable on the FTPClient) which allows the user to enable strict or lenient multiline parsing.
This is now fixed. In order to get the broken test case to work, add the following line before connect():
ftpClient.setStrictMultilineParsing(true); This will enable the client to parse the responses correctly. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||