Граф коммитов

53870 Коммитов

Автор SHA1 Сообщение Дата
Mackinnon Buck 43d0754145
[Blazor] Allow `<FocusOnNavigate>` to work when rendered statically (#57131) 2024-08-08 09:29:00 -07:00
dotnet-maestro[bot] e048f3048f
[main] Update dependencies from dotnet/efcore, dotnet/runtime (#57060)
* Update dependencies from https://github.com/dotnet/efcore build 20240729.1

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24379.1

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24379.2

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

Microsoft.Bcl.AsyncInterfaces , Microsoft.Bcl.TimeProvider , 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.Diagnostics , Microsoft.Extensions.Diagnostics.Abstractions , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , 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.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Collections.Immutable , System.Composition , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices.Protocols , System.IO.Hashing , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.ServerSentEvents , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.Caching , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 9.0.0-rc.1.24378.5 -> To Version 9.0.0-rc.1.24379.9

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24380.1

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24380.2

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24381.1

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

Microsoft.Bcl.AsyncInterfaces , Microsoft.Bcl.TimeProvider , 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.Diagnostics , Microsoft.Extensions.Diagnostics.Abstractions , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , 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.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Collections.Immutable , System.Composition , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices.Protocols , System.IO.Hashing , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.ServerSentEvents , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.Caching , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 9.0.0-rc.1.24378.5 -> To Version 9.0.0-rc.1.24380.7

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24381.2

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24401.1

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

Microsoft.Bcl.AsyncInterfaces , Microsoft.Bcl.TimeProvider , 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.Diagnostics , Microsoft.Extensions.Diagnostics.Abstractions , Microsoft.Extensions.FileProviders.Abstractions , Microsoft.Extensions.FileProviders.Composite , Microsoft.Extensions.FileProviders.Physical , Microsoft.Extensions.FileSystemGlobbing , Microsoft.Extensions.HostFactoryResolver.Sources , Microsoft.Extensions.Hosting , Microsoft.Extensions.Hosting.Abstractions , Microsoft.Extensions.Http , 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.Internal.Runtime.AspNetCore.Transport , Microsoft.NET.Runtime.MonoAOTCompiler.Task , Microsoft.NET.Runtime.WebAssembly.Sdk , Microsoft.NETCore.App.Ref , Microsoft.NETCore.App.Runtime.AOT.win-x64.Cross.browser-wasm , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.BrowserDebugHost.Transport , Microsoft.NETCore.Platforms , System.Collections.Immutable , System.Composition , System.Configuration.ConfigurationManager , System.Diagnostics.DiagnosticSource , System.Diagnostics.EventLog , System.Diagnostics.PerformanceCounter , System.DirectoryServices.Protocols , System.IO.Hashing , System.IO.Pipelines , System.Net.Http.Json , System.Net.Http.WinHttpHandler , System.Net.ServerSentEvents , System.Reflection.Metadata , System.Resources.Extensions , System.Runtime.Caching , System.Security.Cryptography.Pkcs , System.Security.Cryptography.Xml , System.Security.Permissions , System.ServiceProcess.ServiceController , System.Text.Encodings.Web , System.Text.Json , System.Threading.AccessControl , System.Threading.Channels , System.Threading.RateLimiting , Microsoft.SourceBuild.Intermediate.runtime.linux-x64
 From Version 9.0.0-rc.1.24378.5 -> To Version 9.0.0-rc.1.24381.5

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24401.2

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24401.3

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24401.4

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

dotnet-ef , Microsoft.EntityFrameworkCore , Microsoft.EntityFrameworkCore.Design , Microsoft.EntityFrameworkCore.InMemory , Microsoft.EntityFrameworkCore.Relational , Microsoft.EntityFrameworkCore.Sqlite , Microsoft.EntityFrameworkCore.SqlServer , Microsoft.EntityFrameworkCore.Tools
 From Version 9.0.0-rc.1.24374.2 -> To Version 9.0.0-rc.1.24401.6

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-08-08 07:16:59 -07:00
Safia Abdalla 257d69079e
Use BaseTypeInfo API to fix up polymorphic schemas (#56908)
* Use BaseTypeInfo API to fix up polymorphic schemas

* Change schema for polymorphic types with non-abstract base class

* Add comments, update API name, and add more tests

* More feedback and tests
2024-08-07 16:30:48 -07:00
William Godbe abc946f0f2
Update milestones for September (#57222) 2024-08-07 14:45:52 -07:00
Martin Costello 2fe377a3bd
Use TryGetValue for dictionary lookups in OpenAPI comparers (#57208)
* Use TryGetValue for dictionary lookups

Use `TryGetValue()` to avoid multiple dictionary lookups in OpenAPI schema comparers.

* Re-order equality comparer checks

See https://github.com/dotnet/aspnetcore/pull/57208#issuecomment-2273816031.

* Check discriminators earlier

Check discriminators earlier too.
2024-08-07 14:45:32 -07:00
Brennan 16bca0505e
Use Ascii.ToUtf16 in StringUtilities (#56578) 2024-08-07 12:07:04 -07:00
James Newton-King d96d2728df
Add client span to SignalR .NET client (#57101) 2024-08-07 14:25:29 +00:00
Safia Abdalla c43053635a
Update to Microsoft.OpenApi 1.6.17 (#57201) 2024-08-06 17:18:34 -07:00
Safia Abdalla 2a67ffb1b8
Set requiredness for primitive and files in forms (#57196) 2024-08-06 17:09:51 -07:00
ladeak 71ddc6022a
Sharing PathNormalizer Implementations (#57178)
* Merging PathNormalizer Implementations

- Follow up on comment: https://github.com/dotnet/aspnetcore/pull/56805#discussion_r1702625899
- Moving PathNormalizer from Shared\HttpSys to Shared\PathNormalizer, changing the namespace to AspNetCore.Internal
- Shares the code between HttpSys and Kestrel.Core
- Remaining Kestrel specific code renamed to PathDecoder
- Keeping the benchmarks in Kestrel
2024-08-06 16:18:21 -07:00
Javier Calvarro Nelson eb626ad857
[Blazor] Apply `color-scheme` to error UI (#57173) 2024-08-06 10:23:30 +02:00
Javier Calvarro Nelson 12086feb55
[Blazor][Accessibility] At reflow resolution "Hamburger" control is not visible clearly (#57127) 2024-08-06 10:22:34 +02:00
Javier Calvarro Nelson c30c7eaba9
[Mvc] Preserve type attribute when defined in Script tag helper (#57170) 2024-08-06 10:22:16 +02:00
Brennan 0fd7ef1055
Resolve potential XSS concerns from scanners in SignalR (#57180) 2024-08-05 17:45:01 -07:00
James Newton-King b4558f77c6
Improve SignalR tests to use channel (#57156) 2024-08-06 06:13:15 +08:00
dotnet-maestro[bot] 10336d5360
Update dependencies from https://github.com/dotnet/arcade build 20240801.1 (#57171)
[main] Update dependencies from dotnet/arcade
2024-08-05 21:50:34 +00:00
dotnet-maestro[bot] 46bc788123
Update dependencies from https://github.com/dotnet/source-build-externals build 20240730.1 (#57172)
[main] Update dependencies from dotnet/source-build-externals
2024-08-05 21:03:44 +00:00
ladeak b5a97c44d3
Remove unsafe from PathNormalizer (#56805) 2024-08-05 09:07:51 -07:00
Javier Calvarro Nelson b41e166aac
[Blazor] Some of the default UI styling is not accessible in dark mode (#57142)
* Isolate the reconnect UI into its own shadow DOM to avoid accidental styling.
2024-08-05 13:59:42 +02:00
Javier Calvarro Nelson 3f72dd2a7b
[Blazor][Accessibility] Display placeholders on form elements (#57126) 2024-08-05 12:43:27 +02:00
Javier Calvarro Nelson 1d76eb5460
[Blazor][Accessibility] Add aria-label to provide alternative text for screen readers (#57125) 2024-08-05 12:43:06 +02:00
Javier Calvarro Nelson d73a7afba0
[Blazor] Add Blazor Web Endpoints to the endpoint data source (#57086)
* Adds the Blazor Web endpoints to the endpoint data source to ensure that they can be customized via conventions.
2024-08-05 12:42:37 +02:00
Mackinnon Buck 6d1a1329fc
Quarantine `CanBlockExternalNavigation` and friends (#57154)
* Quarantine `CanBlockExternalNavigation`

* Qurantine `NavigationIsLockedAfterPrerendering`
2024-08-03 02:05:33 +00:00
James Newton-King 1d88c6cf5e
Propagate trace parent to SignalR hub invocations (#57049) 2024-08-02 07:14:32 +00:00
dotnet-maestro[bot] ae86074015
[main] Update dependencies from dotnet/source-build-reference-packages (#57078)
* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240729.2

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 9.0.0-alpha.1.24374.1 -> To Version 9.0.0-alpha.1.24379.2

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240729.2

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 9.0.0-alpha.1.24374.1 -> To Version 9.0.0-alpha.1.24379.2

* Update dependencies from https://github.com/dotnet/source-build-reference-packages build 20240729.2

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 9.0.0-alpha.1.24374.1 -> To Version 9.0.0-alpha.1.24379.2

* Update SourceBuildPrebuiltBaseline.xml

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: William Godbe <wigodbe@microsoft.com>
2024-08-02 14:26:04 +10:00
James Newton-King 26ee437e46
Fix SignalR server activity name (#57118) 2024-08-02 06:26:56 +08:00
Safia Abdalla 0e4ccd1acf
Fix up nullability and form schema handling in OpenAPI (#56957)
* Parameters sourced from query, header, and route are never nullable

* Don't set nullable property on form parameters

* Remove default form encoding and set schema IDs

* Add more tests
2024-08-01 08:08:59 -07:00
Igor Velikorossov 0fee04e2e1
Unquarantine FrameworkParametersCompletionProviderTests (#55857) 2024-08-01 07:25:18 +00:00
Brennan f018f0b31a
Try to reduce IIS test event log flakiness (#57028) 2024-07-31 16:41:53 -07:00
Pavel Voronin 42e61729ec
Add remarks to FromBodyAttrbiute (#56997)
* Add remarks to FromBodyAttrbiute

[[FromBody] attrbiute](https://learn.microsoft.com/en-us/aspnet/core/mvc/models/model-binding?view=aspnetcore-8.0#frombody-attribute) section contains a very important comment :
> The ASP.NET Core runtime delegates the responsibility of reading the body to an input formatter.

This is quite an important detail to capture it in the xmldoc of this attribute.

* Update src/Mvc/Mvc.Core/src/FromBodyAttribute.cs

Co-authored-by: Martin Costello <martin@martincostello.com>

---------

Co-authored-by: Martin Costello <martin@martincostello.com>
2024-07-31 15:26:17 -07:00
Stephen Toub 5c2dce5382
Optimize new use of Base64Url (#57050)
* Optimize new use of Base64Url

Rather than searching the whole input for + or / to know if we need to use Base64, we can search for those as well as - or _, which then on average means we only need to search through ~32 characters, assuming balanced input. The moment we see a - or _, we can just use Base64Url.
2024-07-31 19:47:14 +00:00
Martin Costello 876e36db30
Make Stream.Flush no-op on read-only streams (#57079)
* Make Stream.Flush no-op

Make implementations of `Stream.Flush()` a no-op instead of throw an exception.
Relates to #57064.

* Make Stream.FlushAsync no-op

- Override `Stream.FlushAsync()` methods as a no-op.
- Make implementations of `Stream.FlushAsync()` a no-op instead of throw an exception.
2024-07-31 11:26:46 -07:00
Martin Costello 24e0d10bac
Fixes for OpenAPI document generation with M.E.ApiDescription.Server (#57096)
* Get full path of OpenApiDocumentsDirectory

Convert `$(OpenApiDocumentsDirectory)` to a full path before passing it to the `dotnet-getdocument` tool.
Relates to #57044.

* Avoid warning about invalid OpenAPI version

Do not emit warning about an invalid OpenAPI version in the `dotnet-getdocument` tool if no explicit value was passed to the tool via the `` argument.
Relates to #57044.

* Fix TargetTest tests

Fix tests failing locally in Visual Studio due to test assets not being copied to the output directory.

* Fix tests

Fix assertions looking for relative paths instead of absolute paths.
2024-07-31 09:53:23 -07:00
Safia Abdalla 6dc454f907
Fix up handling for awaitable IResults in ApiExplorer (#57068) 2024-07-30 19:26:51 -07:00
dependabot[bot] a9111ad30a
[main] (deps): Bump src/submodules/googletest (#56999)
Bumps [src/submodules/googletest](https://github.com/google/googletest) from `9ff2450` to `5bcb2d7`.
- [Release notes](https://github.com/google/googletest/releases)
- [Commits](9ff2450a56...5bcb2d78a1)

---
updated-dependencies:
- dependency-name: src/submodules/googletest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-31 11:00:28 +10:00
Andrew Casey 12c8cd8d10
Add some HPackDecoderTests for empty header names and values (#57032)
Sanity checking for https://www.cve.org/CVERecord?id=CVE-2019-9516
2024-07-30 17:23:47 -07:00
Andrew Casey 1470e00eaf
Restrict permissions to the dev cert directory (#56985)
* Create directories with secure permissions

If we're creating it, make it 700.  If it already exists, warn if it's not 700.

* Don't create a directory specified by the user
2024-07-31 00:03:14 +00:00
Mackinnon Buck d3e244c59a
[Blazor] Fix Identity UI accessibility issues (#57033) 2024-07-30 15:39:01 -07:00
Safia Abdalla 27f2a011a4
Map all true schemas to empty object schemas in OpenAPI (#57067)
* Map all true schemas to empty object schemas in OpenAPI

* Address feedback
2024-07-30 01:43:02 +00:00
Andrew Casey 27ae0821dd
Add support for trusting dev certs on linux (#56582)
* Add support for trusting dev certs on linux

There's no consistent way to do this that works for all clients on all Linux distros, but this approach gives us pretty good coverage.  In particular, we aim to support .NET (esp HttpClient), Chromium, and Firefox on Ubuntu- and Fedora-based distros.

Certificate trust is applied per-user, which is simpler and preferable for security reasons, but comes with the notable downside that the process can't be completed within the tool - the user has to update an environment variable, probably in their user profile.  In particular, OpenSSL consumes the `SSL_CERT_DIR` environment variable to determine where it should look for trusted certificates.

We break establishing trust into two categories: OpenSSL, which backs .NET, and NSS databases (henceforth, nssdb), which backs browsers.

To establish trust in OpenSSL, we put the certificate in `~/.dotnet/corefx/cryptography/trusted`, run a simplified version of OpenSSL's `c_rehash` tool on the directory, and ask the user to update `SSL_CERT_DIR`.

To establish trust in nssdb, we search the home directory for Firefox profiles and `~/.pki/nssdb`.  For each one found, we add an entry to the nssdb therein.

Each of these locations (the trusted certificate folder and the list of nssdbs) can be overridden with an environment variable.

This large number of steps introduces a problem that doesn't exist on Windows or macOS - the dev cert can end up trusted by some clients but not by others.  This change introduces a `TrustLevel` concept so that we can produce clearer output when this happens.

The only non-bundled tools required to update certificate trust are `openssl` (the CLI) and `certutil`.  `sudo` is not required, since all changes are within the user's home directory.

* Also trust certificates in the Current User/Root store

A belt-and-suspenders approach for dotnet trust (i.e. in addition to OpenSSL trust) that has the notable advantage of not requiring any environment variables.

* Clarify the mac-specific comments in GetDevelopmentCertificateFromStore
2024-07-29 10:53:19 -07:00
Martin Costello f0120ae63e
Add comment to OpenApiDocumentProvider (#57061)
Add a comment explaining what the `OpenApiDocumentProvider` class is for.
2024-07-29 16:29:35 +00:00
Safia Abdalla 3c6fc944a2
Update warning suppressions and cache ParameterInfo[] in generated code (#56979) 2024-07-29 09:09:17 -07:00
dotnet-maestro[bot] 60b705da86
Update dependencies from https://github.com/dotnet/extensions build 20240728.2 (#57057)
[main] Update dependencies from dotnet/extensions
2024-07-29 15:53:51 +00:00
dotnet-maestro[bot] 397d75a174
Update dependencies from https://github.com/dotnet/winforms build 20240726.2 (#57058)
[main] Update dependencies from dotnet/winforms
2024-07-29 15:52:32 +00:00
dotnet-maestro[bot] 6812330cba
Update dependencies from https://github.com/dotnet/source-build-externals build 20240726.4 (#57056)
[main] Update dependencies from dotnet/source-build-externals
2024-07-29 15:47:38 +00:00
dotnet-maestro[bot] cfd6fab79e
Update dependencies from https://github.com/dotnet/arcade build 20240725.3 (#57054)
[main] Update dependencies from dotnet/arcade
2024-07-29 14:39:53 +00:00
dotnet-maestro[bot] cccbd570e5
[main] Update dependencies from dotnet/runtime (#57037)
[main] Update dependencies from dotnet/runtime
2024-07-29 14:10:58 +00:00
Andrew Casey 06155c05af
Make dev-certs import consistent with kestrel (#57014)
* Make dev-certs import consistent with kestrel

Kestrel checks the subject name and our magic extension - import was only checking the extension.  They can't easily share a method because import has a test hook.
2024-07-26 22:35:29 +00:00
Steve Sanderson f85deee5d2
Quarantine Locking_ExecuteAllRequestsWhenDisabled (#55653) 2024-07-26 13:11:23 -07:00
Matthew Leslie f739b4949f
Enable input number component to support type='range' attribute (#55583)
* Commit modifies the InputNumber component to allow the 'type' attribute specified by the user to take precedence over the default 'type="number"'. By swapping the order in which attributes are added to the builder, any user-defined 'type' attribute is now respected, enabling the usage of different input types like 'range'.

Previously, the InputNumber component hardcoded the 'type' attribute as 'number', which prevented using it for other input types such as sliders (range inputs).

* Adding a test to the inputNumberTests to ensure the user defined type attribute overrides the default.

* Using the TestRederer to extract attributes and assert the user-defined type override the default

* Retrieving frames with new methodology

* Isolating the correct element to extract attributes from

* Only asserting the type attribute = range

* Isolating input element, atrributes and type attribute correctly

* Improving methodology of handling render tree frames and isolating the input element and attributes

* Ammendments to tests

* Update src/Components/Web/test/Forms/InputNumberTest.cs

Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>

* Update src/Components/Web/test/Forms/InputNumberTest.cs

Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>

* Update src/Components/Web/test/Forms/InputNumberTest.cs

Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>

* re-adding missing tests

* Using helper methods in tests.

* Update src/Components/Web/test/Forms/InputNumberTest.cs

---------

Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
2024-07-26 11:43:47 -07:00