[ https://issues.apache.org/jira/browse/FTPSERVER-413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041264#comment-13041264 ]
Niklas Gustavsson commented on FTPSERVER-413: --------------------------------------------- Ha! int replyCode; if(file.isDirectory()) { replyCode = FtpReply.REPLY_212_DIRECTORY_STATUS; } else { replyCode = FtpReply.REPLY_213_FILE_STATUS; } > STAT command returns wrong 200 state > ------------------------------------ > > Key: FTPSERVER-413 > URL: https://issues.apache.org/jira/browse/FTPSERVER-413 > Project: FtpServer > Issue Type: Bug > Affects Versions: 1.0.5 > Reporter: Mark Struberg > Assignee: Niklas Gustavsson > Fix For: 1.0.6, 1.1.0 > > > I'm now using MINA FtpServer for the Integration Tests of Apache mavens > wagon-ftp. While upgrding from a 8 year old avalon based ftpserver jar, I > figured that a unit test is broken. > This has to do with FtpServer returning a 200 state which is imo invalid. > According to the officla RFC http://www.faqs.org/rfcs/rfc959.html STAT may > only return the following codes: > STAT > 211, 212, 213 > 450 > 500, 501, 502, 421, 530 > I think returning 200 (command ok) after a STAT command is a bug. > -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira