You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2019/01/14 08:17:00 UTC

[jira] [Created] (SSHD-882) Add support for STDERR stream usage in SFTP

Goldstein Lyor created SSHD-882:
-----------------------------------

             Summary: Add support for STDERR stream usage in SFTP
                 Key: SSHD-882
                 URL: https://issues.apache.org/jira/browse/SSHD-882
             Project: MINA SSHD
          Issue Type: Improvement
    Affects Versions: 2.1.0
            Reporter: Goldstein Lyor


According to [version 4|https://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-3.1]:
{quote}
Packets are sent and received on stdout and stdin.  Data sent on
stderr by the server SHOULD be considered debug or supplemental error
information, and MAY be displayed to the user.

For example, during initialization, there is no client request
active, so errors or warning information cannot be sent to the client
as part of the SFTP protocol at this early stage.  However, the
errors or warnings MAY be sent as stderr text.
{quote}

We currently initialize the STDERR stream, but make no use of it. We should provide a *configurable* way of using this stream - provided we find a use-case for it and maybe some client/server(s) that make use of it. *Note:* by default, the {{ChannelSession}} (that we use to consume SFTP data) does not accept STDERR data:

{code:java}
    @Override
    protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException {
        throw new UnsupportedOperationException("Server channel does not support extended data");
    }
{code}

so we need to consider very carefully what such a feature would require.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)