Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Don't validate empty TransitionTimes on deserialization. #26405

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Aug 27, 2019

On Unix, TransitionTimes are not used, so they are left empty. When deserializing an empty TransitionTime, it is throwing an exception because those are not normally valid. Fix deserialization to not validate empty TransitionTimes.

Fix https://github.com/dotnet/corefx/issues/40578

Note: tests are added in dotnet/corefx#40637

On Unix, TransitionTimes are not used, so they are left empty. When deserializing an empty TransitionTime, it is throwing an exception because those are not normally valid. Fix deserialization to not validate empty TransitionTimes.

Fix dotnet/corefx 40578
@tarekgh
Copy link
Member

tarekgh commented Aug 27, 2019

Thanks @eerhardt for fixing it.

@jkotas jkotas merged commit 937f2f4 into dotnet:master Aug 28, 2019
@eerhardt eerhardt deleted the Fix40578 branch August 28, 2019 12:20
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…clr#26405)

On Unix, TransitionTimes are not used, so they are left empty. When deserializing an empty TransitionTime, it is throwing an exception because those are not normally valid. Fix deserialization to not validate empty TransitionTimes.

Fix dotnet/corefx 40578

Commit migrated from dotnet/coreclr@937f2f4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants