On Fri, Feb 27, 2009 at 11:36 AM, Emmanuel Lecharny <elecha...@apache.org> wrote: > Ok, we have run the tests again and the problem is that using HSF+ file > system on Mac, the RMD command in the testRmdirCurrentWorkingDirectory test > simply succeed, because HSF+ can be set to be case-insensitive.
That's bad, because FtpServer should never allow deleting the current working directory. Would you be able to see what happens in org.apache.ftpserver.command.impl.RMD line 97 and in org.apache.ftpserver.filesystem.nativefs.impl.NativeFtpFile.equals(Object) when this command is sent? What should happen is that the equals method should return true as the java.io.Files that gets compared should evaluate to the same file. > I guess that the FtpServer check the underlying file-system during > initialization, and if it's a linux based one, it considers the FS as case > sensitive. No, at least we're not that stupid ;-) /niklas