Skip to content

Merging internal commits for release/10.0.1xx - #7736

Merged
mthalman merged 67 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-07-14-2119
Jul 15, 2026
Merged

mthalman merged 67 commits into
release/10.0.1xxfrom
internal-merge-10.0.1xx-2026-07-14-2119

Conversation

@dotnet-bot

Copy link
Copy Markdown
Collaborator

No description provided.

Mirroring and others added 30 commits May 19, 2026 09:09
…plate

NotFoundPage feature was added in net10 in dotnet/aspnetcore#60970.

If its value is set in the Router, it will be rendered on NavigationManager.NotFound() call or NavigationManager.Navigate("non-existing-path").

Originally it was rendered with bare <RouteView>, creating a different logical path for rendering than other pages that go through <Found> fragment. This meant that <AuthorizeRouteView> inside <Found> (and other wrappers, such as custom layouts or other route-view decorators) was never applied. As a result, NotFoundPage that carried [Authorize] attribute behaved as if that attribute did not exist on it.

Fix:
Instead of "manual" rendering setup, use <Found> to render NotFoundPage.

Tested:
- E2E for not found page with [Authorize] -> expect NotAuthorize content. Passes locally.
- Updated unit test that used to expect bare <RouteView>. Passes locally.
- Manual tests of Component.TestServer app with the change.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to ensure the Router component's NotFoundPage is rendered through the `<Found>` template, enabling proper authorization checks and layout application.

#### PR Summary
The Router now renders the NotFoundPage through the `<Found>` template instead of directly using RouteView, allowing authorization and custom rendering logic to be applied consistently to not-found pages.

- `Router.cs`: Changed NotFoundPage rendering to use the `Found` template instead of directly instantiating `RouteView`
- `App.razor`: Added support for authorized not-found pages with a new `useAuthorizedNotFoundPage` parameter and corresponding routing configuration
- `AuthorizedNotFoundPage.razor`: New test page with `[Authorize]` attribute to verify authorization works for not-found pages
- `NoInteractivityTest.cs`: Added test case to verify anonymous users see "Not authorized" content when accessing authorized not-found pages
- `RouterTest.cs`: Updated test assertion to verify NotFoundPage renders through the `<Found>` template
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Fix CRLF encoding in EightBitStream

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to address incorrect CRLF (Carriage Return Line Feed) encoding handling in the EightBitStream class.

#### PR Summary
Fixes CRLF encoding by deferring CR (Carriage Return) writes until determining if they are part of a CRLF sequence, preventing incorrect line ending detection when CR and LF bytes span across multiple write operations.

- `EightBitStream.cs`: Added `_lastWriteEndedWithCr` field to track deferred CR writes across buffer boundaries
- `EightBitStream.cs`: Modified `EncodeLines` method to defer writing CR bytes until the next byte confirms whether it's part of a CRLF sequence
- `EightBitStream.cs`: Implemented `Dispose` and `DisposeAsync` methods to flush any pending deferred CR byte during stream disposal
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
# Conflicts:
#	src/aspnetcore/eng/Versions.props
…LS packets

Fix SslStream handshake with malformed TLS packets

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to address security vulnerability MSRC 115387 by improving error handling for malformed TLS packets during SslStream handshake.

#### PR Summary
This PR fixes a vulnerability where malformed TLS packets during handshake could cause improper behavior by strengthening validation and error handling in the TLS frame processing logic.

- `TlsFrameHelper.cs`: Fixed to return `false` instead of continuing when encountering unknown TLS frame formats
- `SslStream.IO.cs`: Modified `ProcessTlsFrame` to throw `AuthenticationException` when `TryGetFrameHeader` fails for malformed frames, and consolidated error handling in `ReadFrameAsync` to consistently throw `AuthenticationException` for invalid frame sizes
- `SslStreamStreamToStreamTest.cs`: Added test `MalformedPacketsDuringHandshake_ThrowsIOException` to verify that malformed TLS packets trigger appropriate exceptions during handshake
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
…sed on unsupported platforms.

Throw PNSE when Extended Protection is used on unsupported platforms.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to throw a `PlatformNotSupportedException` when Extended Protection is configured on platforms that do not support it.

#### PR Summary
This PR adds platform validation for Extended Protection Policy usage in NegotiateAuthentication, ensuring that a `PlatformNotSupportedException` is thrown when Extended Protection is enforced on unsupported platforms (non-Windows).

- `NegotiateAuthentication.cs`: Added validation check to throw `PlatformNotSupportedException` when `PolicyEnforcement.Always` is used and the OS doesn't support Extended Protection
- `NegotiateAuthenticationTests.cs`: Added unit test to verify that `PlatformNotSupportedException` is thrown on Unix platforms when Extended Protection is configured
- `Strings.resx`: Added error message resource for Extended Protection platform not supported exception
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
akoeplinger and others added 14 commits June 25, 2026 10:27
…ublic-release-10.0.1xx

# Conflicts:
#	src/aspnetcore/eng/Versions.props
#### AI description  (iteration 1)
#### PR Classification
Merge of public release branch into internal branch, incorporating test improvements for XML documentation comment ID generation.

#### PR Summary
This PR merges the public release/10.0.1xx branch into the internal branch, adding a new test snapshot file for XML comment documentation ID handling in OpenAPI source generators.

- Added `XmlCommentDocumentationIdTests.ShouldNotDuplicateDocumentationIds#OpenApiXmlCommentSupport.generated.verified.cs` test snapshot file containing generated code for XML comment support in OpenAPI, including documentation ID helpers, transformers for operations and schemas, and caching mechanisms for XML comments.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->


Related work items: #7333, #7365
#### AI description  (iteration 1)
#### PR Classification
Configuration update to swap PublicKeyToken values for Microsoft.ApplicationInsights assembly suppression entries.

#### PR Summary
This pull request swaps the PublicKeyToken values between two suppression entries for the Microsoft.ApplicationInsights assembly in the API diff suppression configuration file.

- `ApiDiff.suppression`: Exchanged PublicKeyToken values `31bf3856ad364e35` and `f23a46de0be5d6f3` between two CP0003 diagnostic suppressions for Microsoft.ApplicationInsights.dll
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
…eference stubs

Port of https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/pullrequest/62260

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix to prevent source-build poison leak by explicitly referencing dependency abstractions at the correct version.

#### PR Summary
Adds explicit package references to prevent transitive dependencies from resolving to incompatible reference-assembly versions during source-build, which would cause poisoned reference stubs to ship in the packed tool.

- `dotnet-user-jwts.csproj`: Added explicit references to `Microsoft.Extensions.Logging.Abstractions` and `Microsoft.Extensions.DependencyInjection.Abstractions` to force resolution to 10.0.x runtime packages instead of 8.0.0 reference assemblies
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
@dotnet-bot
dotnet-bot requested review from a team as code owners July 14, 2026 21:20
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@mthalman
mthalman enabled auto-merge July 14, 2026 21:38
Comment thread src/source-build-assets/.gitmodules Resolved
@mthalman
mthalman disabled auto-merge July 15, 2026 19:33
@mthalman
mthalman merged commit e11eb25 into release/10.0.1xx Jul 15, 2026
9 of 11 checks passed
@mthalman
mthalman deleted the internal-merge-10.0.1xx-2026-07-14-2119 branch July 15, 2026 19:34
ellahathaway added a commit to dotnet/source-build-assets that referenced this pull request Jul 27, 2026
Use the internal IdentityModel mirror commit whose tree matches the VMR source-build-assets slice from dotnet/dotnet#7736, so the source-build patches apply cleanly.

Disable NuGet audit for non-official builds so PR tests do not fail on audit warnings while official builds remain audited.

Co-authored-by: Copilot App <[email protected]>
ellahathaway added a commit to dotnet/source-build-assets that referenced this pull request Jul 27, 2026
* Backflow from https://github.com/dotnet/dotnet / e0c9b3f build 324500

Diff: https://github.com/dotnet/dotnet/compare/73c918ba4e862805e0be9bd8d07571c915cb273f..e0c9b3f934e7b97b360f4ce3692ab45b9634ae1d

From: dotnet/dotnet@73c918b
To: dotnet/dotnet@e0c9b3f

[[ commit created by automation ]]

* Update dependencies from build 324500
Updated Dependencies:
Microsoft.Build, Microsoft.Build.Utilities.Core (Version 18.0.11 -> 18.0.11)
Microsoft.DotNet.Arcade.Sdk (Version 10.0.0-beta.26361.102 -> 10.0.0-beta.26376.103)
Microsoft.DotNet.GenAPI.Task (Version 10.0.110-servicing.26361.102 -> 10.0.112-servicing.26376.103)
Microsoft.NETCore.ILAsm, Microsoft.NETCore.ILDAsm (Version 10.0.10 -> 10.0.12)
[[ commit created by automation ]]

* Change submodule URL for azure-activedirectory-identitymodel

Updated the URL for the azure-activedirectory-identitymodel-extensions-for-dotnet submodule to point to the GitHub repository.

* Align IdentityModel source-build assets

Use the internal IdentityModel mirror commit whose tree matches the VMR source-build-assets slice from dotnet/dotnet#7736, so the source-build patches apply cleanly.

Disable NuGet audit for non-official builds so PR tests do not fail on audit warnings while official builds remain audited.

Co-authored-by: Copilot App <[email protected]>

* Use public IdentityModel source

Restore the AzureAD IdentityModel submodule to the public 8.19.2 tag and adjust the source-build patch so it applies to that public source state.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Ella Hathaway <[email protected]>
Co-authored-by: Ella Hathaway <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.