Condition to check for crypt shared library is incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.2
    • Affects Version/s: None
    • Component/s: Client Side Encryption
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeffrey Yemin
            Reporter:
            Jeffrey Yemin
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: