dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
725 stars 1.56k forks source link

Remove examples that show insecure practices #10435

Closed gewarren closed 1 month ago

gewarren commented 1 month ago

Contributes to #10342.

(Hide whitespace changes.)

learn-build-service-prod[bot] commented 1 month ago

Learn Build status updates of commit 301b118:

:warning: Validation status: warnings

File Status Preview URL Details
xml/System.Data.SqlClient/SqlConnectionStringBuilder.xml :warning:Warning View Details
xml/System.Web.Configuration/FormsAuthenticationCredentials.xml :warning:Warning View Details
xml/System.Web.Configuration/FormsAuthenticationUser.xml :warning:Warning View Details
xml/System.Web.Configuration/FormsAuthenticationUserCollection.xml :warning:Warning View Details
xml/System.Web.Configuration/FormsAuthPasswordFormat.xml :warning:Warning View Details
xml/System.Web.Configuration/OutputCacheProfileCollection.xml :warning:Warning View Details
includes/forms-auth-warning.md :white_check_mark:Succeeded View
includes/ropc-warning.md :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/authenticationsection.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/formsauthenticationconfiguration.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationUser/CS/formsauthenticationuser.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
xml/System.Configuration/DpapiProtectedConfigurationProvider.xml :white_check_mark:Succeeded View
xml/System.Configuration/ProtectedConfigurationProvider.xml :white_check_mark:Succeeded View
xml/System.Data.SqlClient/SqlClientPermission.xml :white_check_mark:Succeeded View
xml/System.Data.SqlClient/SqlConnection.xml :white_check_mark:Succeeded View
xml/System.Web.Configuration/AuthenticationSection.xml :white_check_mark:Succeeded View
xml/System.Web.Configuration/FormsAuthenticationConfiguration.xml :white_check_mark:Succeeded View
xml/System.Web.Configuration/ProcessModelSection.xml :white_check_mark:Succeeded View

xml/System.Data.SqlClient/SqlConnectionStringBuilder.xml

xml/System.Web.Configuration/FormsAuthenticationCredentials.xml

xml/System.Web.Configuration/FormsAuthenticationUser.xml

xml/System.Web.Configuration/FormsAuthenticationUserCollection.xml

xml/System.Web.Configuration/FormsAuthPasswordFormat.xml

xml/System.Web.Configuration/OutputCacheProfileCollection.xml

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

learn-build-service-prod[bot] commented 1 month ago

Learn Build status updates of commit c6a5c00:

:warning: Validation status: warnings

File Status Preview URL Details
xml/System.Web.Configuration/FormsAuthenticationUserCollection.xml :warning:Warning View Details
includes/forms-auth-warning.md :white_check_mark:Succeeded View
includes/ropc-warning.md :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader2/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction2 Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction3 Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataReader.Read Example/CS/SqlDataReader.Read.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/authenticationsection.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/formsauthenticationconfiguration.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationUser/CS/formsauthenticationuser.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader2/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.SqlCommand2 Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction2 Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction3 Example/VB/Project.vbproj :white_check_mark:Succeeded

This comment lists only the first 25 files in the pull request.

xml/System.Web.Configuration/FormsAuthenticationUserCollection.xml

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

learn-build-service-prod[bot] commented 1 month ago

Learn Build status updates of commit 11a7940:

:white_check_mark: Validation status: passed

File Status Preview URL Details
includes/forms-auth-warning.md :white_check_mark:Succeeded View
includes/ropc-warning.md :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader2/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction2 Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction3 Example/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/Classic WebData SqlDataReader.Read Example/CS/SqlDataReader.Read.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder/CS/source.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/authenticationsection.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.AuthenticationSection/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/formsauthenticationconfiguration.cs :white_check_mark:Succeeded View
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationConfiguration/CS/Project.csproj :white_check_mark:Succeeded
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationCredentials/CS/formsauthenticationcredentials.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.FormsAuthenticationUser/CS/formsauthenticationuser.cs :white_check_mark:Succeeded n/a (file deleted or renamed)
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.ExecuteReader2/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlCommand.SqlCommand2 Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction2 Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/Classic WebData SqlConnection.BeginTransaction3 Example/VB/Project.vbproj :white_check_mark:Succeeded
snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks SqlConnectionStringBuilder.Remove/VB/Project.vbproj :white_check_mark:Succeeded

This comment lists only the first 25 files in the pull request. For more details, please refer to the build report.

For any questions, please: