commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-611) FTP does not validate command reply syntax fully
Date Tue, 07 Feb 2017 12:04:41 GMT

    [ https://issues.apache.org/jira/browse/NET-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855849#comment-15855849
] 

Sebb commented on NET-611:
--------------------------

Since this change affects all single-line replies, it may be worth adding a way to revert
to the previous behaviour.

> FTP does not validate command reply syntax fully
> ------------------------------------------------
>
>                 Key: NET-611
>                 URL: https://issues.apache.org/jira/browse/NET-611
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>            Reporter: Sebb
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message