[JAVA-5046] OSGi - org.bson.codecs.kotlin and kotlinx imports causing mongodb-driver-core bundle not to be resolved. Created: 30/Jun/23  Updated: 28/Oct/23  Resolved: 10/Jul/23

Status: Closed
Project: Java Driver
Component/s: Packaging
Affects Version/s: 4.10.1
Fix Version/s: 4.10.2

Type: Bug Priority: Major - P3
Reporter: Rakesh N/A Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Summary

In OSGi environments the org.bson.codecs.kotlin and org.bson.codecs.kotlinx imports causing mongodb-driver-core bundle not to be resolved.

bson-kotlin and bson-kotlinx are optional dependencies therefore their imports should also be optional.

Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

mongodb-driver-core v4.10.1

How to Reproduce

Install mongodb-driver-core 4.10.1 in any of the OSGi Runtime(e.g. Apache Felix v7.0.5) where optional dependencies bson-kotlin and bson-kotlinx are not already installed.

Additional Background



 Comments   
Comment by Githook User [ 10/Jul/23 ]

Author:

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

Message: Manifest - Mark kotlin bson imports as optional

JAVA-5046
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b22d339465d10e4c8afc8451cbb48f3f05719bad

Comment by PM Bot [ 30/Jun/23 ]

Hi irakeshk@outlook.com, thank you for reporting this issue! The team will look into it and get back to you soon.

Generated at Thu Feb 08 09:03:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.