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

48046 Коммитов

Автор SHA1 Сообщение Дата
Safia Abdalla 3f93126eab
Revert setting endpoint name automatically (#36518) (#36548) 2021-09-15 14:14:25 -07:00
David Fowler 3ae47296bf
Avoid building the configuration sources twice (#36570)
- When making the internal host builder, we copy the sources from the ConfigurationManager to the internal IConfigurationBuilder and the HostBuilder creates. This results in building configuration twice which can be problematic for performance reasons. Instead, we copy over the already built configuration providers in a custom IConfigurationSource implementation. This change does means the looking at the list of sources will not match the original list of sources though.
- Added a test
2021-09-15 14:09:45 -07:00
William Godbe 44b7bfa1bd
Revert "Disable OSX10.14 Helix jobs for now (#36500)" (#36563)
This reverts commit 6f1b2cda6d.
2021-09-15 20:10:21 +00:00
Safia Abdalla 28a9fc21d5
Check for duplicate endpoint names on startup (#36353)
* Check for duplicate endpoint names on startup

* Add display name to exception message

* Always validate duplicate endpoints and add more info to error
2021-09-15 09:36:53 -07:00
Pranav K 5b7b97aecf
Avoid using TargetFramework in build targets (#36512)
Fixes https://github.com/dotnet/aspnetcore/issues/36510
2021-09-15 08:59:36 -07:00
Martin Costello e7bf642849
Expose ParameterInfo for Minimal Actions API Explorer (#36439)
* Expose ParameterInfo for Minimal Actions API Explorer

Populate the ParameterDescriptor for Minimal Actions parameters with
a type that implements IParameterInfoParameterDescriptor so that any
custom attributes on the parameter can be inspected.
Relates to #36438.

* Remove file-scoped namespace

Addresses review feedback.
2021-09-15 08:52:25 -07:00
Brennan b705a55d0a
Don't ignore XML doc warnings for Polly (#36485) 2021-09-15 02:46:00 +00:00
William Godbe 240aed93a9
Quarantine failing test (#36473)
* Quarantine failing test

* Update src/Hosting/Hosting/test/HostingApplicationTests.cs

Co-authored-by: Chris Ross <chrross@microsoft.com>

Co-authored-by: Chris Ross <chrross@microsoft.com>
2021-09-14 19:26:40 -07:00
Hao Kung de27715451
Clarify InvokeHandlersAfterFailure (#36501) 2021-09-14 20:48:16 +00:00
dependabot[bot] 9aff054563
[main] (deps): Bump src/submodules/spa-templates (#36459)
Bumps [src/submodules/spa-templates](https://github.com/dotnet/spa-templates) from `796e436` to `a64c11d`.
- [Release notes](https://github.com/dotnet/spa-templates/releases)
- [Commits](796e436397...a64c11d491)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-14 20:36:11 +00:00
Hao Kung d8a4abae19
Improve error message (#36442) 2021-09-14 19:03:55 +00:00
Safia Abdalla b156057319
Cherry-pick mismatched parameter optionality analyzer and clean up directories (#36379)
* Add analyzer for detecting mismatched endpoint parameter optionality (#36154)

* Add analyzer for detecting mismatched endpoint parameter optionality

* Address feedback from code review

* Factor out CodeFixes and Analyzers to separate assemblies

* Address more feedback from review

* Address code checks

* Clean up folder structure

* Update solution file and address feedback

* Update src/Framework/Framework.slnf

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

* Add test project to solution file

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2021-09-14 11:39:48 -07:00
Tanay Parikh ed864ce156
Fix Blazor Server Reconnection Mechanism (#36126)
* Fix Blazor Server Reconnection Mechanism

* Fix documentation

* Update yarn.lock

* Update release.js
2021-09-14 17:12:07 +00:00
Chris Ross 4736d1c495
Honor sliding expiration in the security stamp validator (#36394) 2021-09-14 16:48:43 +00:00
William Godbe f6e731a75e
Update SDK (#36470) 2021-09-14 09:46:25 -07:00
William Godbe 6f1b2cda6d
Disable OSX10.14 Helix jobs for now (#36500) 2021-09-14 09:36:12 -07:00
Kahbazi a05221594f
Use HttpMethods.IsGet (#36441) 2021-09-14 04:25:44 +00:00
Aditya Mandaleeka 7a164197f7
Unquarantine Settings_MaxConcurrentStreamsPost_Server. (#36409) 2021-09-13 14:24:36 -07:00
Doug Bunting 3bd0658600
Test in manual internal builds (#36424)
- make it a bit easier to test _everything_ in one go
  - builds site extensions, publishes to BAR, and runs all aspnetcore-ci tests
2021-09-13 12:31:42 -07:00
Doug Bunting 6215dca950
Remove Dependabot `reviewers` (#36420)
- rely on CODEOWNERS instead
2021-09-13 12:31:12 -07:00
Alexander Köplinger 95403c764d
Stop using unencrypted git protocol in build.gradle (#36330)
GitHub is removing support for unencrypted git soon: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
2021-09-13 11:38:53 -07:00
Aditya Mandaleeka c571345cc5
Unquarantine Caching_SendFileWithFullContentLength_Cached (#36430) 2021-09-13 11:15:08 -07:00
Ikko Ashimine b8b3b44fdd
[SignalR TS] Fix typo in Errors.ts (#36367)
occured -> occurred
2021-09-13 11:13:24 -07:00
dotnet-maestro[bot] c23a0e6f5d
Update dependencies from https://github.com/dotnet/arcade build 20210909.5 (#36458)
[main] Update dependencies from dotnet/arcade
2021-09-13 17:06:48 +00:00
Martin Costello 6f5d122022
Use one-shot static hash methods (#36368)
* Use one-shot static hash methods

Use one-shot static hash methods for SHA1 and HMACSHA*.
Also a readability change to use Convert.ToHexString().

* Assert on appsecret_proof

Assert that the correct secret proof is added to the request URL.

* Update URL

Update URL that redirects.

* Fix invalid documentation link

Update link that resulted in a 404.

* Expand TwitterHandler coverage

Add test coverage for CreateTicketAsync(), ObtainAccessTokenAsync() and RetrieveUserDetailsAsync().
2021-09-13 09:01:36 -07:00
Brennan e6a5af6633
[SignalR] Add Http options to Negotiate endpoint metadata (#36078) 2021-09-11 21:25:25 -07:00
dependabot[bot] 72755e00de
Bump path-parse from 1.0.6 to 1.0.7 in /src/Components/Web.JS (#35225)
* Bump path-parse from 1.0.6 to 1.0.7 in /src/Components/Web.JS

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Revert corrupted changes
  - apply suggestions from code review

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2021-09-11 13:57:29 -07:00
Doug Bunting c9c883ae5e
Ensure _Dumps artifacts aren't empty (#36400)
- avoid yellow builds due to `PublishBuildArtifacts@1` warnings
- always include a small file
2021-09-11 12:56:48 -07:00
Aditya Mandaleeka b33b4d4453
Implement 100 Continue for HTTP/3 (#36168)
Implement 100 Continue for HTTP/3.
2021-09-11 02:18:23 +00:00
Javier Calvarro Nelson a5ea945042
[SPA] Update SPA submodule (#36389)
* Update SPA submodule
* Update react test baselines
2021-09-10 22:19:21 +00:00
Kahbazi fc9bacd6d5
Set initial capacity for headers HashSet (#36365) 2021-09-10 13:39:14 -07:00
Doug Bunting 0d0103b4c0
Capture `dotnet` dumps (#36385)
- capture `dotnet` dumps
  - builds are failing soon after `dotnet msbuild` launch
- do not upload dumps twice

nit: Remove disabled explicit component detection job
2021-09-10 20:18:59 +00:00
Tanay Parikh 883c7fcb3c
Invalidate Cached WASM Auth Token on Authentication State Change (#36358)
* Invalidate Cached WASM Auth Token on Authentication State Change

* PR Feedback

* Remove Public API
2021-09-10 11:22:17 -07:00
Eilon Lipton f17b845029
Remove WebView path/query code that isn't used anymore (#36354) (#36377) 2021-09-10 17:44:16 +00:00
Brennan c18a43767c
Improve error messages for missing body and services (#36064)
* wip

* fixups

* format

* fb

* try out fb and new option

* Other DI containers shouldn't regress

* fb

* init

* name

* Address feedback from API review

* Address feedback from peer review

* Disambiguate between Todo as service or body

Co-authored-by: Safia Abdalla <safia@microsoft.com>
2021-09-10 09:42:37 -07:00
Doug Bunting e23fd047b4
Handle shortened JSON file in `dotnet openapi` (#36171)
* Handle shortened JSON file in `dotnet openapi`
  - #35767
  - an existing JSON file must be truncated
* !fixup! Address nits in changed file
  - take VS suggestions
* Stop skipping `dotnet openapi` tests
  - .NET SDKs and Visual Studio's `msbuild` avoid #32686 already
* !fixup! Address nits in `dotnet openapi` test files
  - take VS suggestions
* Extend `dotnet openapi refresh` tests
  - include regression test for #35767
2021-09-09 17:11:31 -07:00
William Godbe 254e105fe8
Fix component governance bugs (#36342)
* Fix component governance bugs

* Lodash -> 21
2021-09-09 23:44:04 +00:00
William Godbe 313f8dbd46
Add Win11 helix-matrix/quarantine queue, remove win7/8 (#36040)
* Add Win11 helix-matrix/quarantine queue, remove win7/8

* Add 6.0 config

* Fix Win
2021-09-09 15:09:24 -07:00
David Fowler 8576c4bfd1
Fixed duplicate metadata in ModelDataSource (#36337)
* Fixed duplicate metadata in ModelDataSource
- Today when we make endpoints for the ModelDataSource, we apply the callbacks to the EndpointBuilder before creating the endpoint. This happens every time anyone accesses the endpoints property. Instead of re-applying the conventions, we do it once on Build. We also throw if more conventions are added after building.
- Added tests
2021-09-09 19:14:13 +00:00
William Godbe 24628d85b8
Un-redact safe request/response headers in HttpLoggingMiddleware (#36307)
* Un-redact safe request/response headers in HttpLoggingMiddleware

* Feedback
2021-09-09 18:41:40 +00:00
Chris Ross b46c5d5e15
Correct the docs on ISession.IsAvailable #27733 (#36301) 2021-09-09 08:50:47 -07:00
Safia Abdalla f5446b0e68
Update node version referenced in text (#36317) 2021-09-09 08:48:52 -07:00
Martin Costello b33ef8f3c2
Add build troubleshooting suggestion (#36178)
* Add troubleshooting suggestion

Add a note about deleting SDK and tools locally if restore.cmd fails.

* Move content to BuildErrors.md

Move the content to a catch-all "Miscellaneous other errors" section.

* Update docs/BuildErrors.md

Co-authored-by: Safia Abdalla <safia@safia.rocks>
2021-09-09 01:39:00 +00:00
Hao Kung c17bd04af0
Unquarantine test (#36297) 2021-09-09 01:13:59 +00:00
dotnet-maestro[bot] 902c622ee4
Update dependencies from https://github.com/dotnet/efcore build 20210908.26 (#36305)
[main] Update dependencies from dotnet/efcore
2021-09-09 00:34:02 +00:00
Chris Ross 8d5212dbb2
Dispose the prior response on retry #28384 (#36162) 2021-09-08 17:21:37 -07:00
Safia Abdalla 8e067e2fe0
Move OpenAPI extensions to routing assembly (#36161)
* Move OpenAPI extensions to routing assembly

* Address feedback from code and API review

* Clean up ReadResponseMetadata implementation

* Update IProducesResponseTypeMetadata to expose ContentTypes

* Address more feedback from review

* Update ContentTypes to IEnumerable

* Make IEnumerable non-nullable

* One more feedback

* Address feedback from review
2021-09-08 15:58:24 -07:00
Ulrich Weigand bd8f7ecda2
Support platforms where crossgen2 is not available (#35916)
* Do not use crossgen2 when targeting s390x (where it is not supported)

* Only reference "Microsoft.NETCore.App.Runtime.$(RuntimeIdentifier)"
  and "Microsoft.NETCore.App.Crossgen2.$(BuildOsName)-$(Crossgen2BuildArchitecture)"
  when actually using crossgen2.
2021-09-08 15:18:46 -07:00
Hao Kung a9986c33a5
Make DataProtection warnings mention aka.ms/dataprotectionwarning (#36174) 2021-09-08 19:26:16 +00:00
Chris Ross 2f02f3dfda
Update facebook oauth to v11.0 (#36284) 2021-09-08 11:15:03 -07:00