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

53791 Коммитов

Автор SHA1 Сообщение Дата
wtgodbe 0e76887ab2 Fix file format 2024-07-31 11:54:39 -07:00
wtgodbe 7ddc77c5d7 Add file list for cgmanifest 2024-07-31 11:48:56 -07: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
dotnet-maestro[bot] 25db9495d1
[main] Update dependencies from dotnet/source-build-reference-packages (#56947) 2024-07-26 09:47:23 -07:00
Stephen Toub c5eb354fa0
Use Base64Url in WebEncoders (#56959) 2024-07-26 12:27:44 -04:00
Mackinnon Buck 62ece1b90f
Fix Blazor WebAssembly perf benchmarks (#56811) 2024-07-26 09:03:33 -07:00
dotnet-maestro[bot] 67feeaa5fc
Update dependencies from https://github.com/dotnet/runtime build 20240725.13 (#57020)
[main] Update dependencies from dotnet/runtime
2024-07-26 14:16:58 +00:00
dotnet-maestro[bot] 4ea00437c1
[main] Update dependencies from dotnet/efcore, dotnet/runtime (#56848)
[main] Update dependencies from dotnet/efcore, dotnet/runtime


 - Revert ResponseCompressionMiddleware changes from previous runtime update

 - Update expected gzip size

 - Update project.csproj.template

 - update to final API approved and merged into runtime

 - extract the API pieces that are now in runtime

 - work around ToDistributedCacheEntryOptions memoize utility method

 - add back missing APIs incorrectly deleted

 - fixup csproj - no longer need framework backref

 - Add missing reference in Microsoft.Extensions.Caching.MicroBenchmarks.csproj

 - compression

 - Account for fingerprinted assemblies

 - Suppress new illink warning
2024-07-26 10:20:43 +00:00
Brennan 98ee50279a
Disable codeql in quarantined-pr.yml (#57011) 2024-07-25 19:29:59 -07:00
William Godbe bcc1b9ffa1
Update Microsoft.IO.Redist dependency (#57005)
* Update dependency

* Update RepoTasks.csproj
2024-07-25 17:23:52 -07:00
Brennan 58f503c200
Update Templates.Mvc.Tests.csproj (#57010) 2024-07-25 16:57:23 -07:00
dotnet-maestro[bot] 0da435e584
Update dependencies from https://github.com/dotnet/arcade build 20240718.9 (#56928)
[main] Update dependencies from dotnet/arcade
2024-07-25 23:27:28 +00:00
dotnet-maestro[bot] 23170777b0
Update dependencies from https://github.com/dotnet/source-build-externals build 20240719.5 (#56929)
[main] Update dependencies from dotnet/source-build-externals
2024-07-25 20:13:46 +00:00
dotnet-maestro[bot] d3a039fa18
Update dependencies from https://github.com/dotnet/winforms build 20240721.2 (#56931)
[main] Update dependencies from dotnet/winforms
2024-07-25 20:12:35 +00:00
William Godbe 2686a91a62
Update Microsoft.JSInterop.JS version to 9.0.0 (#56983) 2024-07-25 12:37:59 -07:00
William Godbe 98fca5e3b0
Go back to checked-in minified .js files (#56982)
* Go back to checked-in minified .js files

* Remove update-npm-deps script

* Remove CompareMinifiedJsFiles script

* Undo signalr changes

* Fix again

* Undo more stuff

* Try installing node

* Add update-npm-deps back
2024-07-25 12:27:40 -07:00
Pavel Voronin d98caa8994
Fix typo in variable name: hasExplictValue -> hasExplicitValue (#56981) 2024-07-25 17:50:07 +00:00
Nico Brabers e29ea104d2
Fix for issue #54500: Middleware keyed dependency injection (#55722) 2024-07-25 09:09:38 -07:00
dependabot[bot] 829583b4d4
[main] (deps): Bump src/submodules/googletest from `b4aaf97` to `9ff2450` (#56894)
Bumps [src/submodules/googletest](https://github.com/google/googletest) from `b4aaf97` to `9ff2450`.
- [Release notes](https://github.com/google/googletest/releases)
- [Commits](b4aaf97d8f...9ff2450a56)

---
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-25 14:40:54 +08:00
Safia Abdalla e7fa345782
Inline array and dictionary schemas in OpenAPI documents (#56980)
* Inline array and dictionary schemas in OpenAPI documents

* Update src/OpenApi/src/Extensions/JsonTypeInfoExtensions.cs

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>

---------

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
2024-07-24 13:35:14 -07:00
Ankit Jain 2f79c475a7
Quarantine `RazorPages_CanBeServedAndUpdatedViaRuntimeCompilation` (#56935) 2024-07-24 07:33:27 +00:00
William Godbe 7fce12110e
Remove PackageOverrides & PlatformManifest files from main (#56956) 2024-07-24 04:51:50 +00:00
Ankit Jain b40ca810bb
Quarantine ConfigureEndpointDevelopmentCertificateGetsLoadedWhenPresent (#56939) 2024-07-24 12:09:12 +08:00
James Newton-King bde5914896
Make metrics abort test more resilient (#56938) 2024-07-24 03:53:07 +00:00
William Godbe 17fb78a5f9
Fix setting BuildNodeJs (#56954)
* Fix setting BuildNodeJs

* Update submod

* Fix setting
2024-07-24 02:37:19 +00:00
Safia Abdalla 8da6daa1cd
Make ApiExplorer for minimal APIs trim-compatible (#56827)
* Make ApiExplorer for minimal APIs trim-compatible

* Enable trimming checks for Mvc.Core and consumers

* Add setup for NativeAoT test project for OpenAPI

* Update AspNetCore.sln reference to OpenAPI tests

* Fix OpenApi.slnf

* Address feedback from API review

* Update OpenApi.slnf

* Confirming my sanity

* Refactor ModelMetadata for trim compatability

* Disable native AoT tests until Microsoft.OpenApi is trim-compatible

* Fix up NativeAoT tests for OpenApi

* Fix ModelMetadata trimming without API changes

* Update native AoT for MVC

* Add RDC/RUC attributes and update exception messages

* Update suppressions and add more RUC/RDC attributes

* Revise ParameterBindingMethodCache initialization and consumption

* Update submod

---------

Co-authored-by: wtgodbe <wigodbe@microsoft.com>
2024-07-23 23:39:17 +00:00
dependabot[bot] ef09c065b9
[main] (deps): Bump actions/checkout from 2 to 4 (#56895)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 22:20:51 -04:00
William Godbe e3a05841ac
Update branding to RC1 (#56936)
* Update branding to RC1

* Update resourceManagement.yml
2024-07-22 17:04:56 -07:00
Andrew Casey ed7ea4042b
Look up trusted certs consistently on windows (#56701)
* Search for trusted certificates consistently on Windows

1. Don't use thumbprint so we don't get flagged for using SHA-1
2. Make TrustCertificateCore and RemoveCertificateFromTrustedRoots consistent

* Add a note about our usage of Thumbprint on macOS

* Clean up assumptions about root store

* FindBySubjectName expects a string

* Search by serial number to avoid having to parse subject name

* Fix typo

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

* Call DisposeCertificates more consistently

---------

Co-authored-by: Martin Costello <martin@martincostello.com>
2024-07-22 16:47:31 -07:00
Brennan 9503913485
Revert "Remove __non_webpack_require__ workaround and split Node dependencies correctly (#48154)" (#56766)
This reverts commit 93520b67ad.
2024-07-22 13:54:01 -07:00
github-actions[bot] 3720ba6649
Update .NET SDK to 9.0.100-preview.7.24371.4 (#56927)
Update .NET SDK to version 9.0.100-preview.7.24371.4.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 16:49:43 -04:00
Sébastien Ros ecd56fe62f
Increase quarantine pr timeout (#56871)
Builds have been failing on timeouts since CodeQL was added on July 1st.
2024-07-22 13:38:22 -07:00