Skip to content
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

Append server name from connection string to error message #1311

Merged
merged 16 commits into from
Apr 29, 2020

Conversation

lilgreenbird
Copy link
Member

if server name in connection string is different from connect server then append server name to error message thrown

@codecov-io
Copy link

codecov-io commented Apr 14, 2020

Codecov Report

Merging #1311 into dev will decrease coverage by 5.47%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #1311      +/-   ##
============================================
- Coverage     58.42%   52.95%   -5.48%     
+ Complexity     3826     3492     -334     
============================================
  Files           133      133              
  Lines         30096    30096              
  Branches       4979     4979              
============================================
- Hits          17584    15936    -1648     
- Misses        10077    11870    +1793     
+ Partials       2435     2290     -145     
Impacted Files Coverage Δ Complexity Δ
src/main/java/mssql/security/provider/MD4.java 0.00% <0.00%> (-89.48%) 0.00% <0.00%> (-16.00%)
...m/microsoft/sqlserver/jdbc/NTLMAuthentication.java 0.00% <0.00%> (-86.62%) 0.00% <0.00%> (-30.00%)
...com/microsoft/sqlserver/jdbc/dns/DNSUtilities.java 0.00% <0.00%> (-81.49%) 0.00% <0.00%> (-4.00%)
...soft/sqlserver/jdbc/ISQLServerEnclaveProvider.java 0.00% <0.00%> (-80.62%) 0.00% <0.00%> (-14.00%)
...ft/sqlserver/jdbc/SQLServerVSMEnclaveProvider.java 0.00% <0.00%> (-77.46%) 0.00% <0.00%> (-20.00%)
...ft/sqlserver/jdbc/SQLServerAASEnclaveProvider.java 0.00% <0.00%> (-75.56%) 0.00% <0.00%> (-15.00%)
.../java/com/microsoft/sqlserver/jdbc/StreamSSPI.java 0.00% <0.00%> (-66.67%) 0.00% <0.00%> (-3.00%)
...m/microsoft/sqlserver/jdbc/SSPIAuthentication.java 0.00% <0.00%> (-56.25%) 0.00% <0.00%> (-12.00%)
...crosoft/sqlserver/jdbc/dns/DNSKerberosLocator.java 0.00% <0.00%> (-37.50%) 0.00% <0.00%> (-1.00%)
...com/microsoft/sqlserver/jdbc/dns/DNSRecordSRV.java 0.00% <0.00%> (-33.97%) 0.00% <0.00%> (-4.00%)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 947b537...d8101e2. Read the comment docs.

@peterbae
Copy link
Contributor

Can you add tests to this (if it's feasible) so that the test shows what the error message would look like instead?

@ulvii ulvii added this to the 8.3.1 milestone Apr 16, 2020
peterbae
peterbae previously approved these changes Apr 23, 2020
@lilgreenbird lilgreenbird merged commit 76ecacb into microsoft:dev Apr 29, 2020
@lilgreenbird lilgreenbird added this to Closed/Merged PRs in MSSQL JDBC Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
MSSQL JDBC
  
Closed/Merged PRs
Development

Successfully merging this pull request may close these issues.

None yet

5 participants