Commit Graph

20825 Commits

Author SHA1 Message Date
Kevin Pilch 158401f361
Add public API baselines to SignalR (#25653) 2020-09-10 11:44:04 -07:00
Juan Hoyos dda1d33f7b
Enable ARM64 installers build. (#25579)
Changes WiX toolset used to 3.14 to support ARM64
Generates targeting pack from the x86/x64 leg, as it gets produced using a zip that gets generated there.
The ARM64 leg now produces all the necessary msi's, exe, and wixlib needed for the installer to generate a bundle.
2020-09-10 10:59:37 -07:00
Javier Calvarro Nelson 31fcc8bd26
Update error page (#25706) 2020-09-10 10:20:19 -07:00
Javier Calvarro Nelson 0637599517
Update DfaMatcherBuilder to use the correct behavior (#25616) 2020-09-10 10:18:32 -07:00
Pranav K 2228c98b88
Use ICU sharding (#25521) 2020-09-10 10:17:02 -07:00
Kevin Pilch 6828192780
Add public API baselines for Servers (#25652) 2020-09-09 21:07:55 -07:00
Kevin Pilch 14a3862f5f
Add Public API baselines for Security (#25651) 2020-09-09 21:07:15 -07:00
John Luo 035221d731
Add cache for retrieved RBAC claims (#25698) 2020-09-09 14:24:48 -07:00
William Godbe 76fbd1a283
Strip duplicate files from SharedFx input to Nuget Pack (#25733) 2020-09-09 14:15:17 -07:00
Mackinnon Buck 8f461884c9
Update JSCallResultTypeHelper.cs (#25628)
* Update JSCallResultTypeHelper.cs and PublicAPI.Unshipped.txt

* CR feedback.

* Removed exception message
2020-09-09 13:33:47 -07:00
Mackinnon Buck 43ef580773
Fixed content type issue (#25702) 2020-09-09 13:30:13 -07:00
Stephen Halter b3f4a32d23
Increase SignalR Java client test timeouts to 30 seconds (#25639) 2020-09-09 11:26:51 -07:00
Steve Sanderson ecc2ba16b8
Accessibility fixes (#25678)
* Fix header tab ordering issues. Fixes 1163117

* Ensure text can be zoomed to 200% without switching to mobile layout. Fixes 1163184.

* Ensure "Log out" link can show focus state. Fixes 1162890

* Use screen reader-friendly link text. Fixes 1163642

* Update template test
2020-09-09 11:08:10 -07:00
Artak 0d548f302b
Enable PlatformCompatibilityAnalyzer for RCL projects (#25636) 2020-09-09 09:57:42 -07:00
Steve Sanderson c5bcd68853
Fix wasm caching on localhost and various E2E test issues (#25689)
* Fix caching of WASM resources on localhost

* Fix test server startup

* Add missing server variant of VirtualizationTest

* Make test namespaces consistent

* Fix VirtualizationTest cases

* Update BootResourceCachingTest
2020-09-09 09:54:45 -07:00
Pranav K 646925127b
Move ProtectedBrowserStorage to the shared fx (#25557)
* Move ProtectedBrowserStorage to the shared fx

* Fixups

* Fixup
2020-09-09 09:54:14 -07:00
Steve Sanderson 9f5276d17a
Update RCL template to use 5.0 features (#25613)
* Update JS interop to use auto-loaded ES6 module

* Test update

* Make it lazy for compatibility with prerendering

* Update comment

* Code style: go back to .AsTask - it's probably easier to read
2020-09-09 08:25:26 -07:00
dotnet-maestro[bot] 95763af89a
[release/5.0-rc2] Update dependencies from dotnet/arcade dotnet/runtime dotnet/efcore (#25555)
[release/5.0-rc2] Update dependencies from dotnet/arcade dotnet/runtime dotnet/efcore
- Updates:
  - System.ComponentModel.Annotations: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Diagnostics.DiagnosticSource: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Diagnostics.EventLog: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.DirectoryServices.Protocols: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.Configuration: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.Console: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.Debug: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.EventLog: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.EventSource: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging.TraceSource: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Options: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Options.ConfigurationExtensions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Options.DataAnnotations: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Primitives: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Logging: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Internal.Transport: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Http: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Hosting.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Caching.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Caching.Memory: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.Binder: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.CommandLine: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.EnvironmentVariables: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.FileExtensions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.Ini: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.UserSecrets: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.Xml: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.DependencyInjection: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.DependencyInjection.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.DependencyModel: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.FileProviders.Abstractions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.FileProviders.Composite: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.FileProviders.Physical: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.FileSystemGlobbing: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.HostFactoryResolver.Sources: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Hosting: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Extensions.Configuration.Json: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.NETCore.App.Runtime.win-x64: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.NETCore.BrowserDebugHost.Transport: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.NETCore.Platforms: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Win32.Registry: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.Win32.SystemEvents: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.NETCore.App.Internal: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - Microsoft.NETCore.App.Ref: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Drawing.Common: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Threading.Channels: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Windows.Extensions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Text.Json: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Text.Encodings.Web: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.ServiceProcess.ServiceController: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.IO.Pipelines: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Net.Http.Json: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Net.Http.WinHttpHandler: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Net.WebSockets.WebSocketProtocol: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Reflection.Metadata: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Runtime.CompilerServices.Unsafe: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.AccessControl: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.Cryptography.Cng: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.Cryptography.Pkcs: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.Cryptography.Xml: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.Permissions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Security.Principal.Windows: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25
  - System.Resources.Extensions: from 5.0.0-rc.2.20452.8 to 5.0.0-rc.2.20454.25

- Updates:
  - Microsoft.EntityFrameworkCore.Tools: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore.SqlServer: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - dotnet-ef: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore.Design: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore.Relational: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore.Sqlite: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4
  - Microsoft.EntityFrameworkCore.InMemory: from 5.0.0-rc.2.20452.4 to 5.0.0-rc.2.20458.4

- Updates:
  - Microsoft.DotNet.Build.Tasks.Installers: from 5.0.0-beta.20431.1 to 5.0.0-beta.20452.19
  - Microsoft.DotNet.Helix.Sdk: from 5.0.0-beta.20431.1 to 5.0.0-beta.20452.19
  - Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20431.1 to 5.0.0-beta.20452.19

 - System.IO.Pipelines Fix

(cherry picked from commit 520b9e23f027d7cca49d33f1dc6b2a0e57c893b3)

 - Skip reference check of System.IO.Pipelines ref/ assembly
- add Framework projects to solution
- add Framework.slnf and startvs.cmd in src/Framework

 - Merge branch 'release/5.0-rc2' into darc-release/5.0-rc2-d6b9c1c0-be36-4d12-b860-e7e54a75cb6d
2020-09-08 23:34:53 +00:00
Brennan 4718c11f4d
Add incremental build and project references to java projects (#25707)
* Add incremental build and project references to java projects

* fb

* fix version
2020-09-08 16:30:18 -07:00
John Luo 0a33267c1c
Simplify blazorserver template for individual local auth support (#25523) 2020-09-08 15:42:19 -07:00
Brennan 9cbf55b094
[Java] Fix close with LongPolling (#25582) 2020-09-08 10:54:09 -07:00
Doug Bunting 475fc569d9
[release/5.0-rc2] Add public API baselines for Components (#25660)
- part of #24347
- unable to do src/Components/Authorization due to contained `*.razor` file
- ignored src/Components/Analyzers and src/Components/WebAssembly/Sdk
2020-09-06 21:33:03 -07:00
Doug Bunting 2c1f1f6684
Remove extra public API baseline files (#25655)
- part of #24347
2020-09-06 16:37:29 -07:00
Doug Bunting ad5e173f5c
[release/5.0-rc2] Add public API baselines for HTML and HTTP (#25638)
- part of #24347
2020-09-06 14:26:02 -07:00
Brennan 2fb2055d1e
Quarantine BundlesScopedCssFiles_UpdatesBundleWhenContentsChange (#25656) 2020-09-06 11:52:39 -07:00
Kevin Pilch 956c24e2c8
Add PublicAPI baselines for Middleware (#25602) 2020-09-05 15:41:20 -07:00
John Luo c902645115
Add MigrationsEndPoint when DatabaseDeveloperPageExceptionFilter is used (#25554) 2020-09-04 15:46:14 -07:00
Mackinnon Buck 20af9b88bb
Update PublicAPI.Unshipped.txt (#25629)
- unbreak the build
2020-09-04 12:09:29 -07:00
Javier Calvarro Nelson 3d38d397ae
[Blazor] CSS isolation follow-ups (#25565)
This change includes several improvements to CSS isolation that we have gathered from validation and usage feedback.

We have switched from producing a single scoped CSS bundle file for the entire application with all the scoped css files from the current project, referenced projects and package projects to producing one bundle per referenced project/package and to include those bundles into an "application" bundle throught CSS @import statements.

We have cleaned up the bundle names to make them more unique by including the project name on them and we have also cleaned up the bundle extensions.

We have decided to put the individual bundles generated for the project scoped css assets into the static web assets base path of the project, so that when developers reference assets from their scoped css files (like using the CSS url function) the path they use matches what they have inside their library wwwroot folder.

We have decided to put the application bundle on the root path of the application provided that the developer has not overriden the default StaticWebAssetsBasePath.

This is so that the bundle location is consistent across templates, and can be found at ProjectName.styles.css independent of whether the app is a blazor webassembly app or a server side blazor app.

For cases where the default StaticWebAssetBasePath has been overriden, the value is respected and the bundle is placed at $(StaticWebAssetBasePath)/ProjectName.styles.css.

Packaged razor class libraries with scoped css files now package a "project" bundle instead of the individual files.
2020-09-04 10:54:44 -07:00
Mackinnon Buck bbc7fd8192
IJSUnmarshalledObjectReference for unmarshalled JS interop calls on JavaScript objects. (#25548)
* Added IJSUnmarshalledObjectReference

* Working support for IJSUnmarshalledObjectReference

* CR feedback

* Removed IVT and made JSObjectReference public

* Updated JSON converter.

* Update JSObjectReferenceJsonConverterTest.cs

* Removed whitespace 😓
2020-09-04 10:27:10 -07:00
Artak fe1a881b0e
Merge pull request #25520 from dotnet-maestro-bot/merge/release/5.0-to-release/5.0-rc2
[automated] Merge branch 'release/5.0' => 'release/5.0-rc2'
2020-09-04 09:01:50 -07:00
Kevin Pilch 844bcb557c
Add Public API Baselines for JSInterop, Localization, Logging.AzureAppServices (#25586) 2020-09-03 17:20:48 -07:00
Kevin Pilch c77b8f1b92
Add PublicAPI baselines for Identity (#25578)
Except Identity.UI, since it has Razor files.
2020-09-03 14:01:45 -07:00
Mackinnon Buck 8418ef66e3
Various virtualization improvements. Fixes #25535 (#25260)
* Use ItemSize if it's close to the calculated item size.

* Update WeatherForecastService.cs

* Improved item size calculation.

* Always use calculated item size

* Disable overflow anchoring on scroll containers (except the document itself)

* Update JS files following rebase

* Apply overflow anchor fix to document element too

* Add OverscanCount parameter

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-09-03 10:29:47 -07:00
Pranav K 12c016567c
Reject control characters in IsLocalUrl check (#25378)
Fixes https://github.com/dotnet/aspnetcore/issues/18109
2020-09-02 23:37:46 -07:00
Justin Kotalik d2c31edc14
Improving logs from hostfxr (#25541) 2020-09-02 15:54:41 -07:00
Mackinnon Buck 2a0b7dc43e
JSObjectReference API review follow-up (#25476)
* API review changes.

* Fixed JSObjectReferenceJsonConverter

* CR feedback

* Update JSObjectReferenceExtensions.cs
2020-09-02 15:09:26 -07:00
Stephen Halter 6ec1b48118
Quarantine UseHttpsWithAsyncCallbackDoeNotFallBackToDefaultCert (#25543) 2020-09-02 14:40:37 -07:00
Ben Adams 3254f71b95
Make IdentityServer.Configuration.KeyDefinition linker friendly (#25524) 2020-09-02 09:20:14 -07:00
Ben Adams ab3799f651
Make CertificateConfig linker friendly (#25515) 2020-09-02 09:19:13 -07:00
William Godbe 9036b0c11d
Merge branch 'release/5.0-rc2' into merge/release/5.0-to-release/5.0-rc2 2020-09-02 09:18:51 -07:00
William Godbe b44c628067
Separate MessagePackHubProtocol into its own package (#25253)
* Separate MessagePackHubProtocol into its own package

* Remove gitignore

* Maybe undo this later

* More factoring

* Get gradle test working

* Get gradle test working

* Get rid of version.java

* Separate build.gradle files for all

* Create separate javaproj's for everything

* Fix warnings

* Resolve conflicts

* Fixup gitignore

* Feedback, fix error

* Fix error

* Change package name

* Fix folder structure

* Skip helix tests, fix .gitignore

* Make TransferFormat private
2020-09-01 17:37:56 -07:00
Doug Bunting 5438f84ae5
Merge pull request #25500 from dotnet-maestro-bot/merge/release/5.0-to-release/5.0-rc2
[automated] Merge branch 'release/5.0' => 'release/5.0-rc2'
2020-09-01 16:00:06 -07:00
Justin Kotalik ee712265d5
Make startup timeout recycle worker process (#25321) 2020-09-01 15:30:28 -07:00
John Luo 6bdb4b95f9
Fix BlazorServer Identity templates (#25456)
Remove @using Microsoft.AspNetCore.Components.Web.Virtualization in blazorserver template.
2020-09-01 09:30:00 -07:00
Kévin Chalet 29042be4cc
Declare AddScheme's displayName parameter as nullable (#25480) 2020-09-01 09:23:07 -07:00
William Godbe b434b8e3f3
Add more assembly version testing for SharedFx/Targeting pack (#25474)
* Add more assembly version tests packs

* Add more tests

* Fix test, feedback
2020-09-01 09:12:13 -07:00
Kevin Pilch 95c526fcae
Api baselines (#25386)
* Enable Public API analyzer for some projects

* Analyzers
* Antiforgery
* Azure (except AzureAD.UI and AzureADB2C.UI due to issues with Razor compiler)
* Configuration.KeyPerFile
* DataProtection
* DefaultBuilder
* Features/JsonPatch
* FileProviders
* HealthChecks
* Hosting
2020-09-01 07:34:28 -07:00
John Luo 222dd67175
Fix Unhandled DBErrors in ComponentsWebAssembly and Spa templates (#25466)
* Add workaround for EF issue dotnet/efcore#22341
2020-09-01 07:26:33 -07:00
Doug Bunting 7579b300f7
Mark some projects as non-packable or non-shippable (#25468)
- used `$(IsTestAssetProject)` in src/Razor/test; slightly more correct
  - we don't have a special category for test infrastructure projects
2020-08-31 22:46:53 -07:00
Stephen Halter 04f23ecfc4
Add async ServerOptionsSelectionCallback UseHttps overload (#25390) 2020-08-31 17:13:19 -07:00
Justin Kotalik 071a539ae5
Avoid build race between x64 and x86 (#25465) 2020-08-31 15:21:21 -07:00
Matt Mitchell 6a3ce0d974
Add light/lit command packages (#25334)
* Add light/lit command packages
This adds light command package generation to aspnetcore.
After build of a wix project, generate a light package based off of the inputs that are sent to light.exe/lit.exe.
2020-08-31 14:19:34 -07:00
Brennan a73ae505a2
System.Security.Cryptography fails on WASM (#25285) 2020-08-31 13:53:55 -07:00
Doug Bunting 27582545ba
Correct the site extensions builds (#25406)
- handle differing SiteExtensions package versions
  - the arch-specific packages don't stabilize when final package does
- update 3.1 packages in bundle to 3.1.7 version
- remove useless empty folder from LoggingBranch (arch-specific) package
  - double slashes help nobody but add an empty-named level in the package

nit: fix a binary log filename
2020-08-31 12:26:04 -07:00
Mackinnon Buck cca4bef83b
Fix InputRadioGroupsWithNamesNestedInteractWithEditContext (#24859)
* Fixed stale element issues

* Reverted changes to blazor.server.js and blazor.webassembly.js
2020-08-31 11:56:17 -07:00
Doug Bunting 1f84e28882
Use `$(TargetFrameworkIdentifier)` and `$(TargetFrameworkVersion)` consistently (#25428)
- always use `$([MSBuild]::VersionXYZ(...))` for version checks
- use `$(NETCoreAppFrameworkIdentifier)` where it's available
- move `$(KnownAppHostPackOrFrameworkReferenceTfm)` setting to Directory.Build.props
  - use it to correct `@(KnownFrameworkReference)` updates
  - metadata of those items still uses `netcoreapp5.0`
  - see also https://github.com/dotnet/efcore/pull/22279#discussion_r478674176

nits:
- do not assume `$(TargetFrameworkVersion)` starts with a 'v'; valid w/o it
- add `$(_IsMicrosoftNETCoreApp20OrOlder)` property in OpenAPI targets file
  - evaluate the `Condition` once instead of three times
2020-08-31 11:36:19 -07:00
Pranav K e4b1950bc0
Set PrivateAssets on transport package (#25450)
The transport package does not ship and we do not want it to appear in WebAssembly.Server's nuspec.
2020-08-31 11:30:43 -07:00
Chris Ross 1cf67b3faf
Fix ClearsResponseBuffer_BeforeRequestIsReexecuted #24146 (#25294) 2020-08-31 10:20:05 -07:00
github-actions[bot] 2ea674021f
Sync shared code from runtime (#25435)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-31 10:19:44 -07:00
Safia Abdalla 50f739a4bc
Set supported platform on Shared project (#25376) 2020-08-31 10:17:33 -07:00
Safia Abdalla bb62621f37
Add guard checks to PageLoaderMatcherPolicy when loader returns asynchronously (#25370) 2020-08-31 10:16:36 -07:00
Mackinnon Buck c2f97933fe
InputFile follow-up (#25248)
* Changes from API review

* Feedback from security review

* Update IBrowserFile.cs

* Updated documentation.

* Moved InputFile to M.A.Components.Forms

* More changes

* Move ProtectedBrowserStorage to it's own package
* Mark Components.Web.Extensions as non-shipping until we can move it over
* Allow InputFile.OpenReadStreamAsync to specify an expected file size.

* Fix E2E tests

* CR: Throw if user supplies too many files.

* Another build fix

* CR: Zero files is not a scenario

* Update E2E tests

* Update JS binaries after rebase

* Update test

Co-authored-by: Pranav K <prkrishn@hotmail.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-08-31 09:07:36 -07:00
David Fowler 5292fed790
Restore legacy behavior for certs without private keys (#25344)
* Restore legacy behavior for certs without private keys
- When trying to use an SSL certificate without a private key, SslStream would try to find another certificate in the cert store matching the thumbprint. Now that we're using the SslStreamCertificateContext, that behavor is no longer included so we need to restore it in Kestrel.

* Handle cert store failing to open
2020-08-29 16:14:00 -07:00
Chris Ross 9f0eefb4c1
Skip hanging IIS tests (#25379)
* Report IIS Express Startup failures

* Skip hanging IIS tests #25107
2020-08-29 16:09:39 -07:00
John Luo 44175edd79
Update Microsoft.AspNetCore.SpaServices.Extensions.csproj
Fixup the comment to more accurately describe what occured
2020-08-29 00:34:36 -07:00
Artak f891c2b15d
Merge pull request #25256 from dotnet/prkrishn/dotnet-watch
Allow dotnet watch to refresh on changes to .razor files in reference…
2020-08-28 20:23:59 -07:00
Jean-Marc Prieur 744e96b23d
Updating Web project templates to ms.id.web 0.3.0-preview (#25309)
* Updating Web project templates to ms.id.web 0.3.0-preview

* version bump
and quick fix to the Blasorwasm default values for
the Web api so that customers have a better experience

* Microsoft.Graph is brought in transitively by MS.ID.Web

Co-authored-by: John Luo <johluo@microsoft.com>
2020-08-28 19:56:37 -07:00
Justin Kotalik 4797582279
Call inner disable buffering feature (#25251)
* Call inner disable buffering feature

* Update StreamResponseBodyFeature.cs
2020-08-28 16:25:42 -07:00
Artak 5ba7c70a36
Merge pull request #25362 from dotnet/pranavkm-patch-2
Do not specify TaskCreationOptions \ TaskContinuationOptions in JSRuntime
2020-08-28 15:31:32 -07:00
Artak 0ebd5f040b
Merge pull request #25277 from dotnet/prkrishn/nullability-feedback
Address nullability feedback
2020-08-28 15:30:22 -07:00
Pranav K f733fe9967
Update src/Razor/Microsoft.NET.Sdk.Razor/src/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets 2020-08-28 14:09:11 -07:00
John Luo 7438f7aabe Suppress baseline reference of Microsoft.AspNetCore.SpaServices
This was removed in release/5.0
2020-08-28 12:11:13 -07:00
Artak 4df35c7540
Merge pull request #25292 from dotnet/razor_source_generators
Pass generators to CSC during component discovery
2020-08-28 11:32:30 -07:00
Artak b51d2fe838
Merge pull request #25290 from dotnet/prkrishn/remove-spaservices
Remove NodeServices + SpaServices
2020-08-28 10:30:03 -07:00
Artak 3db5c9cbc5
Use MonoProxy package for debugging (#24721)
* Use MonoProxy package for debugging

* Initial working end-to-end

* Update package version and polish up dbging issues

* Throw exception if DebugProxy received no output
2020-08-28 10:29:34 -07:00
Safia Abdalla 3c3995f653
Add media type mappings for .blat files (#25284) 2020-08-28 10:29:24 -07:00
Pranav K aedd646f6f
Update JSRuntime.cs 2020-08-28 09:53:25 -07:00
Doug Bunting 31bd4d4b1d
[release/5.0] Correct baseline checks (#25227)
- mostly duplicates #25217
- update `BaselineGenerator` to produce baselines useful in 6.0 (too)
- update Baseline.Designer.props using new generator (matching 3.1.7 release)
- always suppress references expressed only in `*.nuspec` files
  - needed even in servicing builds
- restore warning and errors about removed references (new for 5.0)
  - adjust exclusions to handle `@(_ProjectReferenceByAssemblyName)` removal

nit: do not generate empty `<ItemGroup />` elements

* Correct `@(SuppressBaselineReference)` items
  - remove out-of-date `@(SuppressBaselineReference)` items
    - either 3.1.7 baselines we're using don't include reference or still using package
    - fix some comments and `Condition` attributes to make remainder easy to find
  - add missing `@(SuppressBaselineReference)` items
2020-08-28 09:53:20 -07:00
Pranav K 7686c0b4e7
Record type follow ups: (#25218)
* Record type follow ups:

* Throw an error if a record type property has validation metadata
* Disallow TryUpdateModel on a top-level record type
* Ignore previously specified model value when binding a record type
* Unskip record type tests
* Clean up record type detection

* Update src/Mvc/Mvc.Abstractions/src/Resources.resx

Co-authored-by: James Newton-King <james@newtonking.com>

* Fixup tests

* Update src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs

* Update src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelMetadata.cs

* Update src/Mvc/Mvc.Abstractions/src/Resources.resx

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>

* Update src/Mvc/Mvc.Core/src/Resources.resx

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: James Newton-King <james@newtonking.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2020-08-28 09:42:11 -07:00
Kevin Pilch 748b368d54
Handle auth schemes in cookie names (#25279)
* Handle auth schemes in cookie names #25266

* With unicode
2020-08-28 09:00:36 -07:00
Safia Abdalla 97280fe5f6
Revert identity package workaround and bump versions (#24819)
* Revert "Add workaround for deprecated overload in authentication scenarios (#24600)"

This reverts commit 7eb58e045d.

* Update identity package versions
2020-08-28 09:00:09 -07:00
Steve Sanderson d793f473c4
Support pseudoelements in CSS scoping (#25270)
* Support pseudoelements in CSS scoping. Fixes #25268

* CR: More test cases

* Another pseudoelement case

* Case insensitivity for single-colon pseudoelements

Not that anybody should ever want to do this

* Avoid an allocation
2020-08-28 08:37:37 -07:00
Steve Sanderson ebaaa0f01d
Fix minimized attributes when using 5.0 SDK with 3.x target (#25307)
* Write minimized attribute values explicitly for older language version

* Add tests

* Add baselines for new tests
2020-08-28 08:37:30 -07:00
Safia Abdalla 6f780bb9ea Throw exception if DebugProxy received no output 2020-08-28 08:25:49 -07:00
Safia Abdalla a3ed9add5d Update package version and polish up dbging issues 2020-08-28 08:25:49 -07:00
Safia Abdalla 302d79a347 Initial working end-to-end 2020-08-28 08:25:18 -07:00
Safia Abdalla 691910c67d Use MonoProxy package for debugging 2020-08-28 08:23:30 -07:00
William Godbe ce058f639c
Add net461 TFM to netstandard2.0 projects (#25094)
* Add net461 TFM to netstandard2.0 projects

* Fix a couple of errors

* Fix some errors

* Get rid of Sockets reference

* Respond to feedback

* net461 -> property

* Fixup clientSample

* Remove net461 from analyzers/razor

* Remove net461 from test projects

* Feedback

* Add net461 test configs

* Remove some incompatible test configs

* Fix test
2020-08-27 16:05:40 -07:00
Chris Sienkiewicz aa51b8c1d1 Remove unsupported SkipAnalyzers param 2020-08-27 15:57:56 -07:00
Chris Sienkiewicz 866df807a8 Disable compiler warnings during component discovery phase 2020-08-27 15:57:33 -07:00
William Godbe a54c5baf7a
Add TypeReference class to signalr java client (#25286)
* Add TypeReference class to signalr java client

* Fix syntax

* Add comments

* Update src/SignalR/clients/java/signalr/src/main/java/com/microsoft/signalr/TypeReference.java

Co-authored-by: Brennan <brecon@microsoft.com>

* Feedback

Co-authored-by: Brennan <brecon@microsoft.com>
2020-08-27 15:56:51 -07:00
John Luo 7b8fe53234
Disable failing/hanging tests due to Chrome/Selenium issue (#25323) 2020-08-27 13:16:01 -07:00
Chris Sienkiewicz d9590840d9 Pass generators to CSC during component discovery 2020-08-26 18:08:24 -07:00
Pranav K 87a51a358a
Merge branch 'release/5.0' into prkrishn/nullability-feedback 2020-08-26 16:38:48 -07:00
Brennan f2b72b0511
Fix SignalR typescript tests with Chrome SameSite reaction (#25283)
* Fix Typescript tests
* fixup
2020-08-26 14:23:01 -07:00
Pranav K 5ed38b7eeb
Remove NodeServices + SpaServices
Follow up to https://github.com/dotnet/aspnetcore/pull/24912.
Not shipping NodeServices isn't enough since it's referenced by SpaServices. This PR removes the two packages
that were announced to be removed in 5.0
2020-08-26 14:19:07 -07:00
Pranav K c4dde35e37
Remove test 2020-08-26 13:48:19 -07:00
Mackinnon Buck 2916f4b09b
Fixed server interop reliability tests (#25244) 2020-08-26 12:56:56 -07:00
Safia Abdalla e2dd2969b5
Set SameSiteMode for cookies in authentication tests (#25281) 2020-08-26 12:22:34 -07:00
Chris R f33937f04d With unicode 2020-08-26 12:04:14 -07:00
Chris R 4636950bfa Handle auth schemes in cookie names #25266 2020-08-26 11:32:05 -07:00
Pranav K 00bbb78d3c
Address nullability feedback
Fixes https://github.com/dotnet/aspnetcore/issues/25275
2020-08-26 09:55:27 -07:00
Pranav K 28e18c3058
Allow dotnet watch to refresh on changes to .razor files in referenced projects
dotnet-watch expects full paths to files to watch in all added items. For files in the current project, this
happens to work. However this does not work very well for files in referenced projects. Using the FullPath metadata
does not work during global evaluation, but we're able to do this in a target.

This change adds extensibility to the dotnet-watch tool that allows calling a target as part of "watch" evaluation.

Fixes https://github.com/dotnet/aspnetcore/issues/22219
2020-08-25 16:03:32 -07:00
John Luo 098be5f5ee
Use LDAP support from DirectoryServices.Protocols for RBAC claim resolution on Linux for Negotiate (#25075) 2020-08-25 13:21:46 -07:00
Doug Bunting c2f0331805
Include project file in F# Worker Service template (#25180)
- add test of this project template
2020-08-25 10:47:37 -07:00
Pranav K b0530a68c0
Do not include the shared framework in the packages (#24816)
* Do not include the shared framework in the packages

DevServer and dotnet-watch include binaries from the ASP.NET Core shared framework
as part of the package. This change compiles these projects against the most recently built
version of the shared framework which ensures build and publish work as normals. Individual
projects from the runtime can be referenced to pick up new runtime features when necessary

* More hacks!

* Ensure shared runtime is built before running tests

* Delete dotnet-watch.nuspec
2020-08-25 10:03:58 -07:00
Javier Calvarro Nelson 402dc41d33
[Blazor] Render Blazor Webassembly components from MVC (#25203)
* Server pieces

* Changes for prerendering

* Discover client components

* tmp

* Cleanup

* Cleanups

* Undo changes

* Remove unwanted changes

* Move interop class to its own file

* Cleanup unwanted changes

* Add test rendering multiple client-side components

* Unit tests and E2E tests

* Cleanups

* Addressed feedback

* Rename Client to WebAssembly in RenderMode

* Update generated js files

* Cleaned up JS and addressed feedback

* Client->WebAssembly and other feedback

* Unify component discovery code and use webassembly instead of 'client'

* Update js files

* Fix tests
2020-08-25 09:30:24 -07:00
Pranav K 78a587b02e
Guard against client disconnect exceptions that appear when reading body (#25146)
* Guard against client disconnect exceptions that appear when performing ReadFormAsync

Reading the request body may throw an exception. This change adds some extra guards
for this and presents this as a 4xx response rather than a 5xx response.

* Add some tests

* Fixup test
2020-08-25 09:29:50 -07:00
Steve Sanderson a9b596e091
Prevent @import in scoped CSS (#25196)
* Reject @import rules in scoped CSS files

* CR feedback: Use SourceText

* CR feedback: Another test case

* Use same file reading mechanism as "generate" command
2020-08-25 09:28:14 -07:00
Steve Sanderson 64c47b733f
Support custom validation class names (#24835)
* Store arbitrary properties on EditContext

* Define FieldCssClassProvider as a mechanism for customizing field CSS classes

* Add E2E test
2020-08-25 09:27:43 -07:00
Justin Kotalik 6333040b5a
Fix MaxRequestBodySize in IIS (#25096)
* Fix MaxRequestBodySize

* Apply suggestions from code review

Co-authored-by: Chris Ross <Tratcher@Outlook.com>

* Update test

* Keep IIS limit default and update API comment

* Update tests

Co-authored-by: Chris Ross <Tratcher@Outlook.com>
2020-08-25 09:12:58 -07:00
Chris Ross e409c97612
Allow suppressing the use of environment variables (#25136)
* Allow suppressing the use of environment variables #20328

* Formatting

* Update src/Hosting/Hosting/src/WebHostBuilderOptions.cs

Co-authored-by: Kahbazi <akahbazi@gmail.com>

Co-authored-by: Kahbazi <akahbazi@gmail.com>
2020-08-24 23:28:17 -07:00
Mackinnon Buck 8a2f29bb53
JSObjectReference (#25028) 2020-08-24 21:02:19 -07:00
Pranav K 29cbf6e106
Make PropertySetter a concrete type (#25054)
* Make PropertySetter a concrete type

* Use the pattern from PropertyHelpers to set property values
* Tweaks to Blazor WebAssembly tests to allow running tests locally

* Update src/Components/Components/src/Reflection/IPropertySetter.cs
2020-08-25 01:54:28 +00:00
Brennan db77380c84
Java client connection state part 1 (#24166) 2020-08-24 16:45:33 -07:00
ar0311 f2c3c11a2d
Minor typos (#25140) 2020-08-24 15:51:09 -07:00
Steve Sanderson faf1d80af1
Follow-ups from PR 23385 (#24834)
* Make preservewhitespace use FileScopedSinglyOccurring

* Design-time experience for boolean directive tokens

* Update baselines
2020-08-24 14:02:21 +01:00
Chris Ross 11bae8a112
Identifying if a request has a body #24175 (#24984) 2020-08-24 06:38:40 +00:00
Chris Ross e5ab127f74
Update OAuth providers #4684 (#25112) 2020-08-23 17:04:43 -07:00
Pranav K 85835c7134
Default new runtime feature switches (#25108)
Porting #23932 to WebAssemblySDK.

* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fixes https://github.com/dotnet/aspnetcore/issues/25099

If there is an ask mode template to fill out, let me know and I can do it.
2020-08-22 14:35:13 +00:00
Sourabh Shirhatti 826bc84183
Add wireshark logging. Replaces #23088 (#25139)
* Add wireshark style logging in Kestrel

* More Append!

* Update third party notices

Co-authored-by: Kahbazi <A.Kahbazi@gmail.com>
2020-08-22 03:16:54 +00:00
Pranav K 134850b4a2
Update rzc to ne5.0 (#25111) 2020-08-22 02:44:08 +00:00
Pranav K 0960a7a0c5
Configure OpenAPI as part of webapi project template creation (#25110)
* Configure OpenAPI as part of webapi project template creation
Fixes https://github.com/dotnet/aspnetcore/issues/25080

* Update to default to WebAPI
2020-08-21 23:44:11 +00:00
Pranav K 50815ed598
JSInterop nullability PR feedback (#25114) 2020-08-21 22:24:32 +00:00
Safia Abdalla ecf2a23d3d
Update to @azure/msal-browser@2.0.0 (#24827)
* Update to @azure/msal-browser@2.0.0
* Retain promise during initialization
* Set knownAuthority hostname from authority URL
* Add KnownAuthorities config option and fix silent sign-in
* Set knownAuthorities default to empty list
2020-08-21 11:15:41 -07:00
Pranav K 3e8c5c48f0
Add support for views + SingleFileExe (#24925)
* Add support for views + SingleFileExe
2020-08-20 19:46:58 -07:00
Mackinnon Buck 0b1042c54e
InputFile Component (#24640) 2020-08-20 17:52:41 -07:00
Eric Erhardt a700662dec
Quote the ToolAssembly path in BrotliCompress task. (#25101)
Fix #25098
2020-08-20 23:36:09 +00:00
Brennan 04a704c929
[Java] Observe accessTokenProvider on error (#24344) 2020-08-20 16:27:20 -07:00
Pranav K 6a9241b920
Skip test for now 2020-08-20 14:59:39 -07:00
Juan Barahona 601fc20ece
Add enhancement to default behavior of client reconnection (#24992)
These changes are to improve the default reconnection behavior of the client

- [x] Match the reconnection time with server side
- [x] Add indicator to know at which reconnection attempt we currently are
- [x] [Additional] Add a loader symbol
- [x] Add client side test

Addresses #18745
2020-08-20 14:12:04 -07:00
Brennan c181218a4e
Run 1 browser at a time in SignalR javascript functional tests (#25083) 2020-08-20 13:16:23 -07:00
James Newton-King 920d93590d
Remove HTTP/2 headers from request primary headers (#24900) 2020-08-21 07:39:40 +12:00
William Godbe 8522ba8e55
Add MessagePack support for Java SignalR Client (#23532)
* Implement ParseMessages for java messagePack client

* Fix some spacing & syntax

* Implement write

* Tab -> Spaces

* MessagePacker -> MessageBufferPacker

* Tabs -> Spaces

* Tabs -> Spaces

* InvocationMessage may not include streamIDs

* Only 1 ctor per message type

* Fixup HubConnection.java

* Change return type of parseMessages to List

* Fix HubConnection

* Check for primitive value before returning

* Implement length header prefix

* Minor fixes

* Use ByteBuffer to read length header

* Add case for Char

* Close unpacker

* Typo

* Override onMessage w/ ByteString

* Change OKHttpWebSocketWrapper

* Account for nil InvocationId

* Change interface & MessagePack impl

* Update JsonHubProtocol

* Use ByteBuffer

* Fixup HubConnection

* Fixup more stuff

* Convert more stuff to ByteBuffer

* Account for ReadOnly

* Spacing

* No need to reset ByteBuffer when setting position

* Add Protocol to HubConnection ctor

* Set default, make stuff public

* Fixup tests

* More test cleanup

* Spacing

* only grab remaining buffer bytes in json

* Last test fixes

* Get rid of some unused imports

* First round of msgpack tests

* Flip condition

* Respond to feedback

* Spacing

* More tests

* Add test for primitives

* Add more tests, start using msgpack-jackson

* Fix build.gradle

* Remove debug prints

* Start using Type instead of Class

* Add overloads for Type, make messagePack readValue() more efficient

* Apply feedback, add some tests

* Add some tests, fix some tests

* Fix tests for real

* Add a whole buncha tests

* Add TestUtils change that I didn't commit yesterday

* Respond to some feedback

* Add a couple Json tests

* Apply more feedback

* Move readonly fix to msgpack

* Minor optimization

* Fixup some javadocs

* Respond to feedback

* Remove TypeReference, make Protocols private again

* Feedback
2020-08-20 12:12:41 -07:00
Pranav K 4f64c65325
Add a regression test for web.config transform (#25056)
This was resolved as part of moving to the WebAssembly SDK.
A test that would have helped us catch this sooner. This change addresses the test gap.

Resolves https://github.com/dotnet/aspnetcore/issues/24568
2020-08-20 10:14:53 -07:00
Javier Calvarro Nelson 3c34c3ab0d
[Https] Various improvements to the dev-certs tool (#25037)
* Add support for the trust option on Linux on the command-line tool and print a message when it's used pointing to docs.
* Bump the certificate version to 2 to ensure that the certificate gets updated for 5.0 on Mac OS.
* Ensure we always select the certificate with the highest available version to ensure that when we change the certificate in the future older runtimes pick up the new certificate.
* Support exporting the certificate without key on PEM format.
2020-08-20 09:55:56 -07:00
James Newton-King 818279f1f5
Add HealthChecks to solution and enable nullable in tests (#25059) 2020-08-20 15:04:44 +00:00
John Luo 4c381e83d2
Throw original exception if exception handler is not found (#25062)
* Throw original exception if exception handler is not found
2020-08-20 02:45:07 -07:00
Safia Abdalla 8fc1419186
Make OnNavigateAsync EventCallback and cancel previous navigation (#25011)
* Make OnNavigateAsync EventCallback and cancel previous navigation

* Add more tests
2020-08-19 18:25:24 -07:00
Brennan 5193f8f428
Quarantine a couple kestrel flaky tests (#25047) 2020-08-19 16:00:18 -07:00
Brennan 85bde1da5e
Parallel hub invocations (#23535) 2020-08-19 14:58:24 -07:00
Brennan df04381411
Quarantine flaky Razor Integration tests (#25043) 2020-08-19 14:34:12 -07:00
Justin Kotalik 9f398d9a56
Fix Http/3 and mark multiplexed factory as experimental (#25012)
* Fix Http/3 and mark multiplexed factory as experimental

* mark apis as internal and delete quic samples

* Remove extra public api

* Mark kestrel server as obsolete

* Fixing obsoletion and improved message

* Revert "Fixing obsoletion and improved message"

This reverts commit acdae8713d467264b4b3762b56fb4b882fa9127d.

* Revert "Mark kestrel server as obsolete"

This reverts commit fbd861f53afe93951b1f9cd004859551e085952d.

* Internalize SocketCOnnectionFactory

* nit

* fixup
2020-08-19 14:27:25 -07:00
Javier Calvarro Nelson 1cd7e15fb2
[Spa] Make node Services non-shipping (#24912)
As per the announcement on https://github.com/dotnet/aspnetcore/issues/12890, avoid shipping this package in 5.0.
2020-08-19 13:27:29 -07:00
Brennan 08bd3d7d5a
Fix #24846 by using ConditionalFact (#25041) 2020-08-19 12:31:18 -07:00
Pranav K 57db5937f8
Fixup test 2020-08-19 11:23:02 -07:00
Sourabh Shirhatti b140c09c02
Add support delegating requests in HttpSysServer (#24857)
* Add new ctors for RequestQueue and UrlGroup

* Add DelegateRequest pinvokes

* Add Request Transfer Feature

* Fix accessibility of feature

* Test cleanup

* Update ref assembly

* hack: Make HttpSysServer packable

* Cleanup based on PR feedback

* Avoid sending headers after transfer

* Fix ref assembly

* Fix rebase conflict

* Switch to DelegateRequestEx

* Add feature detection

* Delete ref folder

* Add server feature

* s/RequestQueueWrapper/DelegationRule

* Fix UrlGroup was null issue

* Add light-up for ServerDelegationPropertyFeature

* Revert changes to sample

* Revert changes to sample take 2

* PR feedback

* s/Transfered/Transferred

* DelegateAfterRequestBodyReadShouldThrow

* Make DelegationRule disposable

* More license headers

* Incomplete XML doc

* PR feedback

* Fix broken test

* PR feedback

* Fixup test

* s/Transfer/Delegate

* s/transfer/delegate

* PR feedback
2020-08-19 10:27:18 -07:00
Pranav K c6814f4f4d
Enable the compatibility analyzer for Blazor WebAssembly (#24978)
See https://github.com/dotnet/sdk/pull/12872#issuecomment-673783153
2020-08-19 10:00:08 -07:00
Martin Costello b22512de0e
Right-size Lists when created (#23714)
Create new instances of List<T> with an appropriate capacity for the items that will be added.
Use Array.Empty<T>() where appropriate, rather than create an empty list and then return it.
2020-08-19 09:45:52 -07:00
Pranav K d2f34d6d99
Enable trimming for Microsoft.Extensions packages (#24986)
* Enable trimming for Microsoft.Extensions packages

Fixes https://github.com/dotnet/aspnetcore/issues/24634

* Update Microsoft.NET.Sdk.BlazorWebAssembly.csproj

* Apply suggestions from code review

* Fixup test
2020-08-19 16:29:52 +00:00
Justin Kotalik 187eacd570
Reenable concurrent read/write test (#25017) 2020-08-19 09:28:01 -07:00
Javier Calvarro Nelson 38563dd8d1
[Blazor][Identity] Update to the latest identity server version (#25002)
* Updates to IdentityServer 4.0.4
* Updates templates with the new migrations.
* Fixes a small configuration bug that required the configuration for the key to be specified.
* Updates the error url in IdentityServer config to match our template defaults.
2020-08-19 02:12:35 -07:00
Mackinnon Buck 6a3887aba8
Make Virtualize behave correctly with when ItemSize is unspecified or wrong. (#24920) 2020-08-18 20:15:50 -07:00
Pranav K ad8a927e85
Changes per discussion. Add a test 2020-08-18 17:56:59 -07:00
Pranav K 2f0cf8d3e9
Add support for views + SingleFileExe 2020-08-18 17:52:37 -07:00
Pranav K 2d6fd453e2 Allow ProblemDetails \ ValidationProblemDetails to be more testable
Fixes https://github.com/dotnet/aspnetcore/issues/15166
2020-08-18 16:57:29 -07:00
github-actions[bot] ae1981f931
Sync shared code from runtime (#25009)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-18 23:23:51 +00:00
Chris Ross bc40f40382
Log for SameSite=None without Secure (#24970)
* Log for SameSite=None without Secure

* Update src/Http/Http/src/Internal/EventIds.cs

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: campersau <buchholz.bastian@googlemail.com>
2020-08-18 19:55:42 +00:00
James Newton-King edf25b7817
HTTP method matching: Jump table optimized for a single method (#24953) 2020-08-19 07:41:48 +12:00
Safia Abdalla 5297d5fd39
Add query param to check if Blazor WASM app is under debug (#24972) 2020-08-18 18:16:02 +00:00
Justin Kotalik cdb3cbd620
Remove \r\n for \n when writing to ostream (#24980) 2020-08-18 09:34:43 -07:00
Pranav K 2ad1b6d835
Merged PR 9371: Revive support for globalization and localization in Blazor WASM (#24773)
* Merged PR 9371: Revive support for globalization and localization in Blazor WASM

Revive support for globalization and localization in Blazor WASM

* Load icu and timezone data files
* Unskip tests

Fixes https://github.com/dotnet/aspnetcore/issues/24174
Fixes https://github.com/dotnet/aspnetcore/issues/22975
Fixes https://github.com/dotnet/aspnetcore/issues/23260
2020-08-18 06:33:50 -07:00
James Newton-King f68f5b0ee8
Fix HTTP/2 tests that use HttpClient and H2C (#24981) 2020-08-18 21:12:52 +12:00
James Newton-King 592cea6a2b
Optimize writing single segment sequences (#24929) 2020-08-18 19:37:48 +12:00
James Newton-King 28dc9bffab
HTTP2: Write data and trailers under one lock (#24822) 2020-08-18 18:20:04 +12:00
Brennan c92eaa28f4
Add inline scheduler option for Sockets transport (#24638) 2020-08-17 22:00:15 -07:00
Pranav K 512a49c401
Add support for model binding DateTime as UTC (#24893)
* Add support for model binding DateTime as UTC

Fixes https://github.com/dotnet/aspnetcore/issues/11584

* Make test work in other TZs

* Changes per PR comments

* Cleanup unused exception code path, fix doc comments
* Clean up usage of variables
* Adjust logging to be consistent

* Apply suggestions from code review
2020-08-18 04:04:27 +00:00
James Newton-King 58a75925f7
HTTP2: Optimize header processing (#24945) 2020-08-18 14:31:57 +12:00
Pranav K 8a8a1ac972
Fixups 2020-08-17 12:47:10 -07:00
Justin Kotalik bbb851e3eb
General cleanup in IIS (#24754) 2020-08-17 12:34:13 -07:00
David Fowler e0413903e5
Minimal changes to support certificate chain-preloading at startup (#24934) 2020-08-17 12:20:10 -07:00
John Luo cfe158cbed
Convert DatabaseErrorPage to exception filter (#24588)
* Convert DatabaseErrorPage middleware to exception filter
2020-08-17 11:13:17 -07:00
Pranav Krishnamoorthy 4e57d1b041
Merged PR 9371: Revive support for globalization and localization in Blazor WASM
Revive support for globalization and localization in Blazor WASM

* Load icu and timezone data files
* Unskip tests

Fixes https://github.com/dotnet/aspnetcore/issues/24174
Fixes https://github.com/dotnet/aspnetcore/issues/22975
Fixes https://github.com/dotnet/aspnetcore/issues/23260
2020-08-17 09:02:18 -07:00
Ben Adams 03b75e354d
Inline second statemahine into loop and us EC.Restore to reset context (#23175) 2020-08-16 18:06:25 -07:00
Doug Bunting 0f3c52e84c
Quarantine `CanUseViewportAsContainer` test (#24924)
- #24922
2020-08-15 16:09:40 -07:00
dotnet-maestro[bot] 3f4088224b
[master] Update dependencies from dotnet/efcore dotnet/runtime (#24876)
[master] Update dependencies from dotnet/efcore dotnet/runtime
- Updates:
  - System.ComponentModel.Annotations: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Diagnostics.DiagnosticSource: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Diagnostics.EventLog: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.Configuration: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.Console: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.Debug: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.EventLog: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.EventSource: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Logging.TraceSource: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Options: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Options.ConfigurationExtensions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Options.DataAnnotations: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Primitives: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Internal.Transport: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Http: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Hosting: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Caching.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Caching.Memory: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.Binder: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.CommandLine: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.EnvironmentVariables: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.FileExtensions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.Ini: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.Json: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.UserSecrets: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Configuration.Xml: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.DependencyInjection: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.DependencyInjection.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.DependencyModel: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.FileProviders.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.FileProviders.Composite: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.FileProviders.Physical: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.FileSystemGlobbing: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.HostFactoryResolver.Sources: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Extensions.Hosting.Abstractions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.NETCore.App.Runtime.win-x64: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.NETCore.Platforms: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Win32.Registry: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.Win32.SystemEvents: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.NETCore.App.Internal: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - Microsoft.NETCore.App.Ref: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Drawing.Common: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Text.Encodings.Web: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Text.Json: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Threading.Channels: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Windows.Extensions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.ServiceProcess.ServiceController: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.Principal.Windows: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.IO.Pipelines: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Net.Http.Json: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Net.Http.WinHttpHandler: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Net.WebSockets.WebSocketProtocol: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Reflection.Metadata: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Resources.Extensions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Runtime.CompilerServices.Unsafe: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.AccessControl: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.Cryptography.Cng: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.Cryptography.Pkcs: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.Cryptography.Xml: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1
  - System.Security.Permissions: from 5.0.0-rc.1.20411.5 to 5.0.0-rc.1.20415.1

- Updates:
  - Microsoft.EntityFrameworkCore.Tools: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - Microsoft.EntityFrameworkCore.SqlServer: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - dotnet-ef: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - Microsoft.EntityFrameworkCore: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - Microsoft.EntityFrameworkCore.Relational: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - Microsoft.EntityFrameworkCore.Sqlite: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11
  - Microsoft.EntityFrameworkCore.InMemory: from 5.0.0-rc.1.20412.5 to 5.0.0-rc.1.20414.11

 - Skip failing gRPC tests

 - Skip more tests to avoid #24902
- try just removing "http" theory data

 - Skip all `HttpClientHttp2InteropTests` tests on macOS
- no theory data due to #24902 and dotnet/corefx#30492 aka dotnet/runtime#26534 (now tracked somewhere else)

 - Add bogus entry to avoid empty theory data
2020-08-15 21:56:31 +00:00
Chris Ross a9026f1e0f
Skip dotnet watch tests on ARM (#24846) 2020-08-14 22:39:33 -07:00
msftbot[bot] d3eaa2f450
Merge pull request #24927 from dotnet-maestro-bot/merge/release/5.0-preview8-to-master
[automated] Merge branch 'release/5.0-preview8' => 'master'
2020-08-15 04:06:42 +00:00
Brennan a5263d61fb
Support more IAsyncEnumerable types in SignalR (#24926) 2020-08-14 20:42:05 -07:00
John Luo 7acb96af5e
Align scope used by client and server in blazor wasm template (#24894) 2020-08-14 18:25:42 -07:00
James Newton-King 1150b211cc
HTTP2: Fix known header type not reset for multi-value headers (#24918) 2020-08-15 12:21:25 +12:00
Justin Kotalik 91776832e0
Fix OnCompleted and implement CompleteAsync (#24686) 2020-08-14 14:16:05 -07:00
Juan Barahona a2a6db2ee3
[Blazor][Fixes #22912] Fix "registration is not supported" never displayed in blazor webassembly authentication (#24862) 2020-08-14 02:40:01 -07:00
Pranav K 1867750ec9
Add nullable annotations to SignalR.Common, SignalR.Core and Http.Connections (#24764)
* Add nullable annotations to  SignalR.Common, SignalR.Core and Http.Connections

Contributes to https://github.com/dotnet/aspnetcore/issues/5680

* Changes per PR comments. Also add nullability to hub protocols
2020-08-14 05:26:03 +00:00
James Newton-King ffc0bf914a
Fast path for validating static table HTTP/2 headers (#24730) 2020-08-14 13:13:33 +12:00
Brennan 7f7528faae
Remove ANCM shim and outofprocess handler from Runtime SiteExtension (#24884) 2020-08-13 15:54:43 -07:00
John Luo eb1d6aec16
Update exception handling condition in WsFederationHandler (#24886)
Fixes
2020-08-13 22:48:04 +00:00
Hao Kung fae4a56ff6
Add MapInboundClaims top level sugar for JwtBearerOptions (#24636)
* Add MapInboundClaims option

* Update JwtBearerOptions.cs

* Update JwtBearerTests.cs

* Update JwtBearerOptions.cs

* Update JwtBearerOptions.cs

* Update JwtBearerTests.cs

* Add MapImboundClaims to OIDC

* Update OpenIdConnectTests.cs

* Update OpenIdConnectOptions.cs

* Update OpenIdConnectOptions.cs

* Use MapInboundClaims

* Update OpenIdConnectTests.cs
2020-08-13 22:44:10 +00:00
Youssef Victor 60cb3bb5c4
Fix warnings in analyzer packages (#24837) 2020-08-13 14:49:47 -07:00
Doug Bunting aab95eadc9
Merge pull request #24838 from dotnet-maestro-bot/merge/release/3.1-to-master
[automated] Merge branch 'release/3.1' => 'master'
2020-08-13 14:39:20 -07:00
Martin Costello 288bb9622d
Fix test that fails on machine using en-GB (#24704)
Fix test that fails due to the month and date being swapped when run on a machine configured to use UK English.
2020-08-13 13:56:08 -07:00
Pranav K 3e61104425
Make AddComponentReferenceCapture delegate non-null (#24842)
* Make the sample nullable enabled

Fixes https://github.com/dotnet/aspnetcore/issues/24794
2020-08-13 13:24:31 -07:00
Stefan Rajkovic 3f6ea38f44
Reset failed access count on successful login with remembered TFA. (#24860)
Co-authored-by: Stefan Rajkovic <srajkovic@rxsense.com>
2020-08-13 13:07:35 -07:00
Adrian Wright ede7d08984
Allow ".dll" extensions in BlazorWebAssemblyLazyLoad MSBuild task. (#24866)
* Allow ".dll" extensions in BlazorWebAssemblyLazyLoad MSBuild task.
* Only allow assemblies that are specified with an extension.
Co-authored-by: Adrian Wright <adrian@compiledcoding.co.uk>
2020-08-13 09:41:03 -07:00
Mark Seemann 9f0ae10cab
[Mvc] Remove 'absolute' from documentation of Action (#23695)
The generated urls are host relative in most cases, so correcting the documentation to reflect that.
2020-08-13 09:18:29 -07:00
Chris Ross 5dbd68a60e
Apply suggestions from code review 2020-08-13 08:53:11 -07:00
Chris Ross e35c4a8acc
Apply suggestions from code review 2020-08-13 08:52:29 -07:00
Pranav K fa2d86e5b6
Add UnsupportedOSPlatformAttribute to ProtectedBrowserStorage APIs (#24800) 2020-08-13 11:28:46 +02:00
James Newton-King b8f906f0b8
HTTP2: Track at least 100 closed streams (#24828) 2020-08-13 20:44:52 +12:00
James Newton-King 82324bf357
Fix gRPC interop tests (#24824) 2020-08-13 17:48:26 +12:00
James Newton-King ca1505ba3b
Improve HTTP/2 headers enumerator performance (#24726) 2020-08-13 15:28:18 +12:00
github-actions[bot] da6aa6fc6a
Sync shared code from runtime (#24845)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-13 03:08:49 +00:00
James Newton-King 4d4f2fe00f
Fix GeneratedCodeTests and trailing whitespace (#24855) 2020-08-13 12:29:06 +12:00
Chris Ross aeb3537b61
Quarantine InputRadioGroupsWithNamesNestedInteractWithEditContext (#24853) 2020-08-13 00:23:53 +00:00
Chris Ross ac6b62b5df
Merge branch 'master' into merge/release/3.1-to-master 2020-08-12 16:42:51 -07:00
James Newton-King 7532d730ed
Remove unused HTTP/2 streams from pool (#24767) 2020-08-13 10:11:15 +12:00
Chris Ross 3b9c16ce28
Cherry pick preview8 changes into master (#24849)
* Pass RequestAborted to SendFileAsync

* Fix HttpSys tests
2020-08-12 21:30:04 +00:00
James Newton-King ffeeb034f5
Add gRPC standard headers to known headers (#24714) 2020-08-13 08:59:44 +12:00
Safia Abdalla 577f1a760f
Add tests for navigate on form submit (#24684)
* Add tests for navigate on form submit
* Add fix for re-render after event dispatch
* Remove deferred event handling in .NET
* Only dispatch events with registered handlers once
2020-08-12 09:57:58 -07:00
Mackinnon Buck 40869f8969
InputRadio validation styling fix (#24762) 2020-08-12 09:03:29 -07:00
msftbot[bot] 4092201629
Merge pull request #24823 from dotnet-maestro-bot/merge/release/5.0-preview8-to-master
[automated] Merge branch 'release/5.0-preview8' => 'master'
2020-08-12 03:56:30 +00:00
Stephen Halter 292cb9c5dd
Kestrel SNI from config (#24286) 2020-08-11 19:18:37 -07:00
Pranav K c3a12cefae
Include the DebugProxy binaries in DevServer (#24817)
* Remove unused nuspec property that relied on relative path
2020-08-11 19:14:35 -07:00
James Newton-King 57b5321417
Fix flaky keepalive ping test (#24804)
* Fix flaky keepalive ping test

* Clean up stream
2020-08-12 00:23:56 +00:00
JLeczycki 7632afc4eb
Pass the exception to HealthCheckEnd log message (#24786)
There was null intead of exception passed.
2020-08-11 10:58:51 -07:00
Doug Bunting 522088b6be
Do not run hostname tests on macOS 2020-08-11 10:45:39 -07:00
David Fowler fcf2823f3a
Support linking with IHubFilter (#24780)
- Mark AddFilter to make sure constructors don't get erased during aggressive linking
2020-08-11 10:39:52 -07:00
Pranav K 8e5533f2a3
Use BlazorWebAssemblySDK (#24371)
* Use BlazorWebAssemblySDK

* Update projects to use the BlazorSDK
* Remove tasks and targets from RazorSDK
* Remove workarounds from BlazorSDK

* Fixup

* Fixup
2020-08-11 17:29:01 +00:00
Doug Bunting 7efec87a14
Fix fetch of package version in eng/Publishing.props (#24777)
- target project is a test project; need to undo `$(SkipTestBuild)` impact in these jobs

nit: remove a comment from DeveloperCertificates project that's irrelevant now
2020-08-11 10:10:24 -07:00
github-actions[bot] 6f802812a3
Sync shared code from runtime (#24784)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-11 11:29:32 +00:00
Pranav K 059e2fdc49
Remove Internal.AspNetCore.Analyzers (#24693)
* Remove Internal.AspNetCore.Analyzers

This resolves build flakiness caused by referencing the analyzer:

```
2020-08-07T21:22:39.1149296Z ##[error].dotnet\sdk\5.0.100-rc.1.20379.10\Microsoft.Common.CurrentVersion.targets(4188,5): error MSB3026: (NETCORE_ENGINEERING_TELEMETRY=Build)
Could not copy "F:\workspace\_work\1\s\artifacts\obj\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll"
to "F:\workspace\_work\1\s\artifacts\bin\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll". Beginning retry 1 in 1000ms.
The process cannot access the file 'F:\workspace\_work\1\s\artifacts\bin\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll' because it is being used by another process.
```

The analyzer checks if pubternal types are being exposed in public APIs. We no longer author pubternal types, so this is no longer a concern.

* Remove DisablePubternalApiCheck
2020-08-11 03:08:55 +00:00
James Newton-King 5fbd1eb007
Reset KeepAliveTimeout on HTTP/2 ping (#24644) 2020-08-11 14:59:24 +12:00
Pranav K fb5dd8564e
Quarantine tests (#24757)
* Quarantine LinkedApplicationWorks

* Quarantine flaky tests

* Quarantine CanBindTextbox_Decimal_InvalidInput

* React to NetworkException type

* One more test
2020-08-11 01:06:20 +00:00
Pranav K fd1a5c5a9c
Merge pull request #24641 from dotnet-maestro-bot/merge/release/5.0-preview8-to-master
[automated] Merge branch 'release/5.0-preview8' => 'master'
2020-08-10 17:13:51 -07:00
James Newton-King 3de55dfd21
Increase HTTP/2 stream pool max size to 100 (#24712) 2020-08-11 10:29:41 +12:00
Levi Broderick bbf7c8780c
Clean up some usage of SHA1 and SHA256 in the code base (#24696)
* AntiForgery: Use SHA256 one-shot

* AuthN: Use SHA256 one-shot APIs

* MVC/Razor: Cleanup SHA256 references

* WebSockets: Use SHA1 one-shots

* dotnet-openapi: Use preferred SHA256 factory

* SignalR: Prefer RNG.Fill over RNG.GetBytes
2020-08-10 14:26:41 -07:00
David Fowler 0e592df3ec
Make authentication linker friendly (#24708)
* Make authentication linker friendly
- Preserve constructors wherever open generics or type arguments exist
2020-08-10 13:06:19 -07:00
dotnet-maestro[bot] 927ddab349
[master] Update dependencies from dotnet/runtime dotnet/efcore (#24717)
* Update dependencies from https://github.com/dotnet/runtime build 20200808.3

System.ComponentModel.Annotations , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Extensions.Internal.Transport , Microsoft.Extensions.Http , Microsoft.Extensions.Hosting , Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting.Abstractions , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.App.Internal , Microsoft.NETCore.App.Ref , System.Drawing.Common , System.Text.Encodings.Web , System.Text.Json , System.Threading.Channels , System.Windows.Extensions , System.ServiceProcess.ServiceController , System.Security.Principal.Windows , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.WebSockets.WebSocketProtocol , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.CompilerServices.Unsafe , System.Security.AccessControl , System.Security.Cryptography.Cng , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions
 From Version 5.0.0-rc.1.20406.11 -> To Version 5.0.0-rc.1.20408.3

* Update dependencies from https://github.com/dotnet/runtime build 20200809.3

System.ComponentModel.Annotations , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , Microsoft.Extensions.Logging , Microsoft.Extensions.Logging.Abstractions , Microsoft.Extensions.Logging.Configuration , Microsoft.Extensions.Logging.Console , Microsoft.Extensions.Logging.Debug , Microsoft.Extensions.Logging.EventLog , Microsoft.Extensions.Logging.EventSource , Microsoft.Extensions.Logging.TraceSource , Microsoft.Extensions.Options , Microsoft.Extensions.Options.ConfigurationExtensions , Microsoft.Extensions.Options.DataAnnotations , Microsoft.Extensions.Primitives , Microsoft.Extensions.Internal.Transport , Microsoft.Extensions.Http , Microsoft.Extensions.Hosting , Microsoft.Extensions.Caching.Abstractions , Microsoft.Extensions.Caching.Memory , Microsoft.Extensions.Configuration , Microsoft.Extensions.Configuration.Abstractions , Microsoft.Extensions.Configuration.Binder , Microsoft.Extensions.Configuration.CommandLine , Microsoft.Extensions.Configuration.EnvironmentVariables , Microsoft.Extensions.Configuration.FileExtensions , Microsoft.Extensions.Configuration.Ini , Microsoft.Extensions.Configuration.Json , Microsoft.Extensions.Configuration.UserSecrets , Microsoft.Extensions.Configuration.Xml , Microsoft.Extensions.DependencyInjection , Microsoft.Extensions.DependencyInjection.Abstractions , Microsoft.Extensions.DependencyModel , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting.Abstractions , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.Platforms , Microsoft.Win32.Registry , Microsoft.Win32.SystemEvents , Microsoft.NETCore.App.Internal , Microsoft.NETCore.App.Ref , System.Drawing.Common , System.Text.Encodings.Web , System.Text.Json , System.Threading.Channels , System.Windows.Extensions , System.ServiceProcess.ServiceController , System.Security.Principal.Windows , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.WebSockets.WebSocketProtocol , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.CompilerServices.Unsafe , System.Security.AccessControl , System.Security.Cryptography.Cng , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions
 From Version 5.0.0-rc.1.20406.11 -> To Version 5.0.0-rc.1.20409.3

* Update dependencies from https://github.com/dotnet/efcore build 20200810.1

Microsoft.EntityFrameworkCore.Tools , Microsoft.EntityFrameworkCore.SqlServer , dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.InMemory
 From Version 5.0.0-rc.1.20406.4 -> To Version 5.0.0-rc.1.20410.1

* Update dependencies from https://github.com/dotnet/efcore build 20200810.2

Microsoft.EntityFrameworkCore.Tools , Microsoft.EntityFrameworkCore.SqlServer , dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.InMemory
 From Version 5.0.0-rc.1.20406.4 -> To Version 5.0.0-rc.1.20410.2

* React to S.T.Json changes

* Update LangVersion=9.0 in the repo to use T?
* Remove LangVersion project project files

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-08-10 19:50:18 +00:00
Pranav K 56be06bc7d
Update test runner to 2.4.3 (#24685) 2020-08-10 12:32:04 -07:00
Eric Erhardt d25a7658c8
Remove LinkerWorkaround.xml (#24748)
* Remove LinkerWorkaround.xml

The workaround file is no longer needed, now that the underlying bugs are fixed in the dotnet/runtime libraries.

Fix #23262

* Also remove LinkerWorkaround from Components/WebAssembly
2020-08-10 18:59:59 +00:00
Pranav K 6e006e3e2a
Merge remote-tracking branch 'origin/release/5.0-preview8' 2020-08-10 11:39:18 -07:00
Safia Abdalla 15ba83248f
Add guard check for cleared closest DOM element (#24707)
* Add guard check for cleared closest DOM element

* Update src/Components/Web.JS/src/Rendering/BrowserRenderer.ts

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-08-10 16:50:50 +00:00
David Fowler 24f35bc76f
Update ReferenceEqualityComparer.cs (#24728)
We don't support running on mono 4.x anymore
2020-08-10 09:08:45 -07:00
David Fowler fa0cb71186
Make the default route constraints linkable (#24727)
- Added a helper that gives the linker the ability to preserve the constructors of these types
2020-08-09 20:23:54 -07:00
github-actions[bot] 983e7ed635
Sync shared code from runtime (#24699)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-08 13:00:25 +00:00
Kahbazi d0a8117ac4
Use HasFlag in ForwardedheadersMiddleware (#24660) 2020-08-08 02:36:19 +00:00
Pranav K 383a272f36
Quarantine falky test ServerEventTest.EventDuringBatchRendering_CanTriggerDOMEvents (#24691)
* Quarantine falky test ServerEventTest.EventDuringBatchRendering_CanTriggerDOMEvents

Blazor's E2E testing uses a much shorter timeout after a test failure. This test run had several test failures, but most of these appear to be the result of
an incredibly short timeot. This PR quarantines the one test that appears to be a genuine failure and also increases the timeout duration for after test failure.

* Quarantine ServerExecutionTests.ServerGlobalizationTest.CanSetCultureAndParseCultureSensitiveNumbersAndDates
2020-08-07 23:16:53 +00:00
Adam Sitnik a196a6a0db
stop using RuntimeInformation.IsOSPlatform(OSPlatform.Browser) (removed in upcoming builds) (#24652)
switch back to RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))
2020-08-07 19:10:02 +00:00
Justin Kotalik 6020fdef0b
Add reset support for IIS (#24552) 2020-08-07 11:08:40 -07:00
Steve Sanderson 8ba7c7b457
Throw if a component produces an invalid render tree. Fixes #24579 (#24650) 2020-08-07 16:41:08 +01:00
Safia Abdalla 7eb58e045d
Add workaround for deprecated overload in authentication scenarios (#24600)
* Add workaround for deprecated overload in authentication scenarios

* Respond to feedback from peer review

* Use explicit version in Version.props

* Temporarily disable NU1065 warning

* Always use latest package version
2020-08-07 08:37:16 -07:00
Pranav K 146d316bc5
Add a middleware for browser refresh. (#24574)
* Add a middleware for browser refresh.

* Introduce a middleware that can connect to the dotnet-watch change server
* dotnet-watch: Inject the middleware in 3.1 or apps using start hooks \ hosting startup

https://github.com/dotnet/aspnetcore/issues/23412

* Update src/Tools/dotnet-watch/BrowserRefresh/src/StartupHook.cs

* Changes per PR comments

* Add a test for reading the script

* Changes per PR comments

* Updates docs

* Fixup test

* Add project ref
2020-08-06 17:20:51 -07:00
github-actions[bot] 973a97fc4b
Sync shared code from runtime (#24630)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-06 21:26:32 +00:00
Mackinnon Buck 6c35e2e84d
Fixed flaky test 'CanInfluenceHeadDuringPrerender'. (#24624) 2020-08-06 14:02:30 -07:00
Justin Kotalik 9d783c5b76
Quarantine CanInfluenceHeadDuringPrerender (#24603)
* Update PrerenderingTest.cs

* using
2020-08-06 18:40:38 +00:00
Justin Kotalik c924af3bd7
IIS HTTP/2 Response Trailers (#24120) 2020-08-06 09:21:51 -07:00
David Fowler ed5034eb8e
Actually fix the CopyToAsync this time (#24609)
* Actually fix the CopyToAsync this time
- Hard code the 4K buffer length for CopyToAsync
- Write a test this time :D
2020-08-05 21:11:57 -07:00
Roman Marusyk a28c2b62dc
Update documentation for returns of indexer in IRequestCookieCollection when key is not present (#24497) 2020-08-05 19:36:07 -07:00
David Fowler 8cbe97df4b
Added connection logs (#24607) 2020-08-05 18:57:14 -07:00