-
Notifications
You must be signed in to change notification settings - Fork 430
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
IBM Semeru Runtime Certified Edition for z/OS, Kerberos and mssql-jdbc don't work together #2576 #2581
base: main
Are you sure you want to change the base?
Conversation
…c don't work together #2576
/azp run public-mssql-jdbc.windows |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run public-mssql-jdbc.linux |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run CI-MacOS |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2581 +/- ##
=========================================
Coverage 51.22% 51.22%
- Complexity 3956 3957 +1
=========================================
Files 147 147
Lines 33657 33678 +21
Branches 5624 5624
=========================================
+ Hits 17241 17252 +11
- Misses 14002 14011 +9
- Partials 2414 2415 +1 ☔ 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.
Please run
- azp run
-ADO tests with this branch
/azp run public-mssql-jdbc.linux |
Azure Pipelines successfully started running 1 pipeline(s). |
tested with ado pipeline |
src/main/java/com/microsoft/sqlserver/jdbc/JaasConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java
Outdated
Show resolved
Hide resolved
|
||
private static AppConfigurationEntry[] generateDefaultConfiguration() throws SQLServerException { | ||
try { | ||
if (useIbmModule) { |
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.
we only need to do this if isIBM(). Would it be better to just add this in Util.isIBM()?
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.
@lilgreenbird The issue was reported due to a problem with Util.isIBM method implementation ( #2139)
Do you mean just adding the try catch logic in Util.isIBM method to improve it and leaving everything else unchanged?
So something like this ?
private static Boolean isIBM = null;
static boolean isIBM() {
if (isIBM != null) {
return isIBM;
}
String vmName = System.getProperty("java.vm.name");
if (SYSTEM_JRE.startsWith("IBM") && vmName.startsWith("IBM")) {
isIBM = true;
return isIBM;
}
try {
Class.forName("com.ibm.security.auth.module.Krb5LoginModule");
isIBM = true;
} catch (ClassNotFoundException ex) {
isIBM = false;
}
return isIBM;
}
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.
yes that's what I meant :)
*/ | ||
JaasConfiguration(Configuration delegate) { | ||
JaasConfiguration(Configuration delegate) throws SQLServerException { |
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.
codecov error, need a test case for this
Github Issue: #2576