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

[release/6.0] Fix byte array handling in STJ sourcegen #60004

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 5, 2021

Backport of #59957 to release/6.0

/cc @eiriktsarpalis

Customer Impact

Fixes a bug where STJ sourcegen would incorrectly serialize byte[] instances as JSON arrays of numbers. This diverges from the default behavior of the reflection-based serializer which represents byte[] as Base64 encoded strings. It is currently not possible to roundtrip data written with the v5 reflection serializer. This is a customer reported issue.

Testing

Added tests validating the correct behavior.

Risk

Low. Makes minor interventions in product code that specifically addresses byte array Roslyn type symbol resolution.

@ghost
Copy link

ghost commented Oct 5, 2021

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #59957 to release/6.0

/cc @eiriktsarpalis

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Oct 6, 2021
@danmoseley
Copy link
Member

approved in mail

@danmoseley danmoseley merged commit 299b9f9 into release/6.0 Oct 6, 2021
@danmoseley danmoseley deleted the backport/pr-59957-to-release/6.0 branch October 6, 2021 23:44
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants