[ 
https://issues.apache.org/jira/browse/NET-655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Goldstein Lyor closed NET-655.
------------------------------
    Resolution: Invalid

Sorry, opened in wrong project...

> Invalid MLST command response
> -----------------------------
>
>                 Key: NET-655
>                 URL: https://issues.apache.org/jira/browse/NET-655
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>            Reporter: Goldstein Lyor
>            Priority: Major
>
> 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)

Reply via email to