Whe uploading a file, ftplet/onDisconnect method is called with 
session.getUser() equals null
---------------------------------------------------------------------------------------------

                 Key: FTPSERVER-188
                 URL: https://issues.apache.org/jira/browse/FTPSERVER-188
             Project: FtpServer
          Issue Type: Bug
          Components: Ftplets
    Affects Versions: 1.0-M3
         Environment: FtpServer 1.0-M3, running on JRE 1.6.0_05
            Reporter: Gil Loureiro


If a user is limited to one connection, like:
    ftpserver.user.anonymous.userpassword=
    ftpserver.user.anonymous.homedirectory=./res/home
    ftpserver.user.anonymous.enableflag=false
    ftpserver.user.anonymous.writepermission=true
    ftpserver.user.anonymous.maxloginnumber=1
    ftpserver.user.anonymous.maxloginperip=1
    ftpserver.user.anonymous.idletime=3000
    ftpserver.user.anonymous.uploadrate=0
    ftpserver.user.anonymous.downloadrate=0

on the ftplet, the metho onDisconnect is called when uploading a file, with the 
session.getUser() equals to null.

To repoduce, simply add an "clean" ftplet to a M3 instance, and on the 
onDIsconnect add:
        System.out.println("onDisconnect");
        System.out.println(session);
        System.out.println(session.getUser());
upload a file, and on the console the third line should be null.

Regards,
GL

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to