A new API in Session is introduced for making SSH global requests and handling the reply asynchronously.
public GlobalRequestFuture request(Buffer buffer, String request, ReplyHandler replyHandler) throws IOException;
The Buffer is supposed to contain the full request, including the request name (for
instance, "tcpip-forward"), the want-reply flag, and any additional data needed. There
are several possible ways to use it.
want-reply=true and replyHandler != null: the methods sends the request and returns a
future that is fulfilled when the request was actually sent. The future is fulfilled with
an exception if sending the request failed, or with null if it was sent successfully.
Once the reply is received, the handler is invoked with the SSH command (SSH_MSG_REQUEST_SUCCESS,
SSH_MSG_REQUEST_FAILURE, or SSH_MSG_UNIMPLEMENTED) and the buffer received.
want-reply=true and replyHandler == null: the method sends the request and returns a
future that is fulfilled with an exception if sending it failed, or if a SSH_MSG_REQUEST_FAILURE
or SSH_MSG_UNIMPLEMENTED reply was received. Otherwise the future is fulfilled with the received
Buffer once the reply has been received.
want-reply=false: the method sends the request and returns a future that is fulfilled when
the request was actually sent. The future is fulfilled with an exception if sending the request
failed, or with an empty buffer if it was sent successfully. If replyHandler != null, it is
invoked with an empty buffer once the request was sent.
If the method throws an IOException, the request was not sent, and the handler will not be
invoked.
Potential compatibility issues
Changes that may affect existing code
A new SFTP configuration property has been introduced that limits the maximum amount of data that can be sent in a single SSH_FXP_WRITE packet - default=256KB
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/eclipse-arrowhead/core-java-spring/network/alerts).
Bumps sshd-mina from 2.4.0 to 2.7.0.
Changelog
Sourced from sshd-mina's changelog.
... (truncated)
Commits
2772c7c
[maven-release-plugin] prepare release sshd-2.7.0c5500e9
Add changelog for 2.7.09a724be
[SSHD-525] Server side implementation of posix-rename@openssh.com4dad0d7
[SSHD-1145] Deprecate ReflectionUtils#isClassAvailable and use ThreadUtils#re...db7cbdc
[SSHD-1158] Don't send channel EOF after having received channel CLOSE60b50f9
[SSHD-1141] DefaultClientKexExtensionHandler: ensure list is modifiable797d887
Updated Netty version to 4.1.634bfeca3
Updated PMD version to 6.33.0f7a2ae3
Updated Checkstyle version to 8.41.10a3f5da
Updated Spring Core version to 5.3.6Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/eclipse-arrowhead/core-java-spring/network/alerts).