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

FTP does not validate command reply syntax fully

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6
    • FTP
    • None

    Description

      The reply to a command consists of 3 digits, followed by space, followed by text.
      For a multi-line reply, the space is replaced with a hypen (minus) on the first line.

      The code currently handles the hyphen correctly, but it does not insist that the reply code is followed by a space.

      It ought to check this and throw a MalformedServerReplyException if the reply does not have the correct syntax.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: