[ https://issues.apache.org/jira/browse/SSHD-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17623295#comment-17623295 ]
Lyor Goldstein commented on SSHD-1308: -------------------------------------- To add to it {quote} ignored by SSH server and exit code returns 0 {quote} How can the client tell that the server ignored the variable ? Like [~twolf] said: {quote} You could implement this yourself, but it'd be quite involved. {quote} Which means it would be a +custom+ implementation that will work only with your client and server. > No exception is thrown if setting environment variable is ignored by SSH > server > ------------------------------------------------------------------------------- > > Key: SSHD-1308 > URL: https://issues.apache.org/jira/browse/SSHD-1308 > Project: MINA SSHD > Issue Type: Improvement > Affects Versions: 2.9.1 > Environment: Java 8 > Reporter: dgü > Priority: Major > > Hello! > If an environment variable set by > _org.apache.sshd.client.session.ClientSession#createExecChannel(command,null,env)_ > is ignored by SSH server and exit code returns 0, then this may cause > unexpected behaviour in client application. > For example, client application may do different tasks when an environment > variable is set and not set. In both cases, client application may return 0. > Client application may assume that it worked successfully. But, indeed its > environment variable is ignored and worked as if environment variable is not > set. > is it possible throw an exception if setting environment variable is ignored > by SSH server ? > Thanks in advance... > > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org