Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3604

OSGi: Make mongodb-driver-sync dependency on mongodb-crypt optional

      This seems quite similar and/or an follow-up to JAVA-3575 that still exists as of version 3.12.1.

      The manifest.xml of mongodb-driver-sync declares a required import of

      com.mongodb.crypt.capi;version="[1.0,2)" 

      ... which would be provided by mongodb-crypt

      This is odd for multiple reasons

      1. Is mongodb-crypt required at all, even if not using any client side encryption?
        1. My unit-tests (not using osgi, so ignoring manifest.xml) seem to work without it and
        2. JAVA-3575 more or less hints that it should be optional.
      2. mongodb-driver-sync does not maven-depend on it (https://mvnrepository.com/artifact/org.mongodb/mongodb-driver-sync/3.12.1) at all.
        1. To some degree it was an optional dependency before JAVA-3575 via mongodb-driver-core.
        2. Currently there is no maven dependency at all. So, without manual addition, it won't run in osgi.

      Probably 

      com.mongodb.crypt.capi;version="[1.0,2)" 

      should be declared optional?

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            josef.haertl@ldbv.bayern.de Josef Haertl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: