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

Condition to check for crypt shared library is incorrect

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.2
    • Affects Version/s: None
    • Component/s: Client Side Encryption
    • None

      See this and [this|https://github.com/mongodb/mongo-java-driver/blob/b9251622747231e05d6b1736a06fe45e03f642e5/driver-reactive-streams/src/main/com/mongodb/reactivestreams/client/internal/crypt/CommandMarker.java#L70.

      It should be:

      boolean cryptSharedIsAvailable = cryptSharedLibVersionString != null && !cryptSharedLibVersionString.isEmpty()
      

      Consider also how to add at least unit test coverage since there are currently no tests for this.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: