-
Notifications
You must be signed in to change notification settings - Fork 448
Description
Driver version
11.2.0
SQL Server version
Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64) Apr 29 2022 18:00:13 Copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22000: ) (Hypervisor)
(but unrelated to issue)
Client Operating System
Win 11 (but unrelated)
JAVA/JVM version
17.0.4 (but unrelated)
Problem description
This change here:
- Added explicit dependency for com.microsoft.azure.msal4j (was a transitive dependency in previous releases) 1863
introduced an explicit dependency on msal4j (which is good compared to the transitive before), but seems to have missed to flag it as optional, like the others.
ef14c5b
As a result, the driver will not deploy anymore in an OSGi environment without that dependency:
org.apache.felix.resolver.reason.ReasonException: Unable to resolve com.microsoft.sqlserver.mssql-jdbc/11.2.0: missing requirement [com.microsoft.sqlserver.mssql-jdbc/11.2.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=com.microsoft.aad.msal4j)(version>=1.13.0)(!(version>=2.0.0)))"
I think this was just missed, since the optional check is still there:
| private boolean msalContextExists() { |
Expected behavior
Dependency declared optional and deploying without successfully.