Hey Niklas,

Regarding current FTPLet behaviour, it seems that the "init(FtpletContext
context)" method is not getting called anymore in M2 (or at least latest SVN
version). Is this the expected behaviour? If it is, is there any other way
to access FtpletContext ? My onLogin() method  was calling
"DbUserManager.save()" to save the login time for the user, if I cannot do
this anymore do you have any suggestions?

By the way  , I would like to suggest that UserManagers or "PASS" tried to
call an external function (implemented through an interface?) to process the
password before the actual login ( so I can encrypt the password without
overriding the PASS command).

Thanks a lot,

David Latorre


2008/8/15 Niklas Gustavsson <[EMAIL PROTECTED]>

> Hi
>
> I've just completed the refactoring to make Ftplets generic. The
> change basically removed all the command specific callback methods
> from the Ftplet interface and instead adds a beforeCommand() and
> afterCommand() method. These will be called before and after any
> command, even if the command is not supported by the server. The
> return values works as before. The DefaultFtplet class still has the
> command specific methods, and will map between the generic methods and
> these. This means, that if you have an old Ftplet and don't want to
> rewrite it for the new interface, just extend DefaultFtplet instead.
>
> Note that there has been some behavior changes:
> * onXxxxEnd methods will now be called even if the command failed
> * onXxxxEnd methods will now be called even if the onXxxStart method
> returned RET_SKIP
> * onLogin can no longer be used to extend authentication, it is now
> called after authentication is complete. If you would like to provide
> your own authentication extension, this has to be done using a custom
> PASS command implementation
>
> I think that's it, feel free to provide feedback and bug reports!
>
> /niklas
>

Reply via email to