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

DefaultFtpServer.stop() removes default listener from FtpServerFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.0.6
    • 1.0.6
    • Server
    • None
    • Java 1.7, Windows 64

    Description

      When using the default classes in an embedded environment, the following situation arises:

      -Configure FtpServerFactory with addListener("default", someListener)
      -Create server via FtpServerFactory.createServer()
      -Start / stop the created FTPServer instance
      -Create a new server instance with FtpServerFactory.createServer()
      -new server does not have a listener. in fact, the FtpServerFactory listener map gets cleared the moment the first FtpServer.stop() is called.

      In my opinion, this problem occurs because the FtpServerFactory is assigned to the same DefaultFtpServerContext as the server instances, which clear the listener maps on FtpServer.stop(). This should not happen, since the FtpServerFactory and its Context must be out-of-scope for the FtpServer instances.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slacky Alexander Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: