Skip to content

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

Merged
danmoseley merged 1 commit into
release/6.0from
backport/pr-59957-to-release/6.0
Oct 6, 2021
Merged

[release/6.0] Fix byte array handling in STJ sourcegen#60004
danmoseley merged 1 commit into
release/6.0from
backport/pr-59957-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Oct 5, 2021

Copy link
Copy Markdown
Contributor

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

ghost commented Oct 5, 2021

Copy link
Copy Markdown

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:-

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

Copy link
Copy Markdown
Contributor

approved in mail

@danmoseley
danmoseley merged commit 299b9f9 into release/6.0Oct 6, 2021
@danmoseley
danmoseley deleted the backport/pr-59957-to-release/6.0 branch October 6, 2021 23:44
@ghostghost locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.JsonServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@danmoseley@eiriktsarpalis