From d512a6149424631735324afd003dd0c70fcbef94 Mon Sep 17 00:00:00 2001 From: Lawrence LCI Date: Thu, 30 Mar 2023 11:40:53 -0700 Subject: [PATCH 1/3] Add release notes for 5.0.2 Hotfix release --- CHANGELOG.md | 9 +++++ release-notes/5.0/5.0.2.md | 75 +++++++++++++++++++++++++++++++++++++ release-notes/5.0/5.0.md | 1 + release-notes/5.0/README.md | 1 + 4 files changed, 86 insertions(+) create mode 100644 release-notes/5.0/5.0.2.md diff --git a/CHANGELOG.md b/CHANGELOG.md index f7faf6ab7a..42e3817108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,15 @@ This update brings the below changes over the previous release: - When using `Encrypt=Strict` with TLS v1.3, the TLS handshake occurs twice on initial connection on .NET Framework due to a timeout during the TLS handshake and a retry helper re-establishes the connection; however, on .NET Core, it will throw a `System.ComponentModel.Win32Exception (258): The wait operation timed out.` and is being investigated. If you're using Microsoft.Data.SqlClient with .NET Core on Windows 11, you will need to enable the managed SNI on Windows context switch using following statement `AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true);` to use TLS v1.3 or disabling TLS 1.3 from the registry by assigning `0` to the following `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client\Enabled` registry key and it'll use TLS v1.2 for the connection. This will be fixed in a future release. +## [Stable release 5.0.2] - 2023-03-30 + +### Fixed + +- Fixed `TransactionScope` connection issue when `Enlist` is `enabled`, `Pooling` is `disabled`, and `Network Connection Type` is set to `Redirect`. [#1978](https://github.com/dotnet/SqlClient/pull/1978) +- Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. [#1977](https://github.com/dotnet/SqlClient/pull/1977) +- Fixed TDS RPC error on large queries in `SqlCommand.ExecuteReaderAsync`. [#1976](https://github.com/dotnet/SqlClient/pull/1976) +- Fixed deadlock when using SinglePhaseCommit with distributed transactions. [#1975](https://github.com/dotnet/SqlClient/pull/1975) + ## [Stable release 5.0.1] - 2022-10-07 ### Fixed diff --git a/release-notes/5.0/5.0.2.md b/release-notes/5.0/5.0.2.md new file mode 100644 index 0000000000..5d810407ab --- /dev/null +++ b/release-notes/5.0/5.0.2.md @@ -0,0 +1,75 @@ +# Release Notes + +## Microsoft.Data.SqlClient 5.0.2 released 30 March 2023 + +This update includes the following changes over the 5.0.1 release: + +### Fixed + +- Fixed `TransactionScope` connection issue when `Enlist` is `enabled`, `Pooling` is `disabled`, and `Network Connection Type` is set to `Redirect`. [#1978](https://github.com/dotnet/SqlClient/pull/1978) +- Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. [#1977](https://github.com/dotnet/SqlClient/pull/1977) +- Fixed TDS RPC error on large queries in `SqlCommand.ExecuteReaderAsync`. [#1976](https://github.com/dotnet/SqlClient/pull/1976) +- Fixed deadlock when using SinglePhaseCommit with distributed transactions. [#1975](https://github.com/dotnet/SqlClient/pull/1975) + +## Target Platform Support + +- .NET Framework 4.6.2+ (Windows x86, Windows x64) +- .NET Core 3.1+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) +- .NET Standard 2.0+ (Windows x86, Windows x64, Windows ARM64, Windows ARM, Linux, macOS) + +### Dependencies + +#### .NET Framework + +- Microsoft.Data.SqlClient.SNI 5.0.1 +- Azure.Identity 1.6.0 +- Microsoft.Identity.Client 4.45.0 +- Microsoft.IdentityModel.JsonWebTokens 6.21.0 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.21.0 +- System.Buffers 4.5.1 +- System.Configuration.ConfigurationManager 5.0.0 +- System.IO 4.3.0 +- System.Runtime.InteropServices.RuntimeInformation 4.3.0 +- System.Security.Cryptography.Algorithms 4.3.1 +- System.Security.Cryptography.Primitives 4.3.0 +- System.Text.Encoding.Web 4.7.2 + +#### .NET Core + +- Microsoft.Data.SqlClient.SNI.runtime 5.0.1 +- Azure.Identity 1.6.0 +- Microsoft.Identity.Client 4.45.0 +- Microsoft.IdentityModel.JsonWebTokens 6.21.0 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.21.0 +- Microsoft.SqlServer.Server 1.0.0 +- Microsoft.Win32.Registry 5.0.0 +- System.Buffers 4.5.1 +- System.Configuration.ConfigurationManager 5.0.0 +- System.Diagnostics.DiagnosticSource 5.0.0 +- System.IO 4.3.0 +- System.Runtime.Caching 5.0.0 +- System.Text.Encoding.CodePages 5.0.0 +- System.Text.Encodings.Web 4.7.2 +- System.Resources.ResourceManager 4.3.0 +- System.Security.Cryptography.Cng 5.0.0 +- System.Security.Principal.Windows 5.0.0 + +#### .NET Standard + +- Microsoft.Data.SqlClient.SNI.runtime 5.0.1 +- Azure.Identity 1.6.0 +- Microsoft.Identity.Client 4.45.0 +- Microsoft.IdentityModel.Protocols.OpenIdConnect 6.21.0 +- Microsoft.IdentityModel.JsonWebTokens 6.21.0 +- Microsoft.SqlServer.Server 1.0.0 +- Microsoft.Win32.Registry 5.0.0 +- System.Buffers 4.5.1 +- System.Configuration.ConfigurationManager 5.0.0 +- System.IO 4.3.0 +- System.Runtime.Caching 5.0.0 +- System.Text.Encoding.CodePages 5.0.0 +- System.Text.Encodings.Web 4.7.2 +- System.Runtime.Loader 4.3.0 +- System.Resources.ResourceManager 4.3.0 +- System.Security.Cryptography.Cng 5.0.0 +- System.Security.Principal.Windows 5.0.0 diff --git a/release-notes/5.0/5.0.md b/release-notes/5.0/5.0.md index ec3dbc7eb6..9afad8e9ce 100644 --- a/release-notes/5.0/5.0.md +++ b/release-notes/5.0/5.0.md @@ -4,6 +4,7 @@ The following Microsoft.Data.SqlClient 5.0 stable releases have been shipped: | Release Date | Version | Notes | | :-- | :-- | :--: | +| 2023/03/30 | 5.0.2 | [release notes](5.0.2.md) | | 2022/10/07 | 5.0.1 | [release notes](5.0.1.md) | | 2022/08/05 | 5.0.0 | [release notes](5.0.0.md) | diff --git a/release-notes/5.0/README.md b/release-notes/5.0/README.md index ec3dbc7eb6..9afad8e9ce 100644 --- a/release-notes/5.0/README.md +++ b/release-notes/5.0/README.md @@ -4,6 +4,7 @@ The following Microsoft.Data.SqlClient 5.0 stable releases have been shipped: | Release Date | Version | Notes | | :-- | :-- | :--: | +| 2023/03/30 | 5.0.2 | [release notes](5.0.2.md) | | 2022/10/07 | 5.0.1 | [release notes](5.0.1.md) | | 2022/08/05 | 5.0.0 | [release notes](5.0.0.md) | From 0e8d6e8fd45fb176c2a27fd086ff18c95ba766c7 Mon Sep 17 00:00:00 2001 From: Lawrence LCI Date: Thu, 30 Mar 2023 21:40:29 -0700 Subject: [PATCH 2/3] Change the date for the release --- CHANGELOG.md | 2 +- release-notes/5.0/5.0.2.md | 2 +- release-notes/5.0/5.0.md | 2 +- release-notes/5.0/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42e3817108..180dac38b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,7 +82,7 @@ This update brings the below changes over the previous release: - When using `Encrypt=Strict` with TLS v1.3, the TLS handshake occurs twice on initial connection on .NET Framework due to a timeout during the TLS handshake and a retry helper re-establishes the connection; however, on .NET Core, it will throw a `System.ComponentModel.Win32Exception (258): The wait operation timed out.` and is being investigated. If you're using Microsoft.Data.SqlClient with .NET Core on Windows 11, you will need to enable the managed SNI on Windows context switch using following statement `AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true);` to use TLS v1.3 or disabling TLS 1.3 from the registry by assigning `0` to the following `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client\Enabled` registry key and it'll use TLS v1.2 for the connection. This will be fixed in a future release. -## [Stable release 5.0.2] - 2023-03-30 +## [Stable release 5.0.2] - 2023-03-31 ### Fixed diff --git a/release-notes/5.0/5.0.2.md b/release-notes/5.0/5.0.2.md index 5d810407ab..60158cb6df 100644 --- a/release-notes/5.0/5.0.2.md +++ b/release-notes/5.0/5.0.2.md @@ -1,6 +1,6 @@ # Release Notes -## Microsoft.Data.SqlClient 5.0.2 released 30 March 2023 +## Microsoft.Data.SqlClient 5.0.2 released 31 March 2023 This update includes the following changes over the 5.0.1 release: diff --git a/release-notes/5.0/5.0.md b/release-notes/5.0/5.0.md index 9afad8e9ce..0f8d216061 100644 --- a/release-notes/5.0/5.0.md +++ b/release-notes/5.0/5.0.md @@ -4,7 +4,7 @@ The following Microsoft.Data.SqlClient 5.0 stable releases have been shipped: | Release Date | Version | Notes | | :-- | :-- | :--: | -| 2023/03/30 | 5.0.2 | [release notes](5.0.2.md) | +| 2023/03/31 | 5.0.2 | [release notes](5.0.2.md) | | 2022/10/07 | 5.0.1 | [release notes](5.0.1.md) | | 2022/08/05 | 5.0.0 | [release notes](5.0.0.md) | diff --git a/release-notes/5.0/README.md b/release-notes/5.0/README.md index 9afad8e9ce..0f8d216061 100644 --- a/release-notes/5.0/README.md +++ b/release-notes/5.0/README.md @@ -4,7 +4,7 @@ The following Microsoft.Data.SqlClient 5.0 stable releases have been shipped: | Release Date | Version | Notes | | :-- | :-- | :--: | -| 2023/03/30 | 5.0.2 | [release notes](5.0.2.md) | +| 2023/03/31 | 5.0.2 | [release notes](5.0.2.md) | | 2022/10/07 | 5.0.1 | [release notes](5.0.1.md) | | 2022/08/05 | 5.0.0 | [release notes](5.0.0.md) | From b47469c3caddf4611d241b50c88919061a790c6b Mon Sep 17 00:00:00 2001 From: Lawrence LCI Date: Fri, 31 Mar 2023 09:12:37 -0700 Subject: [PATCH 3/3] Add PR 1980 in the release notes --- CHANGELOG.md | 1 + release-notes/5.0/5.0.2.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 180dac38b3..c7b3bf1e2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,7 @@ This update brings the below changes over the previous release: ### Fixed +- Fixed memory leak regression from [#1785](https://github.com/dotnet/SqlClient/pull/1785) using a `DisposableTemporaryOnStack` struct. [#1980](https://github.com/dotnet/SqlClient/pull/1980) - Fixed `TransactionScope` connection issue when `Enlist` is `enabled`, `Pooling` is `disabled`, and `Network Connection Type` is set to `Redirect`. [#1978](https://github.com/dotnet/SqlClient/pull/1978) - Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. [#1977](https://github.com/dotnet/SqlClient/pull/1977) - Fixed TDS RPC error on large queries in `SqlCommand.ExecuteReaderAsync`. [#1976](https://github.com/dotnet/SqlClient/pull/1976) diff --git a/release-notes/5.0/5.0.2.md b/release-notes/5.0/5.0.2.md index 60158cb6df..6d972f1592 100644 --- a/release-notes/5.0/5.0.2.md +++ b/release-notes/5.0/5.0.2.md @@ -6,6 +6,7 @@ This update includes the following changes over the 5.0.1 release: ### Fixed +- Fixed memory leak regression from [#1785](https://github.com/dotnet/SqlClient/pull/1785) using a `DisposableTemporaryOnStack` struct. [#1980](https://github.com/dotnet/SqlClient/pull/1980) - Fixed `TransactionScope` connection issue when `Enlist` is `enabled`, `Pooling` is `disabled`, and `Network Connection Type` is set to `Redirect`. [#1978](https://github.com/dotnet/SqlClient/pull/1978) - Fixed an incorrect exception when a symmetric key fails to decrypt a column using Always Encrypted. [#1977](https://github.com/dotnet/SqlClient/pull/1977) - Fixed TDS RPC error on large queries in `SqlCommand.ExecuteReaderAsync`. [#1976](https://github.com/dotnet/SqlClient/pull/1976)