From 70050b6af65b96feb6c278ed99ad86e13a0aa8da Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 19:20:30 +0000 Subject: [PATCH 1/2] Add System.Uri and System.UriBuilder threat model references to API docs Co-authored-by: MihaZupan <25307628+MihaZupan@users.noreply.github.com> --- xml/System/Uri.xml | 15 ++++++++++++++- xml/System/UriBuilder.xml | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/xml/System/Uri.xml b/xml/System/Uri.xml index 8a23c8ae6f5..c9a75f0a2a6 100644 --- a/xml/System/Uri.xml +++ b/xml/System/Uri.xml @@ -100,7 +100,18 @@ Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI. - For more information about this API, see Supplemental API remarks for Uri. + + and : + +- [System.Uri threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.Uri%20Threat%20Model.md) +- [System.UriBuilder threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.UriBuilder%20Threat%20Model.md) + + ]]> + class and uses it to perform a GET request with . @@ -126,6 +137,8 @@ The following code snippet shows example values of the various properties on the Changes to the System.Uri namespace in Version 2.0 International Resource Identifier Support in System.UriSystem.Uri Network Programming in the .NET Framework + System.Uri threat model + System.UriBuilder threat model diff --git a/xml/System/UriBuilder.xml b/xml/System/UriBuilder.xml index 8a29f1a3e06..5d7221fcc29 100644 --- a/xml/System/UriBuilder.xml +++ b/xml/System/UriBuilder.xml @@ -73,9 +73,16 @@ The properties provide read/write access to the read-only properties so that they can be modified. +Review the following threat model documents for more details about the design and security considerations of and : + +- [System.Uri threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.Uri%20Threat%20Model.md) +- [System.UriBuilder threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.UriBuilder%20Threat%20Model.md) + ]]> + System.Uri threat model + System.UriBuilder threat model From 15fcfe8369aa52211fa0af1787aa17180c6009b8 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Wed, 18 Mar 2026 21:37:24 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- xml/System/Uri.xml | 2 +- xml/System/UriBuilder.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System/Uri.xml b/xml/System/Uri.xml index c9a75f0a2a6..9089fcb3810 100644 --- a/xml/System/Uri.xml +++ b/xml/System/Uri.xml @@ -135,7 +135,7 @@ The following code snippet shows example values of the various properties on the Changes to the System.Uri namespace in Version 2.0 - International Resource Identifier Support in System.UriSystem.Uri + International Resource Identifier Support in System.Uri Network Programming in the .NET Framework System.Uri threat model System.UriBuilder threat model diff --git a/xml/System/UriBuilder.xml b/xml/System/UriBuilder.xml index 5d7221fcc29..8ac76613ea4 100644 --- a/xml/System/UriBuilder.xml +++ b/xml/System/UriBuilder.xml @@ -73,10 +73,10 @@ The properties provide read/write access to the read-only properties so that they can be modified. -Review the following threat model documents for more details about the design and security considerations of and : + Review the following threat model documents for more details about the design and security considerations of and : -- [System.Uri threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.Uri%20Threat%20Model.md) -- [System.UriBuilder threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.UriBuilder%20Threat%20Model.md) + - [System.Uri threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.Uri%20Threat%20Model.md) + - [System.UriBuilder threat model](https://github.com/dotnet/runtime/blob/main/src/libraries/System.Private.Uri/docs/System.UriBuilder%20Threat%20Model.md) ]]>