[JAVA-3575] Manifest of mongodb-crypt is missing OSGi entries Created: 06/Jan/20  Updated: 28/Oct/23  Resolved: 16/Jan/20

Status: Closed
Project: Java Driver
Component/s: Build
Affects Version/s: 3.12.0
Fix Version/s: 3.12.1

Type: Bug Priority: Major - P3
Reporter: Peter van der Winkel Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java



 Description   

mongodb-driver-core version 3.12.0 depends on mongodb-crypt 1.0.0.

Manifest of mongodb-crypt is missing OSGi entries, version 3.12.0 is not usable in OSGi environment at the moment.

Furthermore, https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-core/3.12.0 states that mongo-crypt is an optional dependency, but that is not true according to the manifest.xml of mongo-driver-core.



 Comments   
Comment by Peter van der Winkel [ 20/Jan/20 ]

Works for me

Thanks!

Comment by Jeffrey Yemin [ 17/Jan/20 ]

pdwinkel

The 3.12.1 release along with the mongodb-crypt 1.0.1 release should have addressed this. Please let us know.

Comment by Githook User [ 16/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'username': 'rozza', 'email': 'ross.lawley@gmail.com'}

Message: Build: Update MongoDB Crypt version to 1.0.1

JAVA-3575
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ac3cf17a7dcd714afe1ce30b52e1d8a926ca9c2a

Comment by Githook User [ 16/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: OSGI update for com.mongodb.crypt.capi

Removed duplicates in import package

JAVA-3575
Branch: 3.12.x
https://github.com/mongodb/mongo-java-driver/commit/489016fe67ec3eac10da64400ed4d46961f675a8

Comment by Jeffrey Yemin [ 15/Jan/20 ]

Also, leaving open until 1.0.1 mongodb-crypt 1.0.1 is released, as we will need to update our dependency to it before re-building and releasing.

Comment by Jeffrey Yemin [ 15/Jan/20 ]

Re-opening, as this needs to be backported to 3.12.x branch.

Comment by Githook User [ 15/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Build: OSGI update for com.mongodb.crypt.capi

Also minor fix for bnd package warning

JAVA-3575
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b9b3b9d65d7e6692b0fb9c4a8c371342d1f79863

Comment by Githook User [ 15/Jan/20 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Java: Added OSGI support

Updated the java build to include the bnd plugin
and configured so the pom produces a META-INF/MANIFEST.MF

JAVA-3575
Branch: master
https://github.com/mongodb/libmongocrypt/commit/75d35b74b008dc8f5edb872c367d3a20cef0aa6e

Comment by Ross Lawley [ 15/Jan/20 ]

PR: https://github.com/rozza/mongo-java-driver/pull/351

Comment by Ross Lawley [ 14/Jan/20 ]

PR: https://github.com/mongodb/libmongocrypt/pull/86

Generated at Thu Feb 08 08:59:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.