-
Notifications
You must be signed in to change notification settings - Fork 206
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
Fixed crashes on some SOAP 1.2 requests when using GetBufferedInputStream #1811
Conversation
Thanks for your contribution @theiji! Update: I'm currently working on Request Body capturing for .NET Framework (#379) and the underlying issue here is an interesting test case in this scenario (see also #1759 (comment)). |
@theiji I was able to verify your fix - thanks again! |
FYI @gregkalapos - I was able to reproduce the issue and verify the fix provided here. This leaves the underlying stream in a "half-read" state that, later on, causes the internal server error. By making sure that the stream is read to the end at all times, this issue is fixed. |
💚 CLA has been signed |
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.
LGTM!
(It looks like you still need to sign the CLA though @theiji)
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.
LGTM as well.
@theiji please make sure you use the same e-mail address that you used for your commits when you sign the CLA - it’s here in the 2. line.
We can merge once the CLA is signed.
@gregkalapos @z1c0 sorry. CLA signed |
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.
Thanks for signing the CLA @theiji.
There is one minor issue with the changed test - details below. Sorry for missing that previously; I just noticed that after CI ran the PR (it wasn't running the PR previously due to the missing CLA).
@@ -26,12 +26,15 @@ public SoapRequestTests(ITestOutputHelper xUnitOutputHelper) | |||
/// to parse the parameters for the web method. | |||
/// </summary> | |||
[AspNetFullFrameworkFact] |
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.
[AspNetFullFrameworkFact] | |
[AspNetFullFrameworkTheory] |
Currently it fails:
System.InvalidOperationException : [Fact] methods are not allowed to have parameters. Did you mean to use [Theory]?
Due to the new parameter, it needs to be AspNetFullFrameworkTheory
@gregkalapos done |
Thanks for hanging on @theiji - merge is imminent :-) |
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.
Thanks for your contribution @theiji!
This fixes issue 1759 crashes on some SOAP 1.2 requests when using GetBufferedInputStream