The FTPClient.__parsePassiveModeReply function expects PASV mode parameters to be enclosed in parenthesis. While this is often the case, it is not a requirement and parsing fails with a StringIndexOutOfBoundsException when PASV mode parameters are not enclosed in parenthesis.
Please refer to RFC 1123 section 4.1.2.6 for more information.
Description
The FTPClient.__parsePassiveModeReply function expects PASV mode parameters to be enclosed in parenthesis. While this is often the case, it is not a requirement and parsing fails with a StringIndexOutOfBoundsException when PASV mode parameters are not enclosed in parenthesis.
Please refer to RFC 1123 section 4.1.2.6 for more information.
This is a patch for the issue that depends on the following java features introduced in JDK 1.4:
java.util.regex.Pattern
java.util.regex.Matcher
String.split
Chris Eagle added a comment - 16/Dec/07 10:48 AM This is a patch for the issue that depends on the following java features introduced in JDK 1.4:
java.util.regex.Pattern
java.util.regex.Matcher
String.split
java.util.regex.Pattern
java.util.regex.Matcher
String.split