Commit Graph

12851 Commits

Author SHA1 Message Date
Nate McMaster b1427c759b
Remove the WebSockets submodule 2018-10-17 14:53:22 -07:00
Nate McMaster 9e952a22ed
Merge source code from aspnet/WebSockets 2018-10-17 14:30:38 -07:00
Nate McMaster 5d84c92b74
Reorganize source code in preparation to move into aspnet/AspNetCore
Prior to reorganiziation, this source code was found in 67f2c3149e
2018-10-17 14:27:00 -07:00
Nate McMaster a673bfd741
Add build script and CI config for the DataProtection folder 2018-10-15 10:13:04 -07:00
Nate McMaster 4dfd351c84
Remove DataProtection submodule and update path to DP source code to local folder 2018-10-15 09:46:20 -07:00
Nate McMaster c355f10074
Merge source code from aspnet/DataProtection 2018-10-15 09:40:44 -07:00
Nate McMaster fb3f5d95c2
Backport infrastructure changes and source reorganization
* Add build definition for Azure DevOps
* Put code for metapackages in a subfolder
* Update targets to prepare for submodules merging into this repo
* Add source code for windows installer
* Add source code for Debian installers
2018-10-12 13:59:43 -07:00
Nate McMaster 4f14cda425
Reorganize source code from aspnet/DataProtection into a subfolder
Prior to reorg, this source existed at b62bb5778b
2018-10-12 10:07:51 -07:00
Hao Kung 5c174a3d7d Fix login.cshtml 2018-10-10 14:49:57 -07:00
Nate McMaster 72cd5eedcf
Prepare the 2.1.6 patch (#1434) 2018-09-28 17:57:33 -07:00
Mike Harder 3f7ee338d4 Change SelfHostDeployer to use dynamic ports by default (#1383)
* Should significantly reduce flaky test failures due to AddressInUse exceptions
* Addresses https://github.com/aspnet/Hosting/issues/1296
2018-09-19 12:35:51 -07:00
BrennanConroy 399ac267ca
Cancel previous request on close (#2923) 2018-09-10 15:09:05 -07:00
Justin Kotalik 922298bc90
Add rc file as an include for ANCMV1 (#1284) (#1344) 2018-08-30 12:00:13 -07:00
Nate McMaster cf3d2f1299
Minor tweaks to meta-package descriptions (#1343)
Per feedback on #1320 which came in post-merge.
2018-08-29 12:03:24 -07:00
BrennanConroy 04c606d55f LongPolling: Setting connection to inactive while there is still an active poll (#2769) 2018-08-28 09:44:50 -07:00
Ryan Brandenburg 9c28f95b12 Add Microsoft.AspNetCore.Razor.Design to templates (#674) 2018-08-28 09:41:15 -07:00
Justin Kotalik 037482829d
Add commit hash to V1 description (#1281) 2018-08-28 09:36:21 -07:00
Justin Kotalik 5f20f2a2dd
Update schema for ANCMv1 (#1276) 2018-08-28 09:35:49 -07:00
Justin Kotalik cc26d973ba
Remove early dereference of ASPNETCORE_PORT env var (#1274) 2018-08-28 09:34:54 -07:00
Justin Kotalik 338af6f07d
Reduce probability of startup port collisions (#1273) 2018-08-28 09:34:10 -07:00
Nate McMaster 42fa04aa87
Add the latest version of Microsoft.AspNetCore.Razor.Design to the offline package cache (#1316) 2018-08-28 09:19:56 -07:00
Nate McMaster 6b1d22c581
Add package descriptions for Microsoft.AspNetCore.{App, All} (#1320) 2018-08-28 09:19:37 -07:00
Nate McMaster b206d59612
Prepare 2.1.5 patch 2018-08-28 09:14:43 -07:00
Nate McMaster 16164689dc
Update documentation on the various package archive formats (#1324) 2018-08-17 10:42:26 -07:00
kishanAnem 5e20c313d9
Array or List in query string does not get parsed #7712 (#7967)
- exclude collections when detecting complex types in `ApiBehaviorApplicationModelProvider`
- add test cases
2018-08-14 12:06:27 -07:00
Nate McMaster a85d99ab8e
Add the 2.1.3 archive baselines and a target to ensure this test is run on PR builds 2018-08-10 09:08:55 -07:00
Nate McMaster f1e66b5a6f
Reset LZMA to only include the implicit package version (#1266) 2018-07-19 16:50:53 -07:00
Nate McMaster 55b697ab05
Revert "Add package version to Microsoft.AspNetCore.App in project templates"
This reverts commit 727bd52b64.
2018-07-18 13:11:01 -07:00
Tim Hess c9122a8428 Include AuthenticationTicket.Properties in AuthenticationTicket success result handling #1765 (#1767) 2018-07-12 13:58:49 -07:00
Pranav K 74667eda9c
Don't specify MainEntryPoint when compiling Razor assembly 2018-07-12 13:05:10 -07:00
Pranav K 174c5eaa6c Make fewer public API changes 2018-07-12 12:46:49 -07:00
Pranav K 4f1b7ccca6 Use ModelMetadata from actual types for validation
Fixes https://github.com/aspnet/Mvc/issues/7952
2018-07-12 12:46:49 -07:00
Stephen Halter f179339a79 Combine BufferWriter and CountingBufferWriter 2018-07-12 11:58:49 -07:00
Nate McMaster 128eefdef3
Remove usage of the Microsoft.Extensions.Buffers.Sources package, copy the source into Kestrel
This moves source code that used to be in aspnet/Common. It was only used here, so this simplifies the process of working with these internal-only APIs.

cref https://github.com/aspnet/Common/pull/386
2018-07-11 22:31:23 -07:00
Nate McMaster e5c501099a
Remove unused .Source packages 2018-07-11 21:33:51 -07:00
Pranav K dbc930cc78 ResponseCache attribute on RazorPages Error handler method should be moved to model
Fixes #553
2018-07-11 14:50:40 -07:00
Hao Kung d2a8d3a61c
Fix cookie regression (#1811) 2018-07-11 13:14:51 -07:00
Anthony Stivers 0ab8e15f05 [Fixes #1866] Fix ActivePage declarations
* Fix missing activepage declarations
* Change activepage declarations to correct values
* Add missing ActivePage
2018-07-10 13:00:52 -07:00
Nate McMaster 1d9db7c25f
Merge 2.1.2 into release/2.1 2018-07-10 10:34:35 -07:00
Nate McMaster 3eae93082f
Merge 2.1.2 into release/2.1 2018-07-10 10:29:05 -07:00
Kiran Challa bd995d4cb1 [Fixes #7959] Conventional routing with custom templates not working when you have area attributes 2018-07-09 12:35:14 -07:00
Nate McMaster bf03fee4be
Refactor LZMA generation to support Docker and Antares usage
List explicitly as .csproj files the scenarios for which the offline package cache is important

Produces new artifacts designed for various scenarios, such as:
 * Docker (where xml doc files are not needed)
 * Azure web apps (where 1.x SDKs must still be supported, but xml docs are not needed)
2018-07-06 13:15:23 -07:00
Mikael Mengistu fa702ff6ef Update AddSignalRCore to respect user registered services (#2434) 2018-07-05 12:52:33 -07:00
Ajay Bhargav Baaskaran e7db3f840b Handle pipe name with whitespace properly 2018-07-03 16:55:55 -07:00
Nate McMaster 727bd52b64
Add package version to Microsoft.AspNetCore.App in project templates
As discussed in aspnet/Home#3292, we're reversing course on the implicit package version feature. This adds a package version for Microsoft.AspNetCore.App to the `dotnet new` and VS templates.
2018-07-03 16:53:46 -07:00
Nathanael Marchand 82f7f2aab8 Fix Api Explorer not returning type with ActionResult<T> and no type in ProducesResponseTypeAttribute 2018-06-29 12:00:16 -07:00
N. Taylor Mullen 2d5a1737a2 Update Razor SDK packing logic to not include Pack at properties layer.
- Added test to verify that no-build scenarios work as expected.

#2378
2018-06-29 11:45:59 -07:00
Pranav K c4d5ef94a9 Razor runtime compilation produces errors if running on a shared runtime that's rolled forward
Do not provide compilation references from runtime MVC assemblies. This avoids cases where the app is compiled
against an older MVC but running against a newer one (e.g. shared fx roll forward) resulting in compiling against multiple
versions of MVC assemblies

Fixes #7969
2018-06-29 11:17:25 -07:00
Nate McMaster 9273759dca
[2.1]: Remove unused project capability from Microsoft.AspNetCore.App (#1237)
Removing this from .App in 2.1.3 because this was unused, and the capability is not actually supported by VS. This will be re-added in the future versions of .App when we land the VS integration for in-process hosting.

cref https://github.com/aspnet/IISIntegration/pull/969
2018-06-29 11:02:39 -07:00
Stephen Halter ac31e5ab30
[2.1.3] Consistently handle connection aborts (#2619)
* Decouple connection objects from the server (#2535)

- Making progress towards being able to use the connection objects on the client side.

* Wait for input writer to complete before calling OnConnectionClosed (#2566)

* Wait for the ConnectionClosed token to stop tracking connections (#2574)

- The prior strategy of waiting for the pipe completed callbacks doesn't work
  because blocks are returned to the memory pool after the callbacks are fired.

* Consistently handle connection resets (#2547)

* Provide better connection abort exceptions and logs

* void IConnectionDispatcher.OnConnection
2018-06-28 10:51:22 -07:00
Nate McMaster 91a1d2de50
Add unit tests for the shared framework (#1228)
Changes:
* Add a test project with simple unit tests for the shared framework
* Add root-level Directory.Build.props/targets files
* Cleanup .csproj files to reduce duplication
2018-06-27 14:56:10 -07:00
Ryan Brandenburg d2dcd9c6b9 Set 2.1 baselines 2018-06-14 16:46:02 -07:00
Ryan Brandenburg 606b3c590f Set 2.1 baselines 2018-06-14 16:43:31 -07:00
Ryan Brandenburg aa24887d43 Set 2.1 baselines 2018-06-14 16:42:34 -07:00
Ryan Brandenburg 4295027333 Set 2.1 baselines 2018-06-14 14:12:20 -07:00
Ryan Brandenburg 4cb04470a5 Set 2.1 baselines 2018-06-14 14:10:10 -07:00
Ryan Brandenburg 2328792540 Set 2.1 baselines 2018-06-14 11:40:22 -07:00
Ryan Brandenburg 78fc556758 Set 2.1 baselines 2018-06-14 11:36:27 -07:00
Ryan Brandenburg a04813edc3 Set 2.1 baselines 2018-06-14 11:29:25 -07:00
Ryan Brandenburg 61ced27c18 Set 2.1 baselines 2018-06-14 11:21:42 -07:00
Ryan Brandenburg 887353707e Set 2.1 baselines 2018-06-14 11:11:43 -07:00
Ryan Brandenburg 78fc49ba0c Set 2.1 baselines 2018-06-14 11:09:19 -07:00
Ryan Brandenburg bb49eeebe6 Set 2.1 baselines 2018-06-14 11:07:25 -07:00
Ryan Brandenburg 4b93b75e78 Set 2.1 baselines 2018-06-14 11:06:20 -07:00
Ryan Brandenburg f43646e7a1 Set 2.1 baselines 2018-06-14 10:07:39 -07:00
Ryan Brandenburg d1235cdda0 Set 2.1 baselines 2018-06-14 10:06:58 -07:00
Ryan Brandenburg 7922b27c65 Set 2.1 baselines 2018-06-14 10:06:06 -07:00
Ryan Brandenburg d1b1a8097b Set 2.1 baselines 2018-06-14 10:02:28 -07:00
Ryan Brandenburg b7c722bb68 Set 2.1 baselines 2018-06-14 09:37:25 -07:00
Ryan Brandenburg c367db6226 Set 2.1 baselines 2018-06-14 09:36:28 -07:00
Ryan Brandenburg 5bed1972fe Set 2.1 baselines 2018-06-13 15:47:53 -07:00
Ryan Brandenburg 01477ecf61 Set 2.1 baselines 2018-06-13 15:47:05 -07:00
Ryan Brandenburg 9215a8a3ee Set 2.1 baselines 2018-06-13 13:54:40 -07:00
Nate McMaster ff3f0e905d
Merge branch 'release/2.1' into release/2.1.2 2018-06-12 14:16:29 -07:00
Stephen Halter e4d290b601
Fix Json regression in Socket Transport (#2578) 2018-05-31 16:28:25 -07:00
Stephen Halter d1416e679b
[2.1.1] Provide clearer exception message for breaking change (#2623)
- In 2.1, the default transport (Sockets) can no longer bind to certain
  endpoint types (Unix domain sockets and open socket handles).
- The new message recommends manually selecting the libuv transport
  to work around this issue.
2018-05-31 15:45:26 -07:00
Stephen Halter af177c5adc
Add Memory<byte> overloads to HttpUpgradeStream (#2622) 2018-05-31 15:44:39 -07:00
Stephen Halter 9e15b2bca4
Fix PipeReader consumption pattern [2.1] 2018-05-31 11:27:38 -07:00
Kiran Challa a5fb8a3d3c [Fixes #523] Fix the jquery.min.js file in RazorPages web application 2018-05-30 16:01:45 -07:00
Javier Calvarro Nelson 74883b2cf0 [Fixes #528] Windows authentication is not applied on launchSettings.json 2018-05-30 14:05:59 -07:00
Andrew Stanton-Nurse c976d0aa6e
[2.1.1] Gracefully handle disposing while writing (#2180) (#2355) 2018-05-30 10:33:31 -07:00
Andrew Stanton-Nurse 0452f460c6
Fix not reading to end of argument JSON on binding error (#2319) (#2360) 2018-05-30 09:25:35 -07:00
Kiran Challa 2d63669695 [Fixes #7609] ApiBehaviorApplicationModelProvider overwrites existing BindingInfo in entirety when inferring binding sources 2018-05-30 05:30:10 -07:00
Steve Sanderson 52a9e7a54d Remove obsolete reference in Angular template home. Fixes #470 2018-05-30 11:22:14 +01:00
Stephen Halter 5ec7bacdfe
Lower severity of AuthenticationException logs from SslStream handshake (#2614) 2018-05-29 16:27:16 -07:00
Pranav K 6e67c9345c Remove reference to Microsoft.AspNetCore.Mvc.Razor.ViewCompilation from desktop templates
Fixes #530
2018-05-29 15:23:03 -07:00
Pranav K 9c3a331e4f Allow publish to work when BuildProjectReferences=false
Fixes #2363
2018-05-29 15:17:01 -07:00
Pranav K 984cd46c4d Fix ActionMethodExecutor incorrectly setting DeclaredType on ObjectResult
Fixes #7782
2018-05-29 14:35:42 -07:00
Nate McMaster 0f12047271
Fix dependency versions for Hosting and Mvc.RazorPages 2018-05-29 14:27:47 -07:00
Andrew Stanton-Nurse 3fa10f92ad
Fix losing UTC DateTimeKind on ISO8601 UTC values (#2317) (#2357) 2018-05-29 11:27:29 -07:00
Hao Kung 2629ceed08 CheckPassword only reset lockout when TFA disabled 2018-05-17 14:05:39 -07:00
Nate McMaster ef9fa1868a
Fix SRI hash values for jquery (#521) 2018-05-16 11:49:40 -07:00
Kiran Challa 5403ec47ec Fixed sha-integrity content of script tags in IdentityUI's cshtml files
Related to https://github.com/aspnet/templating/issues/520
2018-05-16 11:46:58 -07:00
James Newton-King e1a22b315d Android HttpClientHandler.ClientCertificates fix (#2270) 2018-05-16 11:25:39 -07:00
BrennanConroy 95f543848c
Fix multiple connections for a single user in Redis and MemoryLeak (#2273) 2018-05-15 15:57:23 -07:00
Kiran Challa b7eacbb1c3 Upgrade node-sass to 4.9.0
[Fixes #513] Angular template incompatible with NodeJs 10
2018-05-11 13:26:45 -07:00
Stephen Halter da21fc89cf
Handle exception in SocketConnection.Shutdown() (#2562) 2018-05-10 23:39:06 -07:00
Stephen Halter e6a88c1b9c
Relieve response backpressure immediately when closing socket (#2557)
* Relieve response backpressure immediately when closing socket
2018-05-10 17:13:57 -07:00
BrennanConroy 4b1fb58a8a
Throw error on unexpected close (#2205) 2018-05-10 16:38:21 -07:00
Mikael Mengistu 6f6382799b
Use params passed into HubConnectionBuilder (#2223) 2018-05-07 18:19:20 -07:00
Nate McMaster 05d68efbae
Merge branch 'release/2.1.0-rc1' into release/2.1 2018-05-07 14:35:41 -07:00
Stephen Halter 5c17bff55d
Don't throw on FIN from upgraded connections (#2533)
* Allow app to drain request buffer after FIN
2018-05-04 16:21:07 -07:00
Hao Kung e306b8680e
Fix namespace for AddDefaultIdentity (#1781) 2018-05-04 14:05:13 -07:00
Andrew Stanton-Nurse b492dbe5d1
fix #2187 by passing min size through to buffer writer when encoding (#2190) 2018-05-03 19:10:15 -07:00
Pavel Krymets 361caff1ad
Remove managed InProcess code (#809) 2018-05-03 17:18:33 -07:00
Hao Kung 89956df7ea
[Review] Updated migrations and scripts (#484)
* Update migrations

* Add regex for schema name and product version

* Fix ModelSnapshot product version

* Change version to 2.1.0
2018-05-03 13:22:26 -07:00
Jass Bagga 99114c25a4
Adjust spacing in csproj files (#492)
Address #462 and fix build break
2018-05-03 11:40:39 -07:00
BrennanConroy 8c7f33a6d7
Port C# client perf fix to release (#2189) 2018-05-02 21:53:39 -07:00
Ajay Bhargav Baaskaran 41c0a69c5b Allow build server to run on net46 2018-05-02 16:17:09 -07:00
Andrew Stanton-Nurse 622e133a8a
fix #2134 by disposing httpconnection if start fails (#2137) (#2188) 2018-05-02 13:10:58 -07:00
Nate McMaster d6f15759fd
Add property to allow the SDK to disable shared framework trimming (#1130)
The MicrosoftNETPlatformLibrary property instructs the .NET Core SDK to treat a particular package as the shared framework platform. This affects how the SDK will trim references and publish output, determines how the runtimeconfig files are generated, and may affect how optimizations are preformed by other tools. In some installations of .NET Core, the ASP.NET Core shared framework is not available. This change adds properties to let the SDK determine on which platforms ASP.NET Core is enabled.
2018-05-02 08:49:03 -07:00
James Newton-King 41c8dcf449
Fix not setting HttpConnection.ConnectionId (#2154) 2018-05-01 21:48:57 -07:00
James Newton-King 3e906fb64a
Minor API cleanup (#2147) 2018-05-01 17:51:08 -07:00
James Newton-King 555c1fd720
Fix not detecting marker service (#2149) 2018-05-01 17:42:00 -07:00
Nate McMaster e0e9eb0b36
Add pre-generated shims to dotnet tool packages 2018-05-01 16:57:36 -07:00
Pranav K a94323499b Change CopyToPublishDirectory on Content items instead of explicitly removing this from publish items
Fixes #2295
2018-05-01 16:50:49 -07:00
Pranav K 05c84f008a Ensure Views dll are copied during P2P builds
FastUpToDateCheck in VS doesn't account for changes solely to .Views.dll. This causes referencing projects to be treated as
up to date even though a referenced project rebuilt. Touch the marker file to cause referenced projects to rebuild.

Fixes https://github.com/aspnet/Razor/issues/2306

to cause it to treat
2018-05-01 16:50:49 -07:00
Pranav K 8d99ba53ce Make incremental build in VS copy output files
Fixes #2306
2018-05-01 16:50:49 -07:00
Andrew Stanton-Nurse d711916ad6
fix #2140 by ensuring the access token flows to WebSocketTransport (#2173) 2018-05-01 16:14:24 -07:00
James Newton-King 295801ac50
XML documentation (#2106) 2018-05-01 16:08:09 -07:00
Chris Ross (ASP.NET) 2c1376c95f Add a AddHostedService extension #1402 2018-05-01 14:07:24 -07:00
Kiran Challa 601f41026a Updated icon for RazorClassLibrary 2018-05-01 13:34:51 -07:00
Kiran Challa 19c41c0494 Revert "[Fixes #6902] Added an overload for StatusCode that takes in System.Net.HttpStatusCode"
This reverts commit c567a690bc.

[Fixes #7709] Revert https://github.com/aspnet/Mvc/pull/6902
2018-05-01 13:27:57 -07:00
Jass Bagga a89dc30d43
AllowAnonymous for external login providers and confirm email (#1769)
Addresses #1762
2018-05-01 12:30:46 -07:00
Chris Ross (ASP.NET) 1717b97444 Run self-host tests with no-build. #1399 2018-05-01 12:22:36 -07:00
Stephen Halter b0e1fa5e30 Fix connection abort 2018-04-23 17:01:49 -07:00
Nate McMaster 0d047d64f3
Remove explicit reference to NETStandard.Library when using .NET Framework 2018-04-23 13:32:50 -07:00
Nate McMaster 0f131ac245
Disambiguate /p from -p on dotnet-run 2018-04-21 08:13:29 -07:00
Nate McMaster ed7e6db79e
Attempt to fix more failing tests in prodcon builds 2018-04-21 08:01:30 -07:00
Andrew Stanton-Nurse 47eafca4d8
CancellationToken EVERYWHERE (#2101) 2018-04-20 16:21:51 -07:00
Ajay Bhargav Baaskaran 2a10e6fe1d Added nuspec file for Mvc.Razor.ViewCompilation to include symbols 2018-04-20 15:26:34 -07:00
Ajay Bhargav Baaskaran aa181128ac Generate symbol nupkgs for tools 2018-04-20 15:10:03 -07:00
Ajay Bhargav Baaskaran 595e83d0eb Added nuspec file to Mvc.Analyzers assembly 2018-04-20 14:53:46 -07:00
Pranav K 5d5222cdd8 Introduce BindPropertiesAttribute
* Allow controller and Razor Page models to be annotated with BindPropertiesAttribute
* Disallow BindPropertyAttribute from being declared on types.
* Do not allow arbitrary binding attributes to be applied to Razor Page models.

Fixes #7686
2018-04-20 14:32:14 -07:00
Andrew Stanton-Nurse 058830c9df
fix #2116 by requiring task return values from typed client (#2117) 2018-04-20 13:49:12 -07:00
BrennanConroy 9101ab636b
Always check for WebSockets close (#2100) 2018-04-20 08:21:04 -07:00
James Newton-King 5516a969e3
Change Hub and friends to abstract (#2108) 2018-04-20 20:53:01 +12:00
Andrew Stanton-Nurse ace9a0d414
fix #2097 by adding GetHttpContext to HubConnectionContext (#2099) 2018-04-19 19:14:39 -07:00
BrennanConroy 1957655653
Run hub invocations serially (#2086) 2018-04-19 16:59:06 -07:00
John Luo a8c3615df4 React to implicit Microsoft.AspNetCore.App reference 2018-04-19 16:49:13 -07:00
Andrew Stanton-Nurse 6b6d890c8f
fix #2078 by adding locking (#2079) 2018-04-19 15:32:04 -07:00
Nate McMaster 53c25198fd
Revert "Produce the Microsoft.AspNetCore.AzureAppServices.SiteExtension package on normal builds (#188)"
This reverts commit 0921e5b60f.
2018-04-19 15:08:17 -07:00
Ajay Bhargav Baaskaran 44e282e8d4 Generate symbols.nupkg for Mvc.Razor 2018-04-19 12:32:36 -07:00
Nate McMaster 30928ba944
Disable implicit package version verification when --no-restore is used
Workaround an error when building in ProdCon where the RuntimeFrameworkVersion is overridden externally. Generally, the error is good, but when --no-restore is  specified, we are okay ignoring this verification.
2018-04-19 12:24:10 -07:00
Nate McMaster 0921e5b60f
Produce the Microsoft.AspNetCore.AzureAppServices.SiteExtension package on normal builds (#188) 2018-04-19 11:00:10 -07:00
David Fowler 676bf179f3
Reduce redundant dependencies (#2091) 2018-04-19 00:18:52 -07:00
BrennanConroy e9937ffb66
Split lock into WriteLock and StateLock to prevent deadlocks and unneeded lock contention (#2081) 2018-04-18 17:44:05 -07:00
Ajay Bhargav Baaskaran d2fe76be21 Write process and pipe information to a pid file 2018-04-18 14:51:28 -07:00
David Fowler 903fe1e902
Added support for negotiate response to redirect the client to another SignalR endpoint (#2070)
- Add a SkipNegotiation flag to the .NET and ts client
to allow skipping the negotiation phase. Don't infer it based on the transport type.
-  Updated the negotiate protocol to support returning a redirect url
- Added support to .NET client to handle redirect negotiations
- Handle poorly written endpoints that sends infinite redirects
- Added access token support and an infinite redirect guard
- Add delete handler for stopping the transport
2018-04-18 14:22:45 -07:00
Pranav K 60a9810268 Allow PartialTagHelper to specify a null model. Fixes #7667 2018-04-18 14:16:44 -07:00
Kiran Challa faca3da42f Ensure ViewData is set on PageResult after a handler method executes
[Fixes #7665] Initializing PageResult.Page as part of result execution breaks Identity UI
2018-04-18 11:44:04 -07:00
Kiran Challa 4f7d53f4e7 [Fixes #7658] FileStreamResultExecutor fails to Dispose FileStream 2018-04-18 11:43:09 -07:00
Kiran Challa 6e4bd1eb46 Fixed PageFilter docs 2018-04-18 11:42:40 -07:00
Javier Calvarro Nelson 1cede88f26 [Fixes #7656] Deps file for netstandard2.0 targeting projects copied by Microsoft.AspNetCore.Mvc.Testing does not play well with Mvc 2018-04-18 11:03:52 -07:00
David Fowler 5c9b64244a
Expose the IHubProtocol on HubConnectionContext (#2073) 2018-04-18 10:35:55 -07:00
Jass Bagga 13e746c289
Update THIRD-PARTY-NOTICES link and remove Package Management panel from carousel (#474)
Addresses #330 and #469
2018-04-18 09:42:27 -07:00
Andrew Stanton-Nurse b4046b5ed8
Fix #1989 by adding a 'binding failure' pseudo-message (#2064) 2018-04-17 20:08:07 -07:00
Javier Calvarro Nelson e781cd38cf [Fixes #7635] Provide a way to configure HTTP Client instances 2018-04-17 12:52:56 -07:00
Javier Calvarro Nelson e0b4c13895 [Fixes #7587] Default to Development environment in tests 2018-04-17 12:52:51 -07:00
Doug Bunting e0e96ce53b
Include parameter type's attributes in ModelMetadata
- #7595
- #7595 relates to #7350 but does not have the same root cause
  - did _not_ revert the src changes in #7350 fix (d995b0418a)
- make non-`[Obsolete]` `ModelAttributes` constructor overload `internal`
  - should generally use `static` methods and not any constructor
  - change some unit tests to use `[Obsolete]` constructor overloads (with suppressions)
- fix test `ParameterBinderExtensions` to use current `ParameterBinder.BindModelAsync(...)` overload
  - found some tests updated `IModelMetadataProvider`, `MvcOptions`, etc. instances but didn't register them in DI
- extend `ModelBindingTestHelper` and `ModelBindingTestContext`
  - reorder some tests to use correct `MvcOptions` and `IModelMetadataProvider` everywhere
  - fixes above issues

nits:
- take a few VS suggestions
- remove an old comment indended only for PR "Reviewers:"
2018-04-17 12:40:38 -07:00
Javier Calvarro Nelson e06b1fd690 [Fixes #1242] Moves IStartupConfigureServicesFilter and IStartupConfigureContainerFilter interfaces to the internal namespace 2018-04-17 12:31:09 -07:00
Ajay Bhargav Baaskaran dc997821cc Added nuspec and symbols.nuspec files to Razor.Design 2018-04-17 11:07:34 -07:00
James Newton-King 8985fee4b5
Merge 2018-04-17 20:39:19 +12:00
David Fowler 05d6bbb782
Flush first long poll immediately (#2032)
There was a race condition between the first poll and any other http request that was sent. 
In particular, if you called StartAsync then StopAsync it was possible for the delete to happen before the poll started leading to 400 errors. This change fixes that by making the very first poll
return immediately so that the client can use that to determine if there was an error connecting.
2018-04-17 00:49:26 -07:00
James Newton-King d35bcea0a5
Move HubException and add serialization ctor (#2049) 2018-04-17 14:10:42 +12:00
Ryan Brandenburg 52c45f2204 Merge remote-tracking branch 'origin/release/2.1' into rybrande/MergeRelease21IntoDev 2018-04-16 15:15:38 -07:00
Ryan Brandenburg c8d842c160 Merge remote-tracking branch 'origin/release/2.1' into rybrande/MergeRelease21IntoDev 2018-04-16 15:05:29 -07:00
Ryan Brandenburg 3c40b9efd2 Merge remote-tracking branch 'origin/release/2.1' into rybrande/MergeRelease21IntoDev 2018-04-16 14:24:13 -07:00
Stephen Halter 6fd09af374
Improve logging of request drain timeout (#2480) 2018-04-16 11:53:10 -07:00
Andrew Stanton-Nurse c05c5a6b2a
React to aspnet/KestrelHttpServer#2496: make IConnectionInherentKeepAliveFeature a boolean feature (#2041) 2018-04-16 11:34:12 -07:00
Andrew Stanton-Nurse 3a45136cc4
make IConnectionInherentKeepAliveFeature a boolean feature (#2496) 2018-04-16 11:34:06 -07:00
David Fowler a426334018 Expose IList instead of List 2018-04-16 10:44:22 -07:00
David Fowler a5d9930802
API review changes (#2043)
- Make SerializedHubMessage and SerializedMessage
public
- Made HubConnectionStore public
- Move SendUtils and Utils to the internal folder
- Make Microsoft.AspNetCore.Http.Connections.Common/Internal public.
- Move InvocationRequest to internal folder
2018-04-16 10:31:10 -07:00
Chris Ross (ASP.NET) 0a876cece7 Make https redirect no-op if no port is available #318 2018-04-16 09:49:43 -07:00
Steve Sanderson 4d151a599e Dynamically expand timeout when waiting for Angular CLI to be ready. Fixes #1611 2018-04-16 14:54:52 +01:00
Tadas Mazutis 78f7dccfab Performance fix
- Usage of resolved loopback IP address instead of 'localhost'

Addresses #1588
2018-04-16 14:45:16 +01:00
BrennanConroy 927b08f893
Cache property access (#2030) 2018-04-15 23:23:00 -07:00
James Newton-King 4f4dfe1d23
Move RedisLog to Internal namespace (#2038) 2018-04-16 18:08:26 +12:00
James Newton-King b5d5f11ef8
Rename excludedIds to excludedConnectionIds (#2037) 2018-04-16 18:03:16 +12:00
BrennanConroy 7745fd748a
Extension methods for IHubClients methods (#2016) 2018-04-15 22:43:26 -07:00
James Newton-King 0da06fb5d2
Microsoft.AspNetCore.SignalR.Redis API review (#2036) 2018-04-16 15:56:49 +12:00
James Newton-King b3a9011698
API review changes for Microsoft.AspNetCore.SignalR (#2033) 2018-04-16 15:54:42 +12:00
James Newton-King 6eac7049ba
Update text and binary formatter helpers to be shared (#2035) 2018-04-16 15:19:34 +12:00
Pranav K d8fc2d4009 Fix test failures
* Disable deps file generation in class library project. This workarounds known issue - https://github.com/dotnet/core-setup/issues/3726
* Update RazorProjectRouteModelProvider to not specify a trailing slash. This produces paths with a single slash as opposed to two slashes messing with route creation.
* React to Microsoft.AspNetCore.Mvc.Razor.Extensions.Reference that shows up in the deps file.
2018-04-15 16:31:41 -07:00
James Newton-King a17320221e
Derp 2018-04-16 10:43:06 +12:00
James Newton-King 62f14054eb
Capture and log prematurely closed connections 2018-04-16 10:41:35 +12:00
James Newton-King fbb13c4c1f
Improve response status logging 2018-04-16 09:38:47 +12:00
James Newton-King f8e641d007
Merge 2018-04-15 19:21:07 +12:00
James Newton-King 725bb33949
Lazy initialize HttpConnectionContext.Items (#2027) 2018-04-15 19:06:13 +12:00
James Newton-King 9d033aa9f9
Blah 2018-04-15 18:16:23 +12:00
James Newton-King c835288e84
Suppress web socket closing without handshake 2018-04-15 17:51:31 +12:00
James Newton-King ddc905c219
Add VerifyNoErrorsScope (#1972) 2018-04-15 11:12:21 +12:00
James Newton-King b9e7113c01
Move types out of .Core namespace and make method virtual (#2024) 2018-04-15 09:58:33 +12:00
James Newton-King 377ed1b834
JsonHubProtocol and MessagePackHubProtocol version fields now private (#2023) 2018-04-15 09:58:05 +12:00
Doug Bunting cc5ae02b7d
Fix binding & validating dictionaries of non-simple types in jQuery requests
- #7423
- retry failed inner bindings with alternate syntax in `ModelStateDictionary`
  - use property syntax if first attempt tried index syntax and visa versa
- instantiate `ShortFormDictionaryValidationStrategy` with full `ModelState` keys
  - can now provide exact `ModelState` keys that `ModelStateDictionary` used in inner bindings
- normalize model names without a leading period in `JQueryKeyValuePairNormalizer`

nits:
- take a few VS suggestions
2018-04-14 10:41:00 -07:00
James Newton-King 5a77c8be25
API review Microsoft.AspNetCore.SignalR.Internal (#2022) 2018-04-15 00:23:26 +12:00
David Fowler d6395a52bc
Send delete request after poll ends (#2020)
* Added test and fixed other test
2018-04-14 04:45:16 -07:00
David Fowler 0f8485cafc
Renamed class to match the file (#2019) 2018-04-14 04:08:26 -07:00
James Newton-King e4d0f2980e
Microsoft.AspNetCore.SignalR.Client refactor (#2000) 2018-04-14 21:09:41 +12:00
Ben Adams e30a02cee5 Less StringValue struct copies for header checks (#2488) 2018-04-13 18:21:50 -07:00