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

Mandatory OSGi-imports rg. com.ibm.security.auth.module fail deployments #2608

Closed
MrEasy opened this issue Feb 17, 2025 · 1 comment · Fixed by #2609
Closed

Mandatory OSGi-imports rg. com.ibm.security.auth.module fail deployments #2608

MrEasy opened this issue Feb 17, 2025 · 1 comment · Fixed by #2609
Assignees

Comments

@MrEasy
Copy link
Contributor

MrEasy commented Feb 17, 2025

Driver version

Provide the JDBC driver version (e.g. 10.2.0).
current master - 12.9.0.jre21-preview
Recommend to address before GA release.

Problem description

This change here: e63814e introduced a Class#forName with an IBM class, here.
This is perfectly fine, but will result in the JAR's manifest to contain a non-optional import declaration on com.ibm.security.auth.module plus com.sun.security.auth.module, while `they should be declared with resolution:=optional, like for other optional dependencies below:

Image

Similar issues from past: link

Expected behavior

Deployable in OSGi-envoronment without IBM and com.sun dependency.

Actual behavior

Deployment in an OSGi-environment will fail with:

org.apache.felix.resolver.reason.ReasonException: Unable to resolve com.microsoft.sqlserver.mssql-jdbc/12.9.0: missing requirement [com.microsoft.sqlserver.mssql-jdbc/12.9.0] osgi.wiring.package; filter:="(osgi.wiring.package=com.ibm.security.auth.module)" at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ... 16 more

@github-project-automation github-project-automation bot moved this to To be triaged in MSSQL JDBC Feb 17, 2025
@MrEasy MrEasy changed the title Mandatory OSGi-import com.ibm.security.auth.module fails deployments Mandatory OSGi-imports rg. com.ibm.security.auth.module fail deployments Feb 17, 2025
@muskan124947 muskan124947 self-assigned this Feb 18, 2025
@muskan124947 muskan124947 moved this from To be triaged to Under Investigation in MSSQL JDBC Feb 18, 2025
@machavan machavan moved this from Under Investigation to Under Peer Review in MSSQL JDBC Feb 18, 2025
@machavan
Copy link
Contributor

@MrEasy thank you for reporting the issue !

@github-project-automation github-project-automation bot moved this from Under Peer Review to Closed Issues in MSSQL JDBC Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed Issues
3 participants