[
https://issues.apache.org/jira/browse/NET-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved NET-611.
----------------------
Resolution: Fixed
Fix Version/s: 3.6
URL: http://svn.apache.org/viewvc?rev=1782002&view=rev
Log:
NET-611 FTP does not validate command reply syntax fully
Modified:
commons/proper/net/trunk/src/changes/changes.xml
commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java
> 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
> Fix For: 3.6
>
>
> 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)