Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

PowerShell Core Dbg.Assert when it unmarshals results from PSRP #121

@dantraMSFT

Description

@dantraMSFT

For debug builds, WSManReceiveDataResult.Unmarshal hits a Dbg.Assert due the result data type being marked as Text instead of Binary (see https://github.com/PowerShell/PowerShell/blob/6febd1f8831ec4ab2127c4fef934484eb2ca374f/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs#L1937)

When debugging, the data is, in fact, binary and release builds work as expected since it doesn't validate the date type.

The impact is debug builds of PowerShell Core cannot be used with PSRP/Linux.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions