Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-94

Properly handle SFTP version communication

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Labels:
      None

      Description

      The current SFTP system refuses connection to SFTP versions other than 3' While this behavior is appropriate for the lower versions, many SFTP clients appear to expect the maximum version supported by the server to be returned in order to use the correct command set and will disconnect when the 'Version not supported' response is given. The SFTP server should return the minimum of (requested version or supported version) unless the client requests a command set for v1 or v2.

        Activity

        Hide
        mschulze Matthew Schulze added a comment -

        The attached patch changes the SFTP version response to reply as described in the issue.

        Show
        mschulze Matthew Schulze added a comment - The attached patch changes the SFTP version response to reply as described in the issue.
        Hide
        gnt Guillaume Nodet added a comment -

        Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ...
        M sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java
        Committed r1028024

        Show
        gnt Guillaume Nodet added a comment - Committing to https://svn.apache.org/repos/asf/mina/sshd/trunk ... M sshd-core/src/main/java/org/apache/sshd/server/sftp/SftpSubsystem.java Committed r1028024

          People

          • Assignee:
            gnt Guillaume Nodet
            Reporter:
            mschulze Matthew Schulze
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development