Opened 10 years ago

Closed 10 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:
Cc:

Description

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(Directory.java:273)
	at net.sf.basedb.core.Directory.getByPath(Directory.java:216)
	at net.sf.basedb.clients.ftp.BaseFileSystemView.changeWorkingDirectory(BaseFileSystemView.java:120)
	at org.apache.ftpserver.command.impl.CWD.execute(CWD.java:71)
.....

and message to FTP client:

550 No such directory.

Change History (2)

comment:1 Changed 10 years ago by Nicklas Nordborg

Status: newassigned

comment:2 Changed 10 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.