Commit Graph
625 Commits
Author SHA1 Message Date
dotnet-bot a4819aef80 Updating CoreFx dependencies to beta-24221-02
Commit migrated from https://github.com/dotnet/corefx/commit/818ad5af9340661114d112e6f7d511e380bc4f81
2016-06-21 07:17:46 +00:00
Matt Galbraith 1a00d4e5b6 Update references to Microsoft.DotNet.BuildTools.TestSuite to a version that understands uap10.0, add version validation rule for same.
Update reference to Xunit.Console.Netcore to pick up new version which does not throw if Console Color APIs do.


Commit migrated from https://github.com/dotnet/corefx/commit/91260ea102e681b16864596f0b9b2f14d3be82be
2016-06-20 16:49:13 -07:00
Stephen Toub 715ce22c00 Merge pull request dotnet/corefx#9548 from ellismg/port-http2-debian-test-fix
Allow the HTTP2 protocol test to pass with untrusted chains on Debian.

Commit migrated from https://github.com/dotnet/corefx/commit/12f1d055b4ac1ed41b1e4501e2a10a3cc24fc305
2016-06-20 16:06:52 -04:00
Stephen Toub def7b43d50 Mark another ActiveIssue
Commit migrated from https://github.com/dotnet/corefx/commit/daa30fcf33d57203456ed6c0ce8c42650074d5db
2016-06-20 14:48:11 -04:00
Stephen Toub 7295751d20 Separate diagnostics tests into their own class
The only change to the logic is that the tests now use RemoteInvoke to run each test in its own process, so as to avoid EventSource and DiagnosticSource interference.

Also removed the xunit attributes from the assembly that prevented parallelization.  It's no longer needed as of this change.


Commit migrated from https://github.com/dotnet/corefx/commit/542d85e15bfe5fdeb59d7e6f7fb3b15a08640ebd
2016-06-20 14:13:10 -04:00
Jeremy Barton 18178d80e2 Allow the HTTP2 protocol test to pass with untrusted chains on Debian.
The TLS context is set up to make this chain:
  CN=http2.akamai.com, O=Akamai Technologies Inc., L=Santa Clara, S=CA, C=US
  CN=Verizon Akamai SureServer CA G14-SHA2, OU=Cybertrust, O=Verizon Enterprise Solutions, L=Amsterdam, C=NL
  CN=Baltimore CyberTrust Root, OU=CyberTrust, O=Baltimore, C=IE
  CN=GTE CyberTrust Global Root, OU="GTE CyberTrust Solutions, Inc.", O=GTE Corporation, C=US

making use of the cross-signed Baltimore CyberTrust Root certificate.
Unfortunately, that chain is not trusted on Debian 8.4 (GTE CyberTrust Global Root was removed), and a combination of data and installed software results in the valid chain using the self-signed Baltimore root is never built.

To prevent this situation from making the tests show as a failure, selectively allow Debian 8 to succeed on an incomplete chain.


Commit migrated from https://github.com/dotnet/corefx/commit/316370ac1d58a90f6788ecb924b41cc93aec043e
2016-06-20 10:55:52 -07:00
Stephen Toub e9cc8f37c8 Merge pull request dotnet/corefx#9544 from stephentoub/clientcert_test
Tweak HTTP client certificates test and add ActiveIssue

Commit migrated from https://github.com/dotnet/corefx/commit/f42926c99b7d5311b61065b347fc05f7b911671a
2016-06-20 13:27:22 -04:00
Stephen Toub 5a23884046 Tweak HTTP client certificates test and add ActiveIssue
With forced GC/finalization at the right moment, the test currently fails on Windows.


Commit migrated from https://github.com/dotnet/corefx/commit/4cdb8dc1ba73ef02ef719b9a0ee336dbefca3b10
2016-06-20 08:37:30 -04:00
Eric St. John 01ee645e45 Update CoreFx packages to beta-24217-04
Commit migrated from https://github.com/dotnet/corefx/commit/35ee6b6688b57d0b445a252160a922404c35af5e
2016-06-17 15:01:55 -07:00
Eric St. John 45ad837e55 Build product assemblies against stable packages
I'm leaving tests compiling against pre-release.  Once we have a
new build of "beta" packages we'll need to update tests to those
versions.


Commit migrated from https://github.com/dotnet/corefx/commit/7cf5bb608f8da26730bdaf8864b2ddb68735cb38
2016-06-16 16:03:54 -07:00
Eric St. John 3b1d041ed2 Bump versions across corefx and move to beta
Now that we have stable packages for our current versions we need to
bump the 3rd portion (bugfix) to represent code-changes without API
additions.


Commit migrated from https://github.com/dotnet/corefx/commit/92a411776004239482ba1b5032afc8483518810c
2016-06-16 16:03:53 -07:00
Stephen Toub ca016defa0 Merge pull request dotnet/corefx#9446 from davidsh/flow_timeouts
Flow HttpClient timeouts and cancellation to the response stream

Commit migrated from https://github.com/dotnet/corefx/commit/cffe60fcec1f85f755f41562b0c207700fdbc043
2016-06-15 22:36:12 -04:00
Stephen Toub 331ede43ee Flow HttpClient timeouts and cancellation to the response stream
Basically this is the same as PR dotnet/corefx#9102.  We reverted that PR when the
internal ToF tests started failing. But it was determined that the
failure was due to infrastructure which is now fixed via
https://github.com/dotnet/coreclr/pull/5695


Commit migrated from https://github.com/dotnet/corefx/commit/48ab6ce6334db48cc83ddf41bf2a63e45192d2ae
2016-06-15 14:38:43 -07:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Stephen Toub 8f623a92be Override HttpContent.CreateContentReadStreamAsync in MultipartContent
MultipartContent doesn't override CreateContentReadStreamAsync.  This means that a ReadAsStreamAsync operation will end up serializing all of the content to a MemoryStream, which can be problematic for very large content, preventing such content from being uploaded with some HttpClientHandlers.  This change overrides CreateContentReadStreamAsync to use a custom stream that delegates to all of the inner streams from each content.


Commit migrated from https://github.com/dotnet/corefx/commit/b1d20b427fb68f468740b5ad55c04d41064e1396
2016-06-14 23:23:47 -04:00
Stephen Toub 0356525238 Updating CoreFx dependencies to rc4-24215-01
Commit migrated from https://github.com/dotnet/corefx/commit/8539c5c0e3fc42084ac06d7e4b6734df7fcf2932
2016-06-14 22:31:09 -04:00
Stephen Toub b47f847ea3 Merge pull request dotnet/corefx#9421 from dotnet-bot/UpdateDependencies20160614071234
Updating CoreFx dependencies to rc4-24214-04

Commit migrated from https://github.com/dotnet/corefx/commit/0747c3a2b3f6fb9859bf85173652d69f56a540d3
2016-06-14 18:42:19 -04:00
Stephen Toub 4641b747a8 Merge pull request dotnet/corefx#9414 from stephentoub/test9357
Add test for posting FormUrlEncodedContent with HttpClient

Commit migrated from https://github.com/dotnet/corefx/commit/56c1611d51121d0e1fe951e68f198cbd1bedea15
2016-06-14 15:24:59 -04:00
dotnet-bot 73b89266d0 Updating CoreFx dependencies to rc4-24214-04
Commit migrated from https://github.com/dotnet/corefx/commit/c7fb2cef475f365a384d53b26d4c5612c91fff62
2016-06-14 19:12:33 +00:00
Stephen Toub eb6984022d Add test for dotnet/corefx#9357
Commit migrated from https://github.com/dotnet/corefx/commit/ab02479780441c1ab1b995e50492c592fbc9f7a9
2016-06-14 11:06:36 -04:00
dotnet-bot 73e2af0256 Updating CoreFx dependencies to rc4-24214-03
Commit migrated from https://github.com/dotnet/corefx/commit/22efb2a5f992c25a9f215a13968d14c6903aa1d4
2016-06-14 13:14:07 +00:00
Stephen Toub 383e5f2e4a Update CoreFX and External Dependencies to 24214-02 and 24214-00
Commit migrated from https://github.com/dotnet/corefx/commit/d5dcad160fbe8b7a8cb4e37cda58b9beac5da47d
2016-06-14 07:14:56 -04:00
dotnet-bot fdc79eb15e Updating CoreFx dependencies to rc4-24213-04
Commit migrated from https://github.com/dotnet/corefx/commit/50ef40f12ed40a7c497169826297ac61a121aa26
2016-06-13 19:18:43 +00:00
dotnet-bot f66c7664ff Updating CoreFx dependencies to rc4-24213-03
Commit migrated from https://github.com/dotnet/corefx/commit/210cf6dd24dac2e501d64079e922c9d9313ab56b
2016-06-13 13:11:54 +00:00
Stephen Toub 1d68eee786 Updating CoreFx dependencies to rc4-24213-02
Commit migrated from https://github.com/dotnet/corefx/commit/05b479256dfa89188c5cd66579114eb21794a6b2
2016-06-13 06:15:41 -04:00
dotnet-bot 246d7a0437 Updating CoreFx dependencies to rc4-24212-04
Commit migrated from https://github.com/dotnet/corefx/commit/a393af011454c8cdfe7c2e7ea2c1c295f8a4d61d
2016-06-12 19:09:29 +00:00
Stephen Toub e04f66a95b Updating CoreFx dependencies to rc4-24212-03
Commit migrated from https://github.com/dotnet/corefx/commit/b2ae3de5c802c7c62a85f342e9510b7e3aeb910a
2016-06-12 10:56:11 -04:00
dotnet-bot eb296c0c86 Updating CoreFx dependencies to rc4-24211-02
Commit migrated from https://github.com/dotnet/corefx/commit/9ee0ac2dee8360086f545ae9b7ebf183312146ea
2016-06-11 07:19:19 +00:00
David Shulman 07871d1746 Merge pull request dotnet/corefx#9179 from justinvp/cookiecomparer
Make the internal CookieComparer class static

Commit migrated from https://github.com/dotnet/corefx/commit/bd1bac7f566cb5e9e984b0b67cdb55dcc1d91d94
2016-06-10 20:21:20 -07:00
Stephen Toub a0cec1f795 Merge pull request dotnet/corefx#9322 from dotnet-bot/UpdateDependencies20160610014414
Updating CoreFx dependencies to rc4-24210-04

Commit migrated from https://github.com/dotnet/corefx/commit/fdba5487475388b48e19820476e25f2466ca80d9
2016-06-10 14:03:30 -04:00
Stephen Toub dccbf3a89d Updating CoreFx dependencies to rc4-24210-04
Commit migrated from https://github.com/dotnet/corefx/commit/3473c3dce764e2aa30497e0476acdac8298822ed
2016-06-10 12:48:41 -04:00
Stephen Toub e7fad1b9dc Fix hanging System.Net.Http test
We've been plagued for the last few weeks by CI jobs on Windows that hang in System.Net.Http.Functional.Tests, causing the whole job to fail after it eventually times out after two hours. I managed to find a CI server that had a process still alive after having experienced the hang and was able to debug it.  The Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses test is creating three loopback servers and using HttpClient.GetAsync to access each of them.  It's then Disposing of the HttpClient to verify that requests which should have been canceled are canceled.  The problem is that there's a race condition.  We may end up canceling one of the requests before it even gets a chance to connect to the server.  As a result, the server remains stuck in an asynchronous accept on it socket, and at the end of the test, we're waiting for all of the servers to shutdown... deadlock.  The fix is simple: don't wait for the servers... we don't care about their results, and they'll all be torn down when we exit the inner delegate.


Commit migrated from https://github.com/dotnet/corefx/commit/99b7b5a9b9f23e8b94bd8c75ecf86bb71d24b6c4
2016-06-10 11:29:49 -04:00
Stephen Toub 7e6d3a0a5b Merge pull request dotnet/corefx#9316 from dotnet-bot/UpdateDependencies20160610080826
Updating CoreFx dependencies to rc4-24210-03

Commit migrated from https://github.com/dotnet/corefx/commit/d5572dcbd047782c8b1be93c5d729e09d0c2b837
2016-06-10 05:16:26 -04:00
Stephen Toub b4662ed689 Merge pull request dotnet/corefx#9282 from stephentoub/change_curl_seek
Change how request content is read in libcurl

Commit migrated from https://github.com/dotnet/corefx/commit/0606a316743a63b33287247d64382b6f7474b8bc
2016-06-10 05:03:00 -04:00
dotnet-bot 1a3d275bc9 Updating CoreFx dependencies to rc4-24210-03
Commit migrated from https://github.com/dotnet/corefx/commit/2358285c88c2055040b979b87475cdfbc14ada1b
2016-06-10 08:08:26 +00:00
Stephen Toub eb1d4e0d0a Add another test
This simply posts to a location that will redirect, with several hundred K of data in the request body. It reliably fails for me before the change and reliably succeeds after.


Commit migrated from https://github.com/dotnet/corefx/commit/a97d15faa7d90bae430ae920a251c23010869a22
2016-06-09 13:39:31 -04:00
David Shulman 69b587d6cf Merge pull request dotnet/corefx#8575 from davidsh/maxresponseheaderslength_uwp
Update netcore50 MaxResponseHeadersLength property

Commit migrated from https://github.com/dotnet/corefx/commit/a6fc5237f0db5dc7aecf128bbb5dd7bbe570d495
2016-06-09 09:21:41 -07:00
Stephen Toub 3d6037f313 Change how request content is read in libcurl
libcurl wants to be able to call back to CurlHandler at arbitrary times to ask it to seek in the request content stream.  This can happen for redirects, for auth challenges, etc.  Handling this has been a challenge due to the way HttpContent is designed.

HttpContent provides two modes for accessing the data via Streams:
- Push: You call CopyToAsync(Stream, TransportContext) to have the data from the HttpContent copied into the target stream.
- Pull: You call ReadAsStreamAsync to get a stream that represents the data in the HttpContent, and you can read from that.

The pull model is ideal for libcurl.  It allows us to get a stream which we can jump around in if it's seekable, and we can request a new stream if it's not seekable. The push model is challenging, as we're forced to put in plcae an intermediary, a push-pull adapter that let's us effectively read from a type that's trying to write to us.

There is however an issue with the pull model.  With the push model, StreamContent's CopyToAsync tracks whether the stream has already been accessed, and if it has and if it's non-seekable, trying to call CopyToAsync again throws to alert you that rewinding simply isn't possible.  The pull StreamContent's ReadAsStreamAsync, however, does not.  This means that if you get a non-seekable stream and you call ReadAsStreamAsync again, you get back the same stream (or, rather, a read-only wrapper around the same stream) that is at the existing position rather than the original position.  Then resending that content will end up sending less data than it should have, resulting in failure, just not abruptly.

That issue caused us to go down the path of the more challenging push model and trying to use CopyToAsync.  However, recently that's been shown to have even worse effects.  We don't have the ability to cancel CopyToAsync, which means that if the first copy is still in-flight when we try to seek, we have no choice but to fail, even if the stream is actually seekable, as most are (e.g. memory streams, file streams, etc.)  This can happen deterministically in cases where libcurl decides to redirect before it's fully sent the request content, but it's also prone to race conditions even for cases where the request content is fully sent but the copy hasn't been officially marked as complete by the time libcurl tries to redirect.   ASP.NET recently began hitting this frequently on some machines in their lab runs.

While there's no perfect solution, the best solution is to go with the one that's the simplest code, the fastest code, and the deterministic outcome: the pull model.  This commit deletes a whole bunch of code that was there in support of the push model, adds just a bit of code to enable the pull model, and fixes up a couple of tests that were written to expect the push model.


Commit migrated from https://github.com/dotnet/corefx/commit/74cd3d619b3d3b1e963ca8bd33749af3aec99c05
2016-06-09 10:18:19 -04:00
dotnet-bot ed36474dbf Updating CoreFx dependencies to rc4-24209-03
Commit migrated from https://github.com/dotnet/corefx/commit/4786e13a70b20350f77d047624384090341acfa1
2016-06-09 13:19:12 +00:00
David Shulman dfba8a47c7 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/ffe1b9d0cd94cb6c431b700c42b270037f6a1f79
2016-06-08 12:48:43 -07:00
David Shulman 7a33ae7d77 Update comment about netcore50 MaxResponseHeadersLength property
Windows.Web.Http is built on WinINet. There is no maximum limit (except
for out of memory) for received response headers. So, returning 0
(indicating no limit) is appropriate.

Fixes dotnet/corefx#8541.


Commit migrated from https://github.com/dotnet/corefx/commit/9883a1064c1119eaa885e5b4cff20177f0f928fe
2016-06-08 12:46:25 -07:00
dotnet-bot 2e6b9dc990 Updating CoreFx dependencies to rc4-24208-04
Commit migrated from https://github.com/dotnet/corefx/commit/02515a1ace7d60e2b8b63c4b80427b0a1275503c
2016-06-08 18:43:01 +00:00
Wes Haggard cd52f14fb9 Merge pull request dotnet/corefx#9233 from chcosta/nethttp_repro
Remove keepallprojectreferences from system.net.http and system.net.security tests

Commit migrated from https://github.com/dotnet/corefx/commit/fc88bf49cf8cdaa6c5484b3e19f8f17cccd50fbb
2016-06-07 23:04:01 -07:00
Jeremy Barton cef32c6d79 Merge pull request dotnet/corefx#9226 from bartonjs/reduce_build_warnings
Fix dependency conflict warnings

Commit migrated from https://github.com/dotnet/corefx/commit/9fb78b52a0f04e56fd69f57209107163410a6b07
2016-06-07 15:10:20 -07:00
Stephen Toub 2cbd59ef6f Merge pull request dotnet/corefx#9208 from stephentoub/fix_header_parsing
Allow whitespace after HTTP response header name

Commit migrated from https://github.com/dotnet/corefx/commit/ca0075eda676f9a35f43a0c6994fc08c0b1981b3
2016-06-07 13:19:37 -04:00
Christopher Costa 80bca9a4b4 Remove keepallprojectreferences
Commit migrated from https://github.com/dotnet/corefx/commit/25d4dbf46ed63abd4ff96a8f855f21c4420ae597
2016-06-07 10:15:34 -07:00
Jeremy Barton eb5dcf3203 Fix dependency conflict warnings
The upgrade to netstandard1.6 seems to have caused some newer libraries to be preferred.


Commit migrated from https://github.com/dotnet/corefx/commit/4b2af116dd90c5b6a3faca4e87b2e86582e5089d
2016-06-07 09:48:13 -07:00
Stephen Toub 2f0636a244 Allow whitespace after HTTP response header name
Be a bit more lenient in what we allow in the formatting of response headers on Unix. The RFC states that "Each header field consists of a case-insensitive field name followed by a colon (":"), optional leading whitespace, the field value, and optional trailing whitespace." However, whitespace between the header name and the colon is accepted by WinHttpHandler, by the .NET Framework, and by all browsers on which I tried it, and servers can easily include such whitespace; if they do and we're not tolerant of it, requests to such servers will fail.


Commit migrated from https://github.com/dotnet/corefx/commit/888a01cbcb1a98377ebf6e87e89a2551aac1654d
2016-06-07 09:38:20 -04:00
dotnet-bot 349036ec6b Updating CoreFx dependencies to rc4-24207-03
Commit migrated from https://github.com/dotnet/corefx/commit/dbc9db2a3378417434c4fb9e531a788d14eb9621
2016-06-07 13:21:03 +00:00
dotnet-bot 19fa55e533 Updating CoreFx dependencies to rc4-24207-02
Commit migrated from https://github.com/dotnet/corefx/commit/1ad197d9386e4d5dcd6e2bfdc5ed753a0f965893
2016-06-07 07:19:35 +00:00