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

DefaultSftpClient#write(String) fails for streams > 32 KiB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.11.0
    • 0.12.0
    • None

    Description

      DefaultSftpClient#write(String) returns an OutputStream that has a bug in OutputStream#write(byte[],int,int): Since off is never updated, anything copied into the buffer is from the first 32 KiB of the array passed as first argument.

      Incidentally, and even though not technically a bug, it also would be nice if the returned output stream would perform a flush when it is closed.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            fschopp Florian Schoppmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: