Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2829

"Unconnected sockets not implemented" exception in camel-ftp when using ftps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • camel-ftp
    • None
    • Patch Available

    Description

      When using ftps with a secure data channel, camel-ftp cannot recover from a lost connection. This is due to a bug/flaw in the SFTPClient class in commons-net. Once a secure data channel has been established, SFTPClient replaces the connection factory with one that does not provide support for creating "unconnected sockets".

      While waiting for a fix from the commons-net team (should they chosse to create one), a work-around in camel-ftp is to always create a new instance of SFTPClient for every connect attempt.

      Attached are patches containing an attempt to implement the mentioned work-around. The classes, FtpsOperations, FtpsEndpoint and FtpOperations are involved.

      Attachments

        1. FtpOperations.diff
          0.1 kB
          Bengt Rodehav
        2. FtpsEndpoint.diff
          2 kB
          Bengt Rodehav
        3. FtpsOperations.diff
          2 kB
          Bengt Rodehav
        4. FtpOperations.java
          20 kB
          Bengt Rodehav
        5. FtpsEndpoint.java
          7 kB
          Bengt Rodehav
        6. FtpsOperations.java
          5 kB
          Bengt Rodehav

        Activity

          People

            davsclaus Claus Ibsen
            rodehav Bengt Rodehav
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: