You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/04/05 13:19:05 UTC

[jira] [Created] (NET-401) FTP class uses BufferedReader for control channel, which does not follow the standard

FTP class uses BufferedReader for control channel, which does not follow the standard
-------------------------------------------------------------------------------------

                 Key: NET-401
                 URL: https://issues.apache.org/jira/browse/NET-401
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
    Affects Versions: 2.2
            Reporter: Sebb


The FTP class uses BufferedReader for wrapping the control channel, and uses its readLine() for getting responses from the server.

The FTP protocol requires CRLF at the end of lines, but Bufferedreader#readLine() also allows bare CR and LF terminators, which could potentially be included in a server reply.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (NET-401) FTP class uses BufferedReader for control channel, which does not follow the standard

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved NET-401.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Changed to use CRLFLineReader

> FTP class uses BufferedReader for control channel, which does not follow the standard
> -------------------------------------------------------------------------------------
>
>                 Key: NET-401
>                 URL: https://issues.apache.org/jira/browse/NET-401
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 2.2
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> The FTP class uses BufferedReader for wrapping the control channel, and uses its readLine() for getting responses from the server.
> The FTP protocol requires CRLF at the end of lines, but Bufferedreader#readLine() also allows bare CR and LF terminators, which could potentially be included in a server reply.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira