Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-188

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M3
    • 1.0.0-M4
    • Ftplets
    • None
    • FtpServer 1.0-M3, running on JRE 1.6.0_05

    Description

      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

      Attachments

        Activity

          People

            niklas Niklas Therning
            gloureiro Gil Loureiro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: