Commit Graph

7071 Commits

Author SHA1 Message Date
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
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
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
Nate McMaster 1d9db7c25f
Merge 2.1.2 into release/2.1 2018-07-10 10:34:35 -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
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
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 aa24887d43 Set 2.1 baselines 2018-06-14 16:42:34 -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 887353707e Set 2.1 baselines 2018-06-14 11:11:43 -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
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
Nate McMaster ef9fa1868a
Fix SRI hash values for jquery (#521) 2018-05-16 11:49:40 -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
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
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
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
Nate McMaster e0e9eb0b36
Add pre-generated shims to dotnet tool packages 2018-05-01 16:57:36 -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
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 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
Ajay Bhargav Baaskaran aa181128ac Generate symbol nupkgs for tools 2018-04-20 15:10:03 -07:00
John Luo a8c3615df4 React to implicit Microsoft.AspNetCore.App reference 2018-04-19 16:49:13 -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
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
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
Javier Calvarro Nelson e06b1fd690 [Fixes #1242] Moves IStartupConfigureServicesFilter and IStartupConfigureContainerFilter interfaces to the internal namespace 2018-04-17 12:31:09 -07: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 3a45136cc4
make IConnectionInherentKeepAliveFeature a boolean feature (#2496) 2018-04-16 11:34:06 -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
Ben Adams e30a02cee5 Less StringValue struct copies for header checks (#2488) 2018-04-13 18:21:50 -07:00
Pranav K 898b8cec84
Prepare for RazorAssemblyAttribute -> RazorTargetAssemblyAttribute rename 2018-04-13 16:13:44 -07:00
Nate McMaster faf2f3f065
Attempt to workaround issues with File.Move on NFS file shares (aspnet/Home#2941) 2018-04-13 15:08:28 -07:00
John Luo 2d51d23697 Add file logging to functional tests 2018-04-13 14:53:57 -07:00
Jass Bagga a9c7c322cb
Add "webapp" alias to RazorPages template.json (#467)
Addresses #325
2018-04-13 14:01:20 -07:00
Jass Bagga 5d52701cd2
Add Error razor page to Spa templates (#464)
Addresses #332
2018-04-13 11:11:01 -07:00
David Fowler a8c0970cde
Check for non-null RequestServices (#1378) 2018-04-13 09:45:38 -07:00
Kiran Challa f824751bb9 Added Razor class library project template
[Fixes #323] Add a Razor class library project template
2018-04-13 04:21:49 -07:00
Stephen Halter 10f3b6863e
Avoid nullref in KestrelEventSource (#2483)
* Avoid nullref in KestrelEventSource
* Improve HostNameIsReachableAttribute to speed up test discovery
2018-04-12 17:29:34 -07:00
Justin Kotalik 4188d2fe68
sttimer changes to V2 (#773) 2018-04-12 17:11:38 -07:00
Justin Kotalik 5fd1f9e0e5 Merge remote-tracking branch 'origin/release/2.1' into dev 2018-04-12 16:33:29 -07:00
pan-wang 9c83280770
Fixing couple issues (#763)
adding more logs and fix memory leak in case of configuration change and then shutdown
2018-04-12 14:10:25 -07:00
Chris Ross (ASP.NET) 4e1ba2a6c7 Delay process exit in ConsoleLifetime #1329 2018-04-12 10:07:44 -07:00
Chris Ross (ASP.NET) ee12c4fcf2 Downgrade HTTPs handshake failures to debug #1853 2018-04-12 09:25:44 -07:00
Chris Ross (ASP.NET) c6fa9793eb Make Protocols internal 2018-04-12 08:53:27 -07:00
Kiran Challa 4184b2406d Updated to make routing always use UrlEncoder.Default and not depend on DI to get it.
[Fixes #513] RedirectToAction with Non-English Characters in Parameters and Authentication Causes Error
2018-04-12 05:15:45 -07:00
David Fowler ca44b4adfc
Moved kestrel specific features into transport abstractions (#2482) 2018-04-11 20:23:48 -07:00
David Fowler f6b2880369
Flow the ConnectionContext to the SNI callback (#2478) 2018-04-11 15:56:25 -07:00
Jass Bagga c3ac7629d1
WebAPI launchUrl; MVC _LoginPartial; F# AllowedHosts (#463)
Addresses #455, #392, #445
2018-04-11 15:01:32 -07:00
Sébastien Ros e8bb88cb58
Fixing typo (#2477) 2018-04-11 14:27:53 -07:00
Chris Ross (ASP.NET) 0b5cb8a8b8 Reload HostFilteringOptions on change 2018-04-11 12:23:14 -07:00
Nate McMaster b7b6bd9533
React to updates in dependencies and removal of System.Runtime.CompilerServices.Unsafe from netcoreapp (#429) 2018-04-11 09:59:22 -07:00
Justin Kotalik e2fbff2bd5 Feedback 2018-04-10 23:00:18 -07:00
Justin Kotalik 46efcd9332 Move srwWrapper to right location 2018-04-10 14:43:05 -07:00
Justin Kotalik 5c91dbe062 Get tests working 2018-04-10 14:21:23 -07:00
Justin Kotalik da513bd8d8 Get build.cmd working and cleanup ignored files. 2018-04-10 14:21:00 -07:00
Justin Kotalik df9efa0770 Code changes to get ANCM current working on github 2018-04-10 14:19:53 -07:00
Justin Kotalik b594130020 Adds source code from VSTS 2018-04-10 14:19:53 -07:00
Pavel Krymets 157e7f4fdd Creates two separate projects for ANCM V1 and V2. 2018-04-10 14:19:32 -07:00
FabianMeiswinkel bec259f976 #364 - Expose HTTP_503_RESPONSE_VERBOSITY option (#447) 2018-04-10 12:08:33 -07:00
Pavel Krymets 6629236a0e
Merge pull request #767 from aspnet/pakrym/perf
Improve performance
2018-04-10 12:07:26 -07:00
Jass Bagga da32f45f58
Do not set sslPort if HTTPS not configured (#458)
Addresses #457
2018-04-10 12:02:10 -07:00
Pavel Krymets d63e8c5558 CPP 2018-04-10 11:04:34 -07:00
Pavel Krymets ee2e46a614 What about now? 2018-04-10 09:08:13 -07:00
Kristian Hellang 6b18dea711 Replace Constants.CompletedTask with Task.CompletedTask (#235) 2018-04-10 08:58:39 -07:00
Kristian Hellang 61f7c82d49 Replace Helpers.CompletedTask and Helpers.CanceledTask (#446) 2018-04-10 08:57:25 -07:00
Pavel Krymets 80e799d17c PR comments 2018-04-10 08:30:37 -07:00
David Fowler b030ab7e49
Update Connections.Abstractions.csproj (#2473) 2018-04-09 17:55:14 -07:00
Pavel Krymets e32b51d6e6 ENdpoint 2018-04-09 16:47:01 -07:00
Pavel Krymets f0eab4410a Cleanup 2018-04-09 15:20:28 -07:00
Pavel Krymets 7a14be006d Fast reads 2018-04-09 15:16:47 -07:00
Pavel Krymets 5e5aa90575 Remove continue with 2018-04-09 14:26:28 -07:00
Pavel Krymets 0feb83b637 Dont format some things 2018-04-09 12:10:32 -07:00
Pavel Krymets dca31cc6f6 Perf 2018-04-09 10:34:44 -07:00
Pavel Krymets 8f1781f7eb Cleanup LogEvent calls 2018-04-08 19:21:55 -07:00
David Fowler 4760cce6aa
Remove IConnection (#2472) 2018-04-07 18:55:59 -07:00
Nate Barbettini a6bdb9b1ec Fix typos in code documentation (#1012)
* Fix typos in code documentation

* Add missing detail to code documentation
2018-04-06 08:09:48 -07:00
Justin Kotalik 47c7c1ad8f
Disable global loading of RequestHandler for in-process (#732) 2018-04-05 10:36:15 -07:00
Jass Bagga 4236f0e51c
Fix AllowedHosts configuration (#452)
Addresses #451
2018-04-05 10:08:40 -07:00
Phil Henning 8a368b5610 Add supportedAuthentication for NoAuth in templates which have NoAuth (#443)
* Add supportedAuthentication for NoAuth in templates which have NoAuth

This is to work around an issue in Visual Studio

* Remove spurious ,

* Add supportedAuthentications to F# Web API vs-2017.3.host.json
2018-04-04 18:10:04 -07:00
Chris Ross (ASP.NET) 2ee0d6e337 Delay loading the dev cert #2422 2018-04-04 14:54:27 -07:00
Chris Ross (ASP.NET) 953496a970 Merge branch 'release/2.1' into dev 2018-04-04 13:44:56 -07:00
Chris Ross (ASP.NET) 9ea2c50068 Add SNI support #2357 2018-04-04 12:49:29 -07:00
Andrei Amialchenia 70ce044778 Corrects spelling of some comments (#2461) 2018-04-03 15:55:17 -07:00
Jass Bagga 52ffc89fef
Remove duplicated UseHttpsRedirection (#437)
Addresses #436
2018-04-03 14:02:52 -07:00
Pavel Krymets 81bf9fb66b
Merge release/2.1 into dev (#421) 2018-04-03 10:45:34 -07:00
Pavel Krymets ba06c58bcb
Merge release/2.1 into dev (#2460) 2018-04-03 10:45:31 -07:00
Pranav K 6ee08a985d React to Mvc changes 2018-04-03 10:11:52 -07:00
Pavel Krymets 5210323385 Merge release/2.1 into dev 2018-04-03 10:11:36 -07:00
Stephen Halter 623c27ab01
Dispose SocketAsyncEventArgs when we dispose the Socket (#2459) 2018-04-02 19:48:17 -07:00
Pavel Krymets ba2b883db0
Reaction to *Memory changes (#2446) 2018-04-02 16:44:13 -07:00
Jass Bagga f52359d202
Update AJAX CDN links (#430) 2018-04-02 16:25:24 -07:00
David Fowler 6b183c5ac0
Use 4K as the minimum segment size (#2452)
- This normalizes the behavior for kestrel no matter what memory pool implementation is used. The transports should behave the same (ask for 1/2 full blocks) across pool implementations.
- Declare the minimum segment size in KestrelMemoryPool
- Updated the AdaptedPipeline to use MinimumSegmentSize / 2
2018-04-02 16:14:40 -07:00
Justin Kotalik 6e957e436a
Support inprocess hosting in IISExpressDeployer via switching the HostingModel property. (#1368) 2018-04-02 12:01:53 -07:00
Nate McMaster 6d4a632b96
Fix race condition in test code waiting for dotnet-watch to restart 2018-04-02 10:10:57 -07:00
Jass Bagga 56fc40dbca
Revert "Revert "Update jquery-validation-unobtrusive (#421)"" (#426)
This reverts commit e6112a0911.
2018-04-01 23:29:52 -07:00
David Fowler a37fa83aee
Fixed a parser bug found when trying out the array pool (#2450)
- When using the array pool, we get terrible block density and as a result
the header parser was failing.
- This fixes the case where the parser needed to skip 2 blocks at the end
(which is unrealistic). Comparing the current index to the reader index is incorrect
since we may end up at the same index in another segment.
2018-04-01 00:04:02 -07:00
Pavel Krymets a76d51c46b Revert "Update jquery-validation-unobtrusive (#421)"
This reverts commit ac9addabcc.
2018-03-31 16:24:07 -07:00