Bug 45667 - [New Web Stack] Send Http Put request to server redirect URL, I got error “This request requires buffering of data to succeed”.
Summary: [New Web Stack] Send Http Put request to server redirect URL, I got error “Th...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Net.Http (show other bugs)
Version: 4.4.2 (C7SR1)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Brendan Zagaeski (Xamarin Support)
URL:
Depends on:
Blocks:
 
Reported: 2016-10-18 20:08 UTC by lzhi
Modified: 2017-12-11 20:40 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.