mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goldstein Lyor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FTPSERVER-484) Invalid MLST command response
Date Mon, 05 Feb 2018 12:30:00 GMT
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)

Mime
View raw message