LIST command handler sends unexpected 150 response for permissions error
Brought to you by:
chrismair
Opened this ticket for bug described in https://sourceforge.net/p/mockftpserver/discussion/748298/thread/6153b103/: Illegal LIST response if permission denied.
Both the LIST and NLST (fake) command handlers send an initial 150 status, even before checking whether the current use has read permissionsfor the requested directory. They should only send a 150 status once ready to send the dir listing on the data channel.
Fix: Check the dir permissions and read the dir list before sending the 150 status. That makes the behavior consistent with the existing behavior of RetrCommandHandler.
Fixed in MockFtpServer v2.7.1