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

FTP does not validate command reply syntax fully

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6
    • Component/s: FTP
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: