Menu

#29 LIST command handler sends unexpected 150 response for permissions error

v1.0_(example)
closed-fixed
None
5
2016-12-07
2016-12-04
Chris Mair
No

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.

Discussion

  • Chris Mair

    Chris Mair - 2016-12-07

    Fixed in MockFtpServer v2.7.1

     
  • Chris Mair

    Chris Mair - 2016-12-07
    • status: open --> closed-fixed