-
Notifications
You must be signed in to change notification settings - Fork 314
Enhance TDS Login ClientInterfaceName field with client info #3149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@dotnet-policy-service agree company="Microsoft" |
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3149 +/- ##
==========================================
- Coverage 72.93% 72.80% -0.14%
==========================================
Files 287 288 +1
Lines 59173 59246 +73
==========================================
- Hits 43160 43136 -24
- Misses 16013 16110 +97
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Functionality looks good.
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Show resolved
Hide resolved
The spec has moved here: The OS Info and RuntimeInfo fields have been simplified to have a max length of 44 Unicode characters each, with no efforts to share the remaining space. The latest commit matches that. |
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ClientInterface.cs
Show resolved
Hide resolved
…face class. - Added tests for ClientInterface. - Reverted changes to Application Name. - Removed unnecessary SQP_PROVIDER_NAME constant.
- Addressed review comments: - Converted type/member documentation to C# XML style. - Added constants for OS types and max lengths. - Renamed Trunc() to Truncate(). - Added copyright headers.
- Updated Driver Name and Arch max lengths per updated spec.
- Avoided Architecture test that doesn't compile in .NET Framework.
- Removed length sharing logic for OS and Runtime Info. - Replaced with simple max len of 44 for each field.
921f70b
to
cf328d1
Compare
- Added a unit test to check the Client Interface Name the driver sends in the LOGIN7 packet.
- Moved logic to build client interface name into its own ClientInterface class. - Added tests for ClientInterface. - Reverted changes to Application Name. - Removed unnecessary SQP_PROVIDER_NAME constant.
…ent info (#3200) * Enhance TDS Login ClientInterfaceName field with client info (#3149) - Moved logic to build client interface name into its own ClientInterface class. - Added tests for ClientInterface. - Reverted changes to Application Name. - Removed unnecessary SQP_PROVIDER_NAME constant. * User Story 33291: Enhance client interface value sent with login - Fixed vulnerable transitive dependencies. * User Story 33291: Enhance client interface value sent with login - Removed duplicate System.Text.Json version.
Spec is here: https://microsoft-my.sharepoint.com/:w:/p/davidengel/EVybTpCmdQZGixv9r-qzXYQBl-Jp4HH1GGAE6oWxh0DqhQ?e=d0b0uP