Skip to content

Fail with a friendlier error message when response has not been set - #1245

Merged
WojciechNagorski merged 2 commits into
sshnet:developfrom
Rob-Hague:keyboardinteractivenullresponse
Dec 2, 2023
Merged

WojciechNagorski merged 2 commits into
sshnet:developfrom
Rob-Hague:keyboardinteractivenullresponse

Conversation

@Rob-Hague

Copy link
Copy Markdown
Collaborator

...in keyboard-interactive mode.

Closes #1237
Closes #382

@WojciechNagorski

Copy link
Copy Markdown
Collaborator

Is there a possibility to add a test for that?

@Rob-Hague

Rob-Hague commented Nov 18, 2023

Copy link
Copy Markdown
Collaborator Author

I wrote a unit test, but there were several issues with using a mocked ISession relating to visibility.

I felt that an integration test was a bit heavy for this, but I'll look at adding one anyway.

Comment thread test/Renci.SshNet.IntegrationTests/AuthenticationTests.cs Outdated
Comment thread src/Renci.SshNet/KeyboardInteractiveAuthenticationMethod.cs
@scott-xu

scott-xu commented Nov 27, 2023

Copy link
Copy Markdown
Collaborator

What about separate the two

– Response null check

  • IReadOnlyList and order removal

@Rob-Hague

Copy link
Copy Markdown
Collaborator Author

I'll just add the order by back. There is no need to waste time on this

Comment thread src/Renci.SshNet/KeyboardInteractiveAuthenticationMethod.cs Outdated
@Rob-Hague
Rob-Hague force-pushed the keyboardinteractivenullresponse branch from 1edc34f to dff8fe4 Compare November 27, 2023 18:01
@WojciechNagorski
WojciechNagorski merged commit a027c76 into sshnet:develop Dec 2, 2023
@Rob-Hague
Rob-Hague deleted the keyboardinteractivenullresponse branch December 2, 2023 15:33
@WojciechNagorski WojciechNagorski added this to the 2023.0.1 milestone Dec 20, 2023
@WojciechNagorski

Copy link
Copy Markdown
Collaborator

The 2023.0.1 version has been released to Nuget: https://www.nuget.org/packages/SSH.NET/2023.0.1

This was referenced Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

String reference not set to an instance of a String. Parameter name: s - version 2020.0.2 String Reference not set to an instance of a String: Parameter name: s

4 participants