On Thu, May 14, 2009 at 10:22 AM, massimiliano basilica <[email protected]> wrote: > Thank you very much for your help. > While waiting your bug fix, reading the source code, I tried successfully > the patch to the method sessionOpened of the > class org.apache.ftpserver.impl.DefaultFtpHandler. > I made the following patch: public void sessionOpened(final FtpIoSession > session) throws Exception { > FtpletResult ftpletRet = > context.getFtpletContainer().onConnect(session.getFtpletSession()); > if (ftpletRet == FtpletResult.DISCONNECT) { > session.close(false).awaitUninterruptibly(10000); return; > } session.updateLastAccessTime(); > session.write(LocalizedFtpReply.translate(session, null, context, > FtpReply.REPLY_220_SERVICE_READY, null, null)); }
It's pretty similar to what I did. It has been commited to both the 1.0.x branch and trunk. So feel free to check out from SVN and build from there if you like. Anyways, thanks for reporting the issue! /niklas
