Skip to content

Fix null reference exception for Streaming null object (#14004) #14515

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

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

BrennanConroy
Copy link
Member

Description

In 2.2 we added Server-to-client streaming as well as the ability to accept a CancellationToken in your streaming hub methods so you can observe when the stream has been canceled by the client.
There is a bug where if the user provides null as one of the values to an argument to the hub method then we will nullref and return an error to the client.

Customer Impact

This was a customer reported issue.
If someone passes a null object (which is a valid scenario) to a streaming hub method that accepts a CancellationToken they will get a null ref on the server and the method will not be invoked.

Regression?

No, this has been a bug since the feature was introduced in 2.2.

Risk

Low, added test coverage to prevent this kind of issue in the future

@Pilchie I believe we need your approval for bug fixes

@BrennanConroy BrennanConroy added area-signalr Includes: SignalR clients and servers ask-mode This issue / PR is a patch candidate which we will bar-check internally before patching it. labels Sep 27, 2019
@BrennanConroy BrennanConroy added this to the 3.1.0-preview1 milestone Sep 27, 2019
@analogrelay
Copy link
Contributor

I presume our reasoning for only back-porting to 3.1 is that it's the LTS? Both 2.2 and 3.0 are "Current" releases, so we don't feel a need to back-port there because of the limited lifetime of those releases?

@BrennanConroy
Copy link
Member Author

I presume our reasoning for only back-porting to 3.1 is that it's the LTS?

That was my reasoning

@Pilchie
Copy link
Member

Pilchie commented Sep 27, 2019

Approved.

@BrennanConroy BrennanConroy changed the base branch from release/3.1 to release/3.1-preview1 October 1, 2019 16:19
@JunTaoLuo JunTaoLuo merged commit fa93369 into release/3.1-preview1 Oct 1, 2019
@JunTaoLuo JunTaoLuo deleted the brecon/backportNull branch October 1, 2019 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers ask-mode This issue / PR is a patch candidate which we will bar-check internally before patching it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants