-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCP user friendly exceptions #401
Comments
Actually, this is does not seem to a MINA SSHD issue but rather a specific server issue - see especially PR#428 where a missing remote file is actuall signalled as a WARNING by the OpenSSH server rather than an ERROR. Furthermore, the SCP protocol does not really provide a good mechansim for specific errors - at most, some text after the ERROR stats - which most clients (jncluding us) ignore. |
If remember correctly when I played with this, I also tested the SCP client shipped with Windows MinGW. That was working better with more specific/user friendly erros. I can try to reproduce the issue again and post the logs from that client. |
Here is an example of an error from a different scp client:
Something more verbose:
I've removed the key handshake bits for brevity. |
This log does not reveal what is being transmitted at the low-level SCP protocol |
Version
2.10.0
Bug description
When using the SCP client to upload a file to a remote location that does not exist a
WindowClosedException
is raised instead of a more user friendly SCP exception detailing the reason of why the upload/download failed.The snippet of code below raises a
WindowClosedException
exception when/remote/path/that/does/not/exist
doesn't exist.Actual behavior
Expected behavior
a
SCPException
or even a basicIOException
with a more relevant message:Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: