FtpServer
  1. FtpServer
  2. FTPSERVER-27

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      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."

      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

        Hide
        Sergey Vladimirov added a comment -

        Simple testcase for default properties and for presented (FTPSERVER-27a.txt) patch.

        Show
        Sergey Vladimirov added a comment - Simple testcase for default properties and for presented ( FTPSERVER-27 a.txt) patch.
        Hide
        Rana Bhattacharyya added a comment -

        Applied patch. Thank you!

        Show
        Rana Bhattacharyya added a comment - Applied patch. Thank you!
        Hide
        Sergey Vladimirov added a comment -

        feel free to close

        Show
        Sergey Vladimirov added a comment - feel free to close

          People

          • Assignee:
            Unassigned
            Reporter:
            Sergey Vladimirov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development