Fix for FormatTable remote deserialization regression#9116
Fix for FormatTable remote deserialization regression#9116adityapatwardhan merged 11 commits intoPowerShell:masterfrom PaulHigin:fix-runspacepool-restriction
Conversation
src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs
Outdated
Show resolved
Hide resolved
Co-Authored-By: PaulHigin <[email protected]>
iSazonov
left a comment
There was a problem hiding this comment.
LGTM with one minor comment.
src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs
Show resolved
Hide resolved
|
@adityapatwardhan Can this PR be merged? |
|
Hello, so is this fixed for the PS version 5.1? Or will this be something that we will have to the Core or PS 7 to get it working? How do I patch or update my desktop so that this issue is fixed and I can continue using my scripts on PS 5.1? Thanks |
|
This was also fixed in PS v5.1 in Win 10 1903. There's a separate issue with ISE that's being fixed. |
Hello @SteveL-MSFT , you mentioned that the fix was provided in PS v5.1 in Win 1903 and I provided you with a proof that I am experiencing the same issue running the version it should be fixed in. Can you please point me in a direction where I can look up what update I need to apply to either the PS or Win to get this issue resolved? |
|
@BadSqlPro looks like this is in build 18892 or newer. You can workaround the issue by explicitly using |



A recent accessibility change has caused a regression in PowerShell remoting between machines with and without the change. The change is a new
RepeatHeaderproperty added to the TableHeaderInfo class. When formatting objects are returned through the remoting channel, the client expects to seeRepeatHeaderproperty in the serialized TableHeaderInfo object and throws when it is missing.Fix is to allow this serialized property to be null and use 'false' as the default value for the property.
Repro:
PR Context
This breaks down level system remoting compatibility, and throws a terminating error whenever formatting objects are returned through the remoting layer.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.[feature]to your commit messages if the change is significant or affects feature tests