Skip to content

Commit 158f2e3

Browse files
committed
Merge branch 'release/5.1' of github.com:dotnet/SqlClient into fix-dtc-5.1
2 parents 0ba4ef8 + 6af24bc commit 158f2e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+835
-172
lines changed

.config/tsaoptions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repositoryName": "SqlClient",
88
"codebaseName": "SqlClient",
99
"allTools": true,
10-
"template": "MSDATA_RevolutionR",
10+
"template": "MSDATA_RevolutionR_Overloaded0",
1111
"language": "csharp",
1212
"includePathPatterns": "src/Microsoft.Data.SqlClient/*, src/Microsoft.SqlServer.Server/*, tools/*",
1313
"excludePathPatterns": "src/Microsoft.Data.SqlClient/tests/*"

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,42 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

7+
# Release Notes
8+
9+
## [Stable release 5.1.7] - 2025-04-25
10+
11+
This update brings the following changes since the 5.1.6 release:
12+
13+
### Fixed
14+
15+
- Fixed possible `NullPointerException` during socket receive (PR [#3285](https://github.com/dotnet/SqlClient/pull/3285))
16+
- Fixed inconsistencies between source and reference projects (PR [#3180](https://github.com/dotnet/SqlClient/pull/3180))
17+
18+
### Changed
19+
20+
- Updated the following dependencies:
21+
- [Microsoft.Data.SqlClient.SNI](https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI/5.1.2) 5.1.1 to 5.1.2 for .NET Framework on Windows (PR [#3294](https://github.com/dotnet/SqlClient/pull/3294))
22+
- [Microsoft.Data.SqlClient.SNI.runtime](https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/5.1.2) 5.1.1 to 5.1.2 for .NET on Windows (PR [#3294](https://github.com/dotnet/SqlClient/pull/3294))
23+
- [Microsoft.Extensions.Caching.Memory](https://www.nuget.org/packages/Microsoft.Extensions.Caching.Memory/6.0.3) 6.0.1 to 6.0.3 - Avoid [CVE-2024-43483](https://github.com/advisories/GHSA-qj66-m88j-hmgj) (PR [#3068](https://github.com/dotnet/SqlClient/pull/3068))
24+
- [Microsoft.Extensions.Hosting](https://www.nuget.org/packages/Microsoft.Extensions.Hosting/6.0.1) 6.0.0 to 6.0.1 - Avoid transitive dependency on vulnerable [System.Text.Json](https://www.nuget.org/packages/System.Text.Json/6.0.0) 6.0.0 (PR [#3207](https://github.com/dotnet/SqlClient/pull/3207))
25+
- [System.Private.Uri](https://www.nuget.org/packages/System.Private.Uri) 4.3.2 - Avoid transitive [CVE-2019-0820](https://msrc.microsoft.com/update-guide/en-US/advisory/CVE-2019-0820) (PR [#3077](https://github.com/dotnet/SqlClient/pull/3077))
26+
- [System.Text.Encodings.Web](https://www.nuget.org/packages/System.Text.Encodings.Web/6.0.1) 6.0.0 to 6.0.1 - Avoid transitive downgrade for .NET Framework targets (PR [#3279](https://github.com/dotnet/SqlClient/pull/3279))
27+
- [System.Text.Json](https://www.nuget.org/packages/System.Text.Json/6.0.11) 6.0.11 - Avoid transitive dependencies on older vulnerable versions for .NET Framework targets (PR [#3279](https://github.com/dotnet/SqlClient/pull/3279))
28+
29+
## [Stable release 5.1.6] - 2024-08-27
30+
31+
### Fixed
32+
33+
- Fixed Transient fault handling issue with `OpenAsync`. [#1983](https://github.com/dotnet/SqlClient/pull/1983) [#2508](https://github.com/dotnet/SqlClient/pull/2508)
34+
- Fixed `AcquireTokenAsync` timeout handling for edge cases in `ActiveDirectoryAuthenticationProvider`. [#2706](https://github.com/dotnet/SqlClient/pull/2706)
35+
- Fixed pending data with `SqlDataReader` against an encrypted column. [#2618](https://github.com/dotnet/SqlClient/pull/2618) [#2818](https://github.com/dotnet/SqlClient/pull/2818)
36+
37+
### Changed
38+
39+
- Upgraded `Azure.Identity` version from 1.11.3 to 1.11.4 [#2649] (https://github.com/dotnet/SqlClient/pull/2649) [#2529] (https://github.com/dotnet/SqlClient/pull/2529) to address [CVE-2024-35255](https://github.com/advisories/GHSA-m5vv-6r4h-3vj9).
40+
- Upgraded `Microsoft.Identity.Client` version from 4.60.0 to 4.61.3 [#2649] (https://github.com/dotnet/SqlClient/pull/2649) [#2529] (https://github.com/dotnet/SqlClient/pull/2529) to address [CVE-2024-35255](https://github.com/advisories/GHSA-m5vv-6r4h-3vj9).
41+
- Added caching to `TokenCredential` objects to take advantage of token caching. [#2776](https://github.com/dotnet/SqlClient/pull/2776)
42+
- Code health improvements: [#2490] (https://github.com/dotnet/SqlClient/pull/2490)
743

844
## [Stable release 5.1.5] - 2024-01-29
945

src/NuGet.config renamed to NuGet.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
<clear />
55
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
66
</packageSources>
7+
<auditSources>
8+
<clear />
9+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
10+
</auditSources>
711
</configuration>

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
<Target Name="BuildTools" Condition="'$(BuildTools)' == 'true'">
107107
<PropertyGroup>
108-
<DotnetBuildCmd>$(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType)"</DotnetBuildCmd>
108+
<DotnetBuildCmd>$(DotNetCmd) dotnet build -c Release -p:ReferenceType=$(ReferenceType)</DotnetBuildCmd>
109109
</PropertyGroup>
110110
<Exec Command="$(DotnetBuildCmd)" WorkingDirectory="$(GenAPISrcDir)Microsoft.DotNet.GenAPI\" />
111111
</Target>

doc/samples/SqlConnectionStringBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ static void Main()
2121
// connection string, and you can retrieve and
2222
// modify any of the elements.
2323
builder.ConnectionString = "server=(local);user id=ab;" +
24-
"password= a!Pass113;initial catalog=AdventureWorks";
24+
"password=********;initial catalog=AdventureWorks";
2525

2626
// Now that the connection string has been parsed,
2727
// you can work with individual items.
2828
Console.WriteLine(builder.Password);
29-
builder.Password = "new@1Password";
29+
builder.Password = "********";
3030

3131
// You can refer to connection keys using strings,
3232
// as well. When you use this technique (the default

doc/samples/SqlConnectionStringBuilder3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static void Main()
1010
try
1111
{
1212
string connectString =
13-
"Server=(local);Database=AdventureWorks;UID=ab;Pwd= a!Pass@@";
13+
"Server=(local);Database=AdventureWorks;UID=ab;Pwd=********";
1414
Console.WriteLine("Original: " + connectString);
1515
SqlConnectionStringBuilder builder =
1616
new SqlConnectionStringBuilder(connectString);

doc/samples/SqlConnectionStringBuilder_IntegratedSecurity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static void Main()
1010
try
1111
{
1212
string connectString =
13-
"Data Source=(local);User ID=ab;Password=MyPassword;" +
13+
"Data Source=(local);User ID=ab;Password=********;" +
1414
"Initial Catalog=AdventureWorks";
1515

1616
SqlConnectionStringBuilder builder =

doc/samples/SqlConnectionStringBuilder_Remove.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ static void Main()
1010
try
1111
{
1212
string connectString =
13-
"Data Source=(local);User ID=ab;Password= a1Pass@@11;" +
13+
"Data Source=(local);User ID=ab;Password=********;" +
1414
"Initial Catalog=AdventureWorks";
1515

1616
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(connectString);

doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ Connections are considered the same if they have the same connection string. Dif
839839
The example displays the following text in the console window:
840840
841841
```
842-
Original: Data Source=(local);Initial Catalog=AdventureWorks;User ID=ab;Password= a1Pass@@11
842+
Original: Data Source=(local);Initial Catalog=AdventureWorks;User ID=ab;Password=********
843843
Modified: Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True
844844
Database = AdventureWorks
845845
```

eng/pipelines/common/templates/steps/esrp-code-signing-step.yml

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ parameters:
1717
type: string
1818
default: $(artifactDirectory)
1919

20+
- name: ESRPConnectedServiceName
21+
type: string
22+
default: $(ESRPConnectedServiceName)
23+
2024
- name: appRegistrationClientId
2125
type: string
2226
default: $(appRegistrationClientId)
@@ -25,29 +29,42 @@ parameters:
2529
type: string
2630
default: $(appRegistrationTenantId)
2731

32+
- name: AuthAKVName
33+
type: string
34+
default: $(AuthAKVName)
35+
36+
- name: AuthSignCertName
37+
type: string
38+
default: $(AuthSignCertName)
39+
40+
- name: EsrpClientId
41+
type: string
42+
default: $(EsrpClientId)
43+
2844
steps:
2945
- ${{ if eq(parameters.artifactType, 'dll') }}:
3046
- task: EsrpMalwareScanning@5
3147
displayName: 'ESRP MalwareScanning'
3248
inputs:
33-
ConnectedServiceName: 'ESRP Workload Identity federation service-ADO.Net'
49+
ConnectedServiceName: '${{parameters.ESRPConnectedServiceName }}'
3450
AppRegistrationClientId: '${{parameters.appRegistrationClientId }}'
3551
AppRegistrationTenantId: '${{parameters.appRegistrationTenantId }}'
36-
AuthAKVName: SqlClientDrivers
37-
AuthCertName: 'ESRP-Release-Auth'
52+
EsrpClientId: '${{parameters.EsrpClientId }}'
53+
UseMSIAuthentication: true
3854
FolderPath: '${{parameters.sourceRoot }}'
3955
Pattern: '*.dll'
4056
CleanupTempStorage: 1
4157
VerboseLogin: 1
4258
- task: EsrpCodeSigning@5
4359
displayName: 'ESRP CodeSigning'
4460
inputs:
45-
ConnectedServiceName: 'ESRP Workload Identity federation service-ADO.Net'
61+
ConnectedServiceName: '${{parameters.ESRPConnectedServiceName }}'
4662
AppRegistrationClientId: '${{parameters.appRegistrationClientId }}'
4763
AppRegistrationTenantId: '${{parameters.appRegistrationTenantId }}'
48-
AuthAKVName: SqlClientDrivers
49-
AuthCertName: 'ESRP-Release-Auth'
50-
AuthSignCertName: 'ESRP-Release-Sign2'
64+
EsrpClientId: '${{parameters.EsrpClientId }}'
65+
UseMSIAuthentication: true
66+
AuthAKVName: '${{parameters.AuthAKVName }}'
67+
AuthSignCertName: '${{parameters.AuthSignCertName }}'
5168
FolderPath: '${{parameters.sourceRoot }}'
5269
Pattern: '*.dll'
5370
signConfigType: inlineSignParams
@@ -94,11 +111,11 @@ steps:
94111
- task: EsrpMalwareScanning@5
95112
displayName: 'ESRP MalwareScanning Nuget Package'
96113
inputs:
97-
ConnectedServiceName: 'ESRP Workload Identity federation service-ADO.Net'
114+
ConnectedServiceName: '${{parameters.ESRPConnectedServiceName }}'
98115
AppRegistrationClientId: '${{parameters.appRegistrationClientId }}'
99116
AppRegistrationTenantId: '${{parameters.appRegistrationTenantId }}'
100-
AuthAKVName: SqlClientDrivers
101-
AuthCertName: 'ESRP-Release-Auth'
117+
EsrpClientId: '${{parameters.EsrpClientId }}'
118+
UseMSIAuthentication: true
102119
FolderPath: '${{parameters.artifactDirectory }}'
103120
Pattern: '*.nupkg'
104121
CleanupTempStorage: 1
@@ -107,12 +124,13 @@ steps:
107124
displayName: 'ESRP CodeSigning Nuget Package'
108125
inputs:
109126
inputs:
110-
ConnectedServiceName: 'ESRP Workload Identity federation service-ADO.Net'
127+
ConnectedServiceName: '${{parameters.ESRPConnectedServiceName }}'
111128
AppRegistrationClientId: '${{parameters.appRegistrationClientId }}'
112129
AppRegistrationTenantId: '${{parameters.appRegistrationTenantId }}'
113-
AuthAKVName: SqlClientDrivers
114-
AuthCertName: 'ESRP-Release-Auth'
115-
AuthSignCertName: 'ESRP-Release-Sign2'
130+
EsrpClientId: '${{parameters.EsrpClientId }}'
131+
UseMSIAuthentication: true
132+
AuthAKVName: '${{parameters.AuthAKVName }}'
133+
AuthSignCertName: '${{parameters.AuthSignCertName }}'
116134
FolderPath: '${{parameters.artifactDirectory }}'
117135
Pattern: '*.nupkg'
118136
signConfigType: inlineSignParams

0 commit comments

Comments
 (0)