question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUESTION] pdb link for DLLs for mssql-jdbc_auth returns 404 - CPP assert in sqljdbc_auth.dll

See original GitHub issue

Hi, recently you posted here https://github.com/microsoft/mssql-jdbc/issues/907#issuecomment-565146447 that PDBs and DLLs are available for download. But PDB link returns 404

e.g.: https://search.maven.org/artifact/com.microsoft.sqlserver/mssql-jdbc_auth/8.4.1.x64/dll - try to download PDB and you receive nginx 404 OR here you see PDB in listing but when you click on link you receive 404

mssql-jdbc_auth-8.4.1.x64.dll                     2020-08-27 19:42    313840      
mssql-jdbc_auth-8.4.1.x64.dll.asc                 2020-08-27 19:42       499      
mssql-jdbc_auth-8.4.1.x64.dll.asc.md5             2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.dll.asc.sha1            2020-08-27 19:42        40      
mssql-jdbc_auth-8.4.1.x64.dll.md5                 2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.dll.sha1                2020-08-27 19:42        40      
mssql-jdbc_auth-8.4.1.x64.pdb                     2020-08-27 19:42   5591040      
mssql-jdbc_auth-8.4.1.x64.pdb.asc                 2020-08-27 19:42       499      
mssql-jdbc_auth-8.4.1.x64.pdb.asc.md5             2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.pdb.asc.sha1            2020-08-27 19:42        40      
mssql-jdbc_auth-8.4.1.x64.pdb.md5                 2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.pdb.sha1                2020-08-27 19:42        40      
mssql-jdbc_auth-8.4.1.x64.pom                     2020-08-27 19:42      1297      
mssql-jdbc_auth-8.4.1.x64.pom.asc                 2020-08-27 19:42       499      
mssql-jdbc_auth-8.4.1.x64.pom.asc.md5             2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.pom.asc.sha1            2020-08-27 19:42        40      
mssql-jdbc_auth-8.4.1.x64.pom.md5                 2020-08-27 19:42        32      
mssql-jdbc_auth-8.4.1.x64.pom.sha1                2020-08-27 19:42        40 

https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc_auth/8.4.1.x64/mssql-jdbc_auth-8.4.1.x64.pdb -> 404

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ulviicommented, Sep 17, 2020

I am attaching a .pdb file for you to be able to debug with 8.4.1 version of the driver. Please let me know how it goes. mssql-jdbc_auth-8.4.1.x64.zip

0reactions
notmaxxcommented, Sep 17, 2020

@ulvii TL;DR looks like one of ADAL* function in sni_fedauth.cpp (inside of function SNISecADALGetAccessToken) returns success and expects cbToken (token length for https://github.com/microsoft/mssql-jdbc/blob/d1876fe28cb035a84661a5dc4f4c2e33fc1d1cd6/src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java#L11) to be not zero but it is zero so code throws wassert. Another option - function which calls SNISecADALGetAccessToken does also check: if SNISecADALGetAccessToken returns error but cbToken is not zero then it throws wassert

thank you for PDB!

Read more comments on GitHub >

github_iconTop Results From Across the Web

dll missing in JDBC - java - Stack Overflow
Download the JDBC file and extract to your preferred location; open the auth folder matching your OS x64 or x86; copy sqljdbc_auth.dll file ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found