Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-327

"Unconnected sockets not implemented" when using FTPSClient

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: FTP
    • Labels:
      None
    • Environment:

      Windows XP SP3, Java 1.6.0_18, Apache Karaf 1.6.0

      Description

      I'm using Apache Camel as an integration platform. Specifically, at the moment, I depend on the ftp/ftps/sftp support in the camel-ftp component. Under the hood Camel uses Commons Net for ftp and ftps support.

      Recently, the camel-ftp component was enhanced (on my request) with the possibility to use a secure data channel. This is accomplished by using the execProt() (and execPsbz()) method in class FTPSClient.

      However, later on (in case Camel needs to reconnect), one of the connect() methods in the base class to FTPSClient is called. Unfortunately all the connect methods first create an unconnected socket and then tries to connect it. The connection factory now associated with the FTPSClient then throws an exception stating: "Unconnected sockets not implemented".

      It seems like the FTPSClient does not support "re-connect" once it has entered secure communications mode.

      See also: http://www.mail-archive.com/user@commons.apache.org/msg04933.html
      and http://www.mail-archive.com/users@camel.apache.org/msg08732.html

        Attachments

        1. ftps-reconn.diff
          0.7 kB
          Bogdan Drozdowski

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rodehav Bengt Rodehav
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: