Bug 45667

Summary: [New Web Stack] Send Http Put request to server redirect URL, I got error “This request requires buffering of data to succeed”.
Product: [Mono] Class Libraries Reporter: lzhi
Component: System.Net.HttpAssignee: Brendan Zagaeski (Xamarin Team, assistant) <brendan.zagaeski>
Status: RESOLVED FIXED    
Severity: normal CC: martin.baulig, masafa, mono-bugs+mono
Priority: ---    
Version: 4.4.2 (C7SR1)   
Target Milestone: Untriaged   
Hardware: Macintosh   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description lzhi 2016-10-18 20:08:00 UTC
When I send Http Put request to server redirect URL, I got error “This request requires buffering of data to succeed”.
Http Get with redirect works well and Put request to server without redirect works well
 
I have two test app here:
Server Test App:  https://github.com/zhili1208/MockServerOnMono/blob/master/MockServer/Program.cs#L15-L22
Push Client Test App: https://github.com/zhili1208/monoPushIssue/tree/master/MacPushTestApp
Comment 1 Marek Safar 2016-10-19 21:36:53 UTC
Could you also include command line arguments you are using for MacPushTestApp
Comment 2 lzhi 2016-10-19 22:13:06 UTC
you can remove apikey part, no need that here

So set here https://github.com/zhili1208/monoPushIssue/blob/master/MacPushTestApp/Program.cs#L16-L18 like this 

remove apikey
PathToPath = [some local nupkg path] like "/Users/username/Downloads/test.nupkg"
Source = "http://localhost:50231/redirect"
Comment 3 lzhi 2017-11-09 18:26:29 UTC
Ping... Does anyone look at this?
Comment 4 Marek Safar 2017-11-20 22:45:58 UTC
Brendan,

Could you try to reproduce this?
Comment 5 Martin Baulig 2017-12-11 20:38:20 UTC
I recently fixed this while working on the new web stack.
Comment 6 Martin Baulig 2017-12-11 20:40:39 UTC
We now have tests for this:
https://github.com/xamarin/web-tests/blob/master/Xamarin.WebTests.Framework/Xamarin.WebTests.TestRunners/HttpClientTestRunner.cs - see

	(HttpClientTestType.PutRedirect, HttpClientTestFlags.NewWebStack),

@Marek / @Brendan:
Yes, I can reproduce this.
Comment 7 Marek Safar 2018-03-13 12:28:29 UTC
Closing based on latest comments