Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-177

FTPClient fails to parse valid PASV responses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4, 1.5, 2.0
    • 2.0
    • None
    • None
    • All, this is a source problem, not an environment problem

    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.

      Attachments

        1. FTPClient_parsePassive.diff
          3 kB
          Chris Eagle

        Activity

          People

            Unassigned Unassigned
            cseagle Chris Eagle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: