Opened 14 years ago

Closed 14 years ago

#272 closed enhancement (fixed)

Handle CWD . commands correctly

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: FTP Server v1.1
Component: net.sf.basedb.ftp Keywords:


Some FTP clients (FTPRush) send a CWD . to keep the server connection alive. This was not handled by the FTP server. Stack trace in log:

13:12:19,124 ERROR BaseFileSystemView:126 - Could not change to directory: .
net.sf.basedb.core.ItemNotFoundException: Item not found: Directory[path=/tmp/.]
	at net.sf.basedb.core.Directory.getIdFromPath(
	at net.sf.basedb.core.Directory.getByPath(
	at net.sf.basedb.clients.ftp.BaseFileSystemView.changeWorkingDirectory(
	at org.apache.ftpserver.command.impl.CWD.execute(

and message to FTP client:

550 No such directory.

Change History (2)

comment:1 by Nicklas Nordborg, 14 years ago

Status: newassigned

comment:2 by Nicklas Nordborg, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [1229]) Fixes #272: Handle CWD . commands correctly

Note: See TracTickets for help on using tickets.