Issue Details (XML | Word | Printable)

Key: NET-177
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Chris Eagle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

FTPClient fails to parse valid PASV responses

Created: 16/Dec/07 10:32 AM   Updated: 18/Feb/08 12:07 AM
Return to search
Component/s: None
Affects Version/s: 1.4, 2.0, 1.5
Fix Version/s: 2.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works FTPClient_parsePassive.diff 2007-12-16 10:48 AM Chris Eagle 3 kB
Environment: All, this is a source problem, not an environment problem

Resolution Date: 18/Feb/08 12:07 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
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

Rory Winston added a comment - 18/Feb/08 12:07 AM
Patch applied. Thanks.