Skip to content
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

Fix a json serializer bug. #6722

Merged
merged 17 commits into from
Jan 8, 2024
Merged

Fix a json serializer bug. #6722

merged 17 commits into from
Jan 8, 2024

Conversation

fangyangci
Copy link
Contributor

@fangyangci fangyangci commented Dec 31, 2023

Fixes #6723

Description

The streamingSession is using System.Text.Json to Deserialize string.
But, in libraries/Microsoft.Bot.Streaming/Payloads/Models/StreamDescription.cs (line 28), it using JsonProperty.
So, all the StreamContent type property will be lost.

Specific Changes

Using Newtonsoft.Json Instead of System.Text.Json.

Testing

Test locally, with attachment transfer to bot by websocket.

@fangyangci fangyangci requested a review from a team as a code owner December 31, 2023 15:01
@tracyboehrer tracyboehrer merged commit c0917dd into microsoft:main Jan 8, 2024
9 of 12 checks passed
tracyboehrer pushed a commit that referenced this pull request Jan 24, 2024
* fixUSGovSingleTenant

* Add UT

* AseChannelValidation

* Add UT

* Rollback AuthTenant Property Name

* The Ctor do contains the old ones, Add Ctor to ApiCompatBaseline

* fix a coding mistake

* fix json Serializer bug

* 1

* fix setting
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.

StreamingSession json serializer bug (Lost property ContentType).
2 participants