-
Notifications
You must be signed in to change notification settings - Fork 566
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
Fix xml serializer encoding #3891
Conversation
… FixEnableUnsecuredResponse
[P2] Support System.ServiceModel.Channels.BinaryMessageEncodingBindin…
[P2] Support System.ServiceModel.Security.SecurityKeyEntropyMode dotnet#3862
* Tracked by work item dotnet#3865
…curityTokenParameters dotnet#3864
…tion Add S.SM.S.SecurityTokenParameters to the public contract.
@@ -83,7 +90,8 @@ protected override void AddHeadersToMessage(Message message, MessageDescription | |||
MemoryStream memoryStream = new MemoryStream(); | |||
XmlDictionaryWriter bufferWriter = XmlDictionaryWriter.CreateTextWriter(memoryStream); | |||
bufferWriter.WriteStartElement("root"); | |||
serializer.Serialize(bufferWriter, headerValues, null); | |||
// serializer.Serialize(bufferWriter, headerValues, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed entirely.
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Outdated
Show resolved
Hide resolved
Just a couple initial nits, @mconnew or I will do a little deeper review in the next day or so. |
[P2] Support System.ServiceModel.Security.Tokens.SecureConversationSe…
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Outdated
Show resolved
Hide resolved
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Outdated
Show resolved
Hide resolved
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Show resolved
Hide resolved
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Show resolved
Hide resolved
@maheshnlrb, I've verified you have fixed all the places where code is missing. |
@maheshnlrb, it looks like you need to rebase your branch as github has found some conflicts and can't automatically merge your fixes. |
@mconnew, I merged wcf/mater to my branch, but I am getting lot of errors while package restore. What do I need to do to fix this? |
@maheshnlrb, I don't know what's going on. Did you try cleaning your workspace? Also I always rebase instead of merging as I've had better luck with that. But once you've merged, rebasing afterwards can mess things up. |
* Also had to make the class public in the implementation.
* Update dependencies from https://github.com/dotnet/arcade build 20190909.10 - Microsoft.DotNet.XUnitExtensions - 2.4.1-beta.19459.10 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19459.10 - Microsoft.DotNet.GenFacades - 1.0.0-beta.19459.10 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19459.10 - Microsoft.DotNet.SignTool - 1.0.0-beta.19459.10 * Update dependencies from https://github.com/dotnet/arcade build 20190910.3 - Microsoft.DotNet.XUnitExtensions - 2.4.1-beta.19460.3 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19460.3 - Microsoft.DotNet.GenFacades - 1.0.0-beta.19460.3 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19460.3 - Microsoft.DotNet.SignTool - 1.0.0-beta.19460.3 * Update dependencies from https://github.com/dotnet/arcade build 20190911.7 - Microsoft.DotNet.XUnitExtensions - 2.4.1-beta.19461.7 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19461.7 - Microsoft.DotNet.GenFacades - 1.0.0-beta.19461.7 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19461.7 - Microsoft.DotNet.SignTool - 1.0.0-beta.19461.7
…lrb/wcf into FixXmlSerializerEncoding # Conflicts: # src/System.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
...m.Private.ServiceModel/src/System/ServiceModel/Dispatcher/XmlSerializerOperationFormatter.cs
Show resolved
Hide resolved
@@ -236,7 +243,7 @@ protected override void GetHeadersFromMessage(Message message, MessageDescriptio | |||
if (!bufferReader.IsEmptyElement) | |||
{ | |||
bufferReader.ReadStartElement(); | |||
object[] headerValues = (object[])serializer.Deserialize(bufferReader); | |||
object[] headerValues = (object[])serializer.Deserialize(bufferReader, isEncoded ? GetEncoding(message.Version.Envelope) : null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as other comment, should be _isEncoded
The build errors are because of the name change from Once that is fixed we just need to clean-up the commit history mess. |
* This fix was initially produced by @maheshnlrb with PR dotnet#3891 but the commit history got sufficiently scrambled that is was easier to reproduce his changes in a clean up-to-date branch.
I created a new PR #4001 with a clean commit history. |
* This fix was initially produced by @maheshnlrb with PR dotnet#3891 but the commit history got sufficiently scrambled that is was easier to reproduce his changes in a clean up-to-date branch.
* This fix was initially produced by @maheshnlrb with PR dotnet#3891 but the commit history got sufficiently scrambled that is was easier to reproduce his changes in a clean up-to-date branch.
For #3870