FtpServer
  1. FtpServer
  2. FTPSERVER-244

Automatically do SSL on passive ports, if Session is implict FTPS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.0.0-M4
    • Fix Version/s: 1.0.0-RC1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Client PowerTCP alias DartFTP, implicit FTPS

      Description

      I had some trouble with DartFTP as client in implicit ftps mode. The client expects, that the data channel is automatically secure, when the control channel is ssl. It does not issue a PROT command.

      I know there is no clean spec for implicit ftps.

      I fixed it in the constructor of IODataConnectionFactory, but maybe this behaviour should be configurable:

      public IODataConnectionFactory(final FtpServerContext serverContext,
      final FtpIoSession session)

      { this.session = session; this.serverContext = serverContext; // implicitly preset security this.secure=session.isSecure(); }

        Activity

        Niklas Gustavsson made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.0.0-RC1 [ 12313542 ]
        Resolution Duplicate [ 3 ]
        Assignee Niklas Gustavsson [ niklas ]
        Jörg Schubert made changes -
        Attachment patch_ServerSocket_3.txt [ 12396501 ]
        Jörg Schubert made changes -
        Comment [ My next try :-)

        this patch works against current trunk (SVN Revision 726795). And - wow - the fix for FTPSERVER-241 seems to make a mixed usage of SSL and unenrypted traffic on the same port possible. Can anyone test it?

        Configuration:
        A passive Port range is reusable, if any of the port declarations contains an 'r'. example: <passive ports="r2505-2515" />

        Support of a random passive port (<passive ports="0" />) is still broken. And there ist no unit test yet.

        ]
        Jörg Schubert made changes -
        Attachment patch_ServerSocket_3.txt [ 12396501 ]
        Jörg Schubert made changes -
        Field Original Value New Value
        Summary automatically do FTPS on passive ports, if Session is implict FTPS Automatically do SSL on passive ports, if Session is implict FTPS
        Jörg Schubert created issue -

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            Jörg Schubert
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development