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

A client could connect to the ftp server but did not even get a login

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • found and fixed by Daniel Hagen

    Description

      From mail to ftpserver-dev:

      "Hi,

      in search of a Java FTP Application Server I just stumbled over FTPServer.
      After downloading and installing the binaries I encountered the behaviour
      that a client could connect to the ftp server but did not even get a login
      prompt.

      Stepping through the code I discovered the following snippet in
      FtpServerSocketFactory:

      public ServerSocket createServerSocket() throws Exception {
      ServerSocket ssocket = null;
      if(m_serverAddress == null)

      { ssocket = new ServerSocket(m_port, 100); }
      else { new ServerSocket(m_port, 100, m_serverAddress); }
      return ssocket;
      }

      After changing to:

      public ServerSocket createServerSocket() throws Exception {
      ServerSocket ssocket = null;
      if(m_serverAddress == null) { ssocket = new ServerSocket(m_port, 100); }

      else

      { ssocket = new ServerSocket(m_port, 100, m_serverAddress); }

      return ssocket;
      }

      it worked like a charm."

      Attachments

        1. FTPSERVER-27a.txt
          0.7 kB
          Sergey Vladimirov
        2. FTPSERVER-27b.txt
          0.6 kB
          Sergey Vladimirov
        3. FTPSERVER-27c.txt
          5 kB
          Sergey Vladimirov

        Activity

          People

            Unassigned Unassigned
            bsp Sergey Vladimirov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: