You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2018/02/05 12:30:00 UTC
[jira] [Created] (FTPSERVER-484) Invalid MLST command response
Goldstein Lyor created FTPSERVER-484:
----------------------------------------
Summary: Invalid MLST command response
Key: FTPSERVER-484
URL: https://issues.apache.org/jira/browse/FTPSERVER-484
Project: FtpServer
Issue Type: Bug
Components: Server
Reporter: Goldstein Lyor
According to [RFC 3659 section 7.2|https://tools.ietf.org/html/rfc3659#section-7.2] the correct response for the MLST command must contain a leading space:
{noformat}
mlst-response = control-response / error-response
mlsd-response = ( initial-response final-response ) /
error-response
control-response = "250-" [ response-message ] CRLF
1*( SP entry CRLF )
"250" [ SP response-message ] CRLF
initial-response = "150" [ SP response-message ] CRLF
final-response = "226" SP response-message CRLF
{noformat}
However, the response generated by the {{MLST}} command contains no such space - these are the lines received from the server:
{noformat}
"250-"
"Size=235;Modify=20180205115758.043;Type=file; testAuthenticatedAccess.txt"
""
"250 Requested file action okay, completed."
{noformat}
This is because the format for the response is:
{noformat}
250.MLST=\n{output.msg}\nRequested file action okay, completed.
{noformat}
When in effect it should be
{noformat}
250.MLST=\n {output.msg}\nRequested file action okay, completed.
{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)