updates jsch version and fixes test to match exception correctly#389
updates jsch version and fixes test to match exception correctly#389int128 merged 4 commits intoint128:masterfrom
Conversation
|
@int128 I believe I fixed the build issue. The actions in my Repo completed successfully. |
|
wait. I missed the release actions file. I will correct that too |
|
ok, that should be all the gradle build actions. |
173a93a to
2b14289
Compare
|
rebased to current master |
|
My $0.02: looks good. Is that change in exception from |
|
Based on what I see in the change logs and java docs, all Identity Passphrase related errors should always have thrown |
|
Findings for change from
This given the difference in stack traces, this looks like an intentional fix on their part to accomplish 2 goals:
You can see that the new exception is happening later in the process when the connection is established instead of at the configuration point. |
|
also took the opportunity to add the exception message to the test case validation. |
|
Thank you for the robust documentation. That clears up any uncertainty I have about it. |
|
@int128 , is there anything else I should do for this? |
|
Thank you very much! |
Fixes #301
Fixes #308
Fixes #356
0.2.5to the latest0.2.23. This addresses CVE-2023-48795 which was fixed in jsch-0.2.15 and adds in support for many new algorithmsSteps to verify the fix
IllegalArgumentException, but with the bump a correctedJSCHExceptionis thrown with the message "AUTH FAIL"gradle buildand confirmed all tests passed// Paste the snippetBackward compatibility
If someone is expecting an "IllegalArgumentException" on wrong passphrases for ssh keys, they will need to change their exception to the JSCHException.