Commit Graph

37440 Commits

Author SHA1 Message Date
Ryan Nowak 5a291d0bc0 Fix #4212 area ambient value page->controller
This change enhances our ambient value logic to also deal with required
values. In 2.2 we introduced a 'required values' semantic to allow route
values to appear "to the left" of a route pattern for the purpose of
ambient values copying. This is a complicated way of saying "when you
like to a different endpoint then discard the ambient values".

What we didn't consider is that some ambient values are special (like
area). So basically, we'll allow an ambient value to be used if it's
part of the required values - even if we've already decided to discard
the ambient values.

This is a pretty surgical fix and only affected the desired scenario
based on tests.

-----

I also removed an optimization that I think is broken. I put an earlier
optimization in place that attempted to count ambient values as they
were "seen" to try and avoid some extra copying. This copying loop has a
cost even if it no-ops which is what I was trying to prevent.

Unfortunately since we added 'required values' - it's now possible for
an ambient value to be double-counted, which makes this optimization
incorrect.
2019-02-11 15:58:33 -08:00
Pranav K 88ae930fad
Remove obsolete APIs from MVC (#7444)
* Remove obsolete APIs from MVC
Fixes https://github.com/aspnet/AspNetCore/issues/7322
2019-02-11 15:27:38 -08:00
Justin Kotalik e5f31f264c Another spot 2019-02-11 15:10:30 -08:00
N. Taylor Mullen dfddc4e8ff [MVC] Remove obsolete APIs
- Removed ViewsFeatureProvider
- Removed PageArgumentBinder and its internal implementation DefaultPageArgumentBinder.
- Removed corresponding test classes/methods for all the above.
- Reacted to class/member changes in dependencies.

#7326
2019-02-11 14:56:30 -08:00
Chris Ross 597c8434d5
Background Worker template (#7401) 2019-02-11 14:53:50 -08:00
Justin Kotalik 371c29577b Another spot 2019-02-11 14:42:02 -08:00
Justin Kotalik 84cdac952a AsTask => GetAsTask() 2019-02-11 13:58:25 -08:00
Chris Ross abd2a61bdb
Update Extensions dependencies (#7397) 2019-02-11 13:18:22 -08:00
David Fowler a5ba735a0f
Remove PlatformBenchmarks from sln (#7440) 2019-02-11 12:38:20 -08:00
Pavel Krymets 037a5b0231
Add more logging to a failing tests and move dumps to logs directory (#7462) 2019-02-11 12:14:05 -08:00
David Fowler 476a1827f4
Made changes to stream <-> pipe adapters (#7407)
- Use the array pool by default when the shared memory pool is specified for both the StreamPipeReader and StreamPipeWriter
- Support allocating unpooled memory if the StreamPipeWriter is asked for memory outside of the max pool size
2019-02-11 11:15:36 -08:00
Ben Adams 3276870d6a Remove unnecessary Flush (#7424) 2019-02-11 11:02:00 -08:00
Ben Adams 6d42ff7c38 Don't write empty data for Flush (#7415) 2019-02-11 11:01:36 -08:00
Javier Calvarro Nelson dbf746d210
[Antiforgery][Components][CORS] Remove obsolete APIs (#7459)
#7325
#7319
#7324
2019-02-11 10:38:31 -08:00
Doug Bunting 58e6d78549 Suppress Razor warnings about missing doc comments 2019-02-11 10:35:48 -08:00
Artak 7c9959934a Fixed a type reference in a doc comment.
Fixes #7416
2019-02-11 09:06:34 -08:00
Ben Adams 704094b199 Use C#7.3's ReadOnlySpan<byte> optimization for static data (#7422) 2019-02-11 07:40:40 -08:00
Martin Costello 762206a5d8 Fix typo in package description (#7435)
Fix incorrect spelling of "storage".
2019-02-10 16:25:57 -08:00
David Fowler 3be85751d5
Make Hosting.sln compile in vs (#7431) 2019-02-10 16:24:33 -08:00
kishanAnem c1ce7b9a77 ValidationSummary doesn't display property errors if ModelState and ModelMetadata meets the specific conditions #4831
Hi @dougbu

I removed test which is naming conflicts.
and closing #7221 PR
2019-02-09 13:11:07 -08:00
Martin Costello e465013063 Remove local item group (#7412)
Remove local development item group accidentally added by #7110.
2019-02-09 12:13:32 -08:00
Joni 9e06cfb7f8 Fix typo in HttpResponseWritingExtensions (#7413)
Fix typo WriteMutliSegmentEncoded => WriteMultiSegmentEncoded
2019-02-09 08:14:11 -08:00
David Fowler 8f49bdf195
More efficient preface parsing (#7406)
- Slice before turning the buffer into a Span
- Use SequenceEqual instead of a loop
2019-02-08 21:13:42 -08:00
Pranav K db7218b2fc
Consume Mono.WebAssembly.Interop from Extensions (#7290) 2019-02-08 17:37:36 -08:00
Justin Kotalik 35b99e44ce
Expose HttpResponse PipeWriter in Kestrel (#7110) 2019-02-08 17:24:26 -08:00
dotnet-maestro[bot] 7b3149af1e Update dependencies from 4 repositories (#7301) 2019-02-08 15:07:46 -08:00
Arthur Vickers 64e137ba38 Fix build break in Identity tests
By configuring the service provider warning to log instead of throw
2019-02-08 15:04:33 -08:00
Nate McMaster 0b0d5b98dc
Disable helix tests on Fedora.28 and 27 (#7399)
Something is wrong with the machines. All tests fail. Disabling to allow time for investigation without blocking PR checks.
2019-02-08 14:53:19 -08:00
Nate McMaster 37b28193c2
Update package branding to 3.0.0-preview3 (#7394) 2019-02-08 14:46:49 -08:00
BrennanConroy 2365dced43
Fix flaky process output reading for dotnet-watch tests (#7173) 2019-02-08 14:37:53 -08:00
BrennanConroy 01c5add273
Add CancelInvocation support to MsgPack in TS client (#7224) 2019-02-08 14:31:19 -08:00
Hao Kung 32da2679f8
Initial helix docs (#7369) 2019-02-08 12:50:03 -08:00
Nate McMaster 73843cc9a5
Account for transitive shared framework dependencies separately (#7392)
Put transitive external dependencies of the shared framework in a separate category, and don't reference them directly unless we are building a patch. This will help us find changes to dependencies, such as the removal of JSON.NET or possible changes to Crypto.Xml.
2019-02-08 12:42:23 -08:00
Justin Kotalik e3d0dc0a96
Try re-enabling CancellationToken tests for StreamAdapters (#6755) 2019-02-08 10:10:38 -08:00
Doug Bunting 45ecfad074 Skip code signing job if dependencies aren't available 2019-02-08 09:04:15 -08:00
Justin Kotalik 9e5f09cb44
Make Dispose not throw in StreamPipeWriter (#7376) 2019-02-08 08:44:34 -08:00
Justin Kotalik 3bd5f2c2ab
Return Completed ReadResult after stream returns 0 bytes (#7337) 2019-02-08 08:44:09 -08:00
Ben Adams b2f850aa82 Remove extraneous call to GetMemory (#7379) 2019-02-08 08:06:17 -08:00
Chris Ross efb5923120
Enable verbose h2spec logs (#7361) 2019-02-08 08:03:42 -08:00
James Newton-King 0dc06b37cb
Small fixes to SignalR service extension methods (#7375) 2019-02-08 19:15:53 +13:00
David Fowler b7d3b3aa13
Handle IAsyncDisposable scoped objects (#7343)
- We make a scope today around hub invocations, with IAsyncDisposable now implemented in the DI container, we need to support IServiceScope being IAsyncDisposable and IDisposable
2019-02-07 19:49:41 -08:00
Nate McMaster cc065f0055
Produce a package with just reference assemblies for AspNetCore.App (#7355) 2019-02-07 19:47:52 -08:00
Maxim Dukhanov 095c1c1759 Add webworker support to SignalR JS client (#7058)
* Added Platform utils to detect platform type
* Added additional build for WebWorker
* Changed env param from webworker to platform to make ability to specify platform to the build script
* Updated the readme file with SignalR WebWorker instructions
2019-02-07 18:51:24 -08:00
Andrew Arnott 3d4b198990 Add xml doc comments for BufferWriter struct (#7350) 2019-02-07 18:33:03 -08:00
Hao Kung 26acbc3861
Reorganize helix files (#7353) 2019-02-07 16:27:48 -08:00
Hao Kung ff83aea5fe
Regenerate the stamp once if there's a token collision in test (#7364) 2019-02-07 15:49:17 -08:00
Stephen Halter a677464ed0 Merge branch 'release/2.2' 2019-02-07 15:41:08 -08:00
Andrew Arnott 21177671b6 Remove extraneous call to GetMemory in BufferWriter (#7354)
The BufferWriter called GetMemory(count) and dropped the result, only to then call GetSpan(). This moves the count argument to GetSpan, and drops the call to GetMemory.
2019-02-07 15:31:33 -08:00
BrennanConroy 68579d1c11
C++ client: Skip flaky tests (#7358) 2019-02-07 13:54:13 -08:00
John Luo 92f21dbda0
Unset reserved bit when setting 31 bit uint values (#7339)
* Unset reserved bit when setting 31 bit uint values

* Add FrameWriter tests

* Add overload
2019-02-07 12:50:53 -08:00